@wavelengthusaf/components 4.11.0 → 4.12.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 +40 -1
- package/dist/cjs/index.d.cts +15 -1
- package/dist/esm/index.d.ts +15 -1
- package/dist/esm/index.js +223 -184
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -5803,6 +5803,44 @@ var WavelengthMenu = ({
|
|
|
5803
5803
|
};
|
|
5804
5804
|
WavelengthMenu.displayName = "WavelengthMenu";
|
|
5805
5805
|
|
|
5806
|
+
// src/components/modals/WavelengthSwitch.tsx
|
|
5807
|
+
|
|
5808
|
+
|
|
5809
|
+
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle: customStyle2, ...rest }) => {
|
|
5810
|
+
const ref = _react.useRef.call(void 0, null);
|
|
5811
|
+
_react.useEffect.call(void 0, () => {
|
|
5812
|
+
const el = ref.current;
|
|
5813
|
+
if (!el) return;
|
|
5814
|
+
const syncAttribute = (attr, val, isBool = false) => {
|
|
5815
|
+
if (val === void 0 || val === null || isBool && !val) {
|
|
5816
|
+
el.removeAttribute(attr);
|
|
5817
|
+
} else {
|
|
5818
|
+
el.setAttribute(attr, isBool ? "" : val.toString());
|
|
5819
|
+
}
|
|
5820
|
+
};
|
|
5821
|
+
el.customStyles = customStyle2;
|
|
5822
|
+
syncAttribute("checked", checked, true);
|
|
5823
|
+
syncAttribute("disabled", disabled, true);
|
|
5824
|
+
syncAttribute("label", label);
|
|
5825
|
+
syncAttribute("label-placement", labelPlacement);
|
|
5826
|
+
syncAttribute("size", size);
|
|
5827
|
+
syncAttribute("color", color2);
|
|
5828
|
+
syncAttribute("label-font", labelFont);
|
|
5829
|
+
syncAttribute("value", value);
|
|
5830
|
+
}, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle2]);
|
|
5831
|
+
_react.useEffect.call(void 0, () => {
|
|
5832
|
+
const el = ref.current;
|
|
5833
|
+
if (!el || !onWavelengthSwitchChange) return;
|
|
5834
|
+
const handleEvent = (e) => {
|
|
5835
|
+
onWavelengthSwitchChange(e);
|
|
5836
|
+
};
|
|
5837
|
+
el.addEventListener("wavelength-switch-change", handleEvent);
|
|
5838
|
+
return () => el.removeEventListener("wavelength-switch-change", handleEvent);
|
|
5839
|
+
}, [onWavelengthSwitchChange]);
|
|
5840
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-switch", { ref, ...rest });
|
|
5841
|
+
};
|
|
5842
|
+
WavelengthSwitch.displayName = "WavelengthSwitch";
|
|
5843
|
+
|
|
5806
5844
|
// src/components/modals/WavelengthPagination.tsx
|
|
5807
5845
|
|
|
5808
5846
|
|
|
@@ -8195,7 +8233,8 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8195
8233
|
|
|
8196
8234
|
|
|
8197
8235
|
|
|
8198
|
-
|
|
8236
|
+
|
|
8237
|
+
exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.DefaultCarousel = DefaultCarousel; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.SliderCardCarousel = SliderCardCarousel; exports.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDefaultPagination = WavelengthDefaultPagination; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFileDropZone = WavelengthFileDropZone; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMenu = WavelengthMenu; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthNotificationPanel = WavelengthNotificationPanel; exports.WavelengthPagination = WavelengthPagination; exports.WavelengthPaginationElement = _webcomponents.WavelengthPagination; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; exports.WavelengthProgressBarElement = _webcomponents.WavelengthProgressBar; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSearchTextField = WavelengthSearchTextField; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthSwitch = WavelengthSwitch; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
|
|
8199
8238
|
/*! Bundled license information:
|
|
8200
8239
|
|
|
8201
8240
|
react-is/cjs/react-is.production.min.js:
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -713,6 +713,20 @@ interface WavelengthMenuProps extends React__default.HTMLAttributes<HTMLElement>
|
|
|
713
713
|
}
|
|
714
714
|
declare const WavelengthMenu: React__default.FC<WavelengthMenuProps>;
|
|
715
715
|
|
|
716
|
+
interface WavelengthSwitchProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
717
|
+
customStyle: StyleProp;
|
|
718
|
+
checked?: boolean;
|
|
719
|
+
label?: string;
|
|
720
|
+
labelPlacement?: "left" | "right" | "top" | "bottom";
|
|
721
|
+
size?: "small" | "medium" | "large";
|
|
722
|
+
disabled?: boolean;
|
|
723
|
+
color?: string;
|
|
724
|
+
labelFont?: string;
|
|
725
|
+
value?: string;
|
|
726
|
+
onWavelengthSwitchChange?: (event: CustomEvent) => void;
|
|
727
|
+
}
|
|
728
|
+
declare const WavelengthSwitch: React__default.FC<WavelengthSwitchProps>;
|
|
729
|
+
|
|
716
730
|
interface WavelengthPaginationProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
717
731
|
testProp?: string;
|
|
718
732
|
customStyle: StyleProp;
|
|
@@ -1066,4 +1080,4 @@ interface MultiSelectAutocompleteProps {
|
|
|
1066
1080
|
}
|
|
1067
1081
|
declare const WavelengthMultiSelectAutocomplete: React__default.FC<MultiSelectAutocompleteProps>;
|
|
1068
1082
|
|
|
1069
|
-
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type IFileSelectedEventDetail, type NavItem, NestedDataTable, SampleComponent, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCheckbox, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFileDropZone, type WavelengthFileDropZoneProps, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMenu, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthNotificationPanel, WavelengthPagination, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, WavelengthToolTip, WavelengthWebSnackbar, type WavelengthWebSnackbarProps, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
|
1083
|
+
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type IFileSelectedEventDetail, type NavItem, NestedDataTable, SampleComponent, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCheckbox, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFileDropZone, type WavelengthFileDropZoneProps, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMenu, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthNotificationPanel, WavelengthPagination, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthSwitch, WavelengthTestSnackbar, WavelengthTitleBar, WavelengthToolTip, WavelengthWebSnackbar, type WavelengthWebSnackbarProps, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -713,6 +713,20 @@ interface WavelengthMenuProps extends React__default.HTMLAttributes<HTMLElement>
|
|
|
713
713
|
}
|
|
714
714
|
declare const WavelengthMenu: React__default.FC<WavelengthMenuProps>;
|
|
715
715
|
|
|
716
|
+
interface WavelengthSwitchProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
717
|
+
customStyle: StyleProp;
|
|
718
|
+
checked?: boolean;
|
|
719
|
+
label?: string;
|
|
720
|
+
labelPlacement?: "left" | "right" | "top" | "bottom";
|
|
721
|
+
size?: "small" | "medium" | "large";
|
|
722
|
+
disabled?: boolean;
|
|
723
|
+
color?: string;
|
|
724
|
+
labelFont?: string;
|
|
725
|
+
value?: string;
|
|
726
|
+
onWavelengthSwitchChange?: (event: CustomEvent) => void;
|
|
727
|
+
}
|
|
728
|
+
declare const WavelengthSwitch: React__default.FC<WavelengthSwitchProps>;
|
|
729
|
+
|
|
716
730
|
interface WavelengthPaginationProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
717
731
|
testProp?: string;
|
|
718
732
|
customStyle: StyleProp;
|
|
@@ -1066,4 +1080,4 @@ interface MultiSelectAutocompleteProps {
|
|
|
1066
1080
|
}
|
|
1067
1081
|
declare const WavelengthMultiSelectAutocomplete: React__default.FC<MultiSelectAutocompleteProps>;
|
|
1068
1082
|
|
|
1069
|
-
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type IFileSelectedEventDetail, type NavItem, NestedDataTable, SampleComponent, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCheckbox, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFileDropZone, type WavelengthFileDropZoneProps, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMenu, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthNotificationPanel, WavelengthPagination, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, WavelengthToolTip, WavelengthWebSnackbar, type WavelengthWebSnackbarProps, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
|
1083
|
+
export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type IFileSelectedEventDetail, type NavItem, NestedDataTable, SampleComponent, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCheckbox, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFileDropZone, type WavelengthFileDropZoneProps, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMenu, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthNotificationPanel, WavelengthPagination, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthSwitch, WavelengthTestSnackbar, WavelengthTitleBar, WavelengthToolTip, WavelengthWebSnackbar, type WavelengthWebSnackbarProps, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
package/dist/esm/index.js
CHANGED
|
@@ -5803,9 +5803,47 @@ var WavelengthMenu = ({
|
|
|
5803
5803
|
};
|
|
5804
5804
|
WavelengthMenu.displayName = "WavelengthMenu";
|
|
5805
5805
|
|
|
5806
|
-
// src/components/modals/
|
|
5806
|
+
// src/components/modals/WavelengthSwitch.tsx
|
|
5807
5807
|
import { useRef as useRef15, useEffect as useEffect15 } from "react";
|
|
5808
5808
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
5809
|
+
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle: customStyle2, ...rest }) => {
|
|
5810
|
+
const ref = useRef15(null);
|
|
5811
|
+
useEffect15(() => {
|
|
5812
|
+
const el = ref.current;
|
|
5813
|
+
if (!el) return;
|
|
5814
|
+
const syncAttribute = (attr, val, isBool = false) => {
|
|
5815
|
+
if (val === void 0 || val === null || isBool && !val) {
|
|
5816
|
+
el.removeAttribute(attr);
|
|
5817
|
+
} else {
|
|
5818
|
+
el.setAttribute(attr, isBool ? "" : val.toString());
|
|
5819
|
+
}
|
|
5820
|
+
};
|
|
5821
|
+
el.customStyles = customStyle2;
|
|
5822
|
+
syncAttribute("checked", checked, true);
|
|
5823
|
+
syncAttribute("disabled", disabled, true);
|
|
5824
|
+
syncAttribute("label", label);
|
|
5825
|
+
syncAttribute("label-placement", labelPlacement);
|
|
5826
|
+
syncAttribute("size", size);
|
|
5827
|
+
syncAttribute("color", color2);
|
|
5828
|
+
syncAttribute("label-font", labelFont);
|
|
5829
|
+
syncAttribute("value", value);
|
|
5830
|
+
}, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle2]);
|
|
5831
|
+
useEffect15(() => {
|
|
5832
|
+
const el = ref.current;
|
|
5833
|
+
if (!el || !onWavelengthSwitchChange) return;
|
|
5834
|
+
const handleEvent = (e) => {
|
|
5835
|
+
onWavelengthSwitchChange(e);
|
|
5836
|
+
};
|
|
5837
|
+
el.addEventListener("wavelength-switch-change", handleEvent);
|
|
5838
|
+
return () => el.removeEventListener("wavelength-switch-change", handleEvent);
|
|
5839
|
+
}, [onWavelengthSwitchChange]);
|
|
5840
|
+
return /* @__PURE__ */ jsx37("wavelength-switch", { ref, ...rest });
|
|
5841
|
+
};
|
|
5842
|
+
WavelengthSwitch.displayName = "WavelengthSwitch";
|
|
5843
|
+
|
|
5844
|
+
// src/components/modals/WavelengthPagination.tsx
|
|
5845
|
+
import { useRef as useRef16, useEffect as useEffect16 } from "react";
|
|
5846
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
5809
5847
|
var WavelengthPagination = ({
|
|
5810
5848
|
testProp,
|
|
5811
5849
|
children,
|
|
@@ -5828,13 +5866,13 @@ var WavelengthPagination = ({
|
|
|
5828
5866
|
...rest
|
|
5829
5867
|
// This rest operator includes className, style, onClick, etc.
|
|
5830
5868
|
}) => {
|
|
5831
|
-
const ref =
|
|
5869
|
+
const ref = useRef16(null);
|
|
5832
5870
|
const syncAttribute = (attribute, value) => {
|
|
5833
5871
|
const el = ref.current;
|
|
5834
5872
|
if (!el) return;
|
|
5835
5873
|
el.setAttribute(attribute, value);
|
|
5836
5874
|
};
|
|
5837
|
-
|
|
5875
|
+
useEffect16(() => {
|
|
5838
5876
|
const el = ref.current;
|
|
5839
5877
|
if (!el) return;
|
|
5840
5878
|
el.customStyles = customStyle2;
|
|
@@ -5861,7 +5899,7 @@ var WavelengthPagination = ({
|
|
|
5861
5899
|
el.removeEventListener("page-change", handlePageChange);
|
|
5862
5900
|
};
|
|
5863
5901
|
}, [testProp, textColor, font, fontSize, border2, borderRadius2, padding2, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor2, disabledColor, onPageChange]);
|
|
5864
|
-
return /* @__PURE__ */
|
|
5902
|
+
return /* @__PURE__ */ jsx38("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
|
|
5865
5903
|
};
|
|
5866
5904
|
WavelengthPagination.displayName = "WavelengthPagination";
|
|
5867
5905
|
|
|
@@ -5877,7 +5915,7 @@ import Button4 from "@mui/material/Button";
|
|
|
5877
5915
|
import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
|
|
5878
5916
|
import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
|
|
5879
5917
|
import styled6 from "styled-components";
|
|
5880
|
-
import { jsx as
|
|
5918
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5881
5919
|
var MyDroplistItems = styled6("li")`
|
|
5882
5920
|
background-color: white;
|
|
5883
5921
|
color: #000000;
|
|
@@ -5922,15 +5960,15 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
|
|
|
5922
5960
|
"&.active": { background: "#8FD8FF" }
|
|
5923
5961
|
};
|
|
5924
5962
|
return /* @__PURE__ */ jsxs20("div", { style: dropstyles.butPagCompDivStyle, id, children: [
|
|
5925
|
-
/* @__PURE__ */
|
|
5926
|
-
/* @__PURE__ */
|
|
5963
|
+
/* @__PURE__ */ jsx39(Button4, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx39(ArrowBackIosNewIcon, {}) }),
|
|
5964
|
+
/* @__PURE__ */ jsx39("section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
5927
5965
|
(item, index) => item === "..." && index === 1 ? (
|
|
5928
5966
|
//first half ellipse with first half dropdown
|
|
5929
5967
|
// dropdown
|
|
5930
5968
|
// eslint-disable-next-line react/jsx-key
|
|
5931
5969
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
5932
|
-
/* @__PURE__ */
|
|
5933
|
-
isOpen && /* @__PURE__ */
|
|
5970
|
+
/* @__PURE__ */ jsx39(Button4, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
5971
|
+
isOpen && /* @__PURE__ */ jsx39("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx39("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx39(
|
|
5934
5972
|
MyDroplistItems,
|
|
5935
5973
|
{
|
|
5936
5974
|
onClick: () => {
|
|
@@ -5944,8 +5982,8 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
|
|
|
5944
5982
|
) : item === "..." && index === 5 ? (
|
|
5945
5983
|
//second half ellipse with second half dropdown
|
|
5946
5984
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
5947
|
-
/* @__PURE__ */
|
|
5948
|
-
isSecOpen && /* @__PURE__ */
|
|
5985
|
+
/* @__PURE__ */ jsx39(Button4, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
5986
|
+
isSecOpen && /* @__PURE__ */ jsx39("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx39("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx39(
|
|
5949
5987
|
MyDroplistItems,
|
|
5950
5988
|
{
|
|
5951
5989
|
onClick: () => {
|
|
@@ -5956,9 +5994,9 @@ function WavelengthButtonPagination({ totalPages, current, handleChangePage, ite
|
|
|
5956
5994
|
item2
|
|
5957
5995
|
)) }) })
|
|
5958
5996
|
] })
|
|
5959
|
-
) : /* @__PURE__ */
|
|
5997
|
+
) : /* @__PURE__ */ jsx39(Button4, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
|
|
5960
5998
|
) }),
|
|
5961
|
-
/* @__PURE__ */
|
|
5999
|
+
/* @__PURE__ */ jsx39(Button4, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx39(ArrowForwardIosIcon, {}) })
|
|
5962
6000
|
] });
|
|
5963
6001
|
}
|
|
5964
6002
|
WavelengthButtonPagination.displayName = "WavelengthButtonPagination";
|
|
@@ -5970,7 +6008,7 @@ import Button5 from "@mui/material/Button";
|
|
|
5970
6008
|
import ArrowBackIosNewIcon2 from "@mui/icons-material/ArrowBackIosNew";
|
|
5971
6009
|
import ArrowForwardIosIcon2 from "@mui/icons-material/ArrowForwardIos";
|
|
5972
6010
|
import styled7 from "styled-components";
|
|
5973
|
-
import { jsx as
|
|
6011
|
+
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5974
6012
|
function WavelengthVariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
|
|
5975
6013
|
const [isOpen, setIsOpen] = useState5(false);
|
|
5976
6014
|
const [isSecOpen, setIsSecOpen] = useState5(false);
|
|
@@ -6013,14 +6051,14 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
|
|
|
6013
6051
|
}
|
|
6014
6052
|
};
|
|
6015
6053
|
return /* @__PURE__ */ jsxs21("div", { style: dropstyles.pagination, id, children: [
|
|
6016
|
-
/* @__PURE__ */
|
|
6017
|
-
/* @__PURE__ */
|
|
6054
|
+
/* @__PURE__ */ jsx40(Button5, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx40(ArrowBackIosNewIcon2, {}) }),
|
|
6055
|
+
/* @__PURE__ */ jsx40("section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6018
6056
|
(item, index) => item === "..." && index === 1 ? (
|
|
6019
6057
|
//first half ellipse with first half dropdown
|
|
6020
6058
|
// eslint-disable-next-line react/jsx-key
|
|
6021
6059
|
/* @__PURE__ */ jsxs21("div", { children: [
|
|
6022
|
-
/* @__PURE__ */
|
|
6023
|
-
isOpen && /* @__PURE__ */
|
|
6060
|
+
/* @__PURE__ */ jsx40(Button5, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6061
|
+
isOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx40(
|
|
6024
6062
|
MyDroplistItems2,
|
|
6025
6063
|
{
|
|
6026
6064
|
style: dropstyles.mydroplist,
|
|
@@ -6035,8 +6073,8 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
|
|
|
6035
6073
|
) : item === "..." && index === 5 ? (
|
|
6036
6074
|
//second half ellipse with second half dropdown
|
|
6037
6075
|
/* @__PURE__ */ jsxs21("div", { children: [
|
|
6038
|
-
/* @__PURE__ */
|
|
6039
|
-
isSecOpen && /* @__PURE__ */
|
|
6076
|
+
/* @__PURE__ */ jsx40(Button5, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6077
|
+
isSecOpen && /* @__PURE__ */ jsx40("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx40("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx40(
|
|
6040
6078
|
MyDroplistItems2,
|
|
6041
6079
|
{
|
|
6042
6080
|
style: dropstyles.mydroplist,
|
|
@@ -6048,16 +6086,16 @@ function WavelengthVariationPagination({ totalPages, current, variant, handleCha
|
|
|
6048
6086
|
item2
|
|
6049
6087
|
)) }) })
|
|
6050
6088
|
] })
|
|
6051
|
-
) : /* @__PURE__ */
|
|
6089
|
+
) : /* @__PURE__ */ jsx40(Button5, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
|
|
6052
6090
|
) }),
|
|
6053
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ jsx40(Button5, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ jsx40(ArrowForwardIosIcon2, {}) })
|
|
6054
6092
|
] });
|
|
6055
6093
|
}
|
|
6056
6094
|
WavelengthVariationPagination.displayName = "WavelengthVariationPagination";
|
|
6057
6095
|
var WavelengthVariationPagination_default = WavelengthVariationPagination;
|
|
6058
6096
|
|
|
6059
6097
|
// src/components/pagination/WavelengthDefaultPagination.tsx
|
|
6060
|
-
import { jsx as
|
|
6098
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
6061
6099
|
var range = (start, end) => {
|
|
6062
6100
|
const length = end - start + 1;
|
|
6063
6101
|
return Array.from({ length }, (_, i) => start + i);
|
|
@@ -6095,7 +6133,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
|
|
|
6095
6133
|
}
|
|
6096
6134
|
};
|
|
6097
6135
|
if (style3 === "circular") {
|
|
6098
|
-
return /* @__PURE__ */
|
|
6136
|
+
return /* @__PURE__ */ jsx41(
|
|
6099
6137
|
WavelengthButtonPagination_default,
|
|
6100
6138
|
{
|
|
6101
6139
|
id,
|
|
@@ -6108,7 +6146,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
|
|
|
6108
6146
|
}
|
|
6109
6147
|
);
|
|
6110
6148
|
} else if (style3 === "text") {
|
|
6111
|
-
return /* @__PURE__ */
|
|
6149
|
+
return /* @__PURE__ */ jsx41(
|
|
6112
6150
|
WavelengthVariationPagination_default,
|
|
6113
6151
|
{
|
|
6114
6152
|
id,
|
|
@@ -6122,7 +6160,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
|
|
|
6122
6160
|
}
|
|
6123
6161
|
);
|
|
6124
6162
|
} else if (style3 === "outlined") {
|
|
6125
|
-
return /* @__PURE__ */
|
|
6163
|
+
return /* @__PURE__ */ jsx41(
|
|
6126
6164
|
WavelengthVariationPagination_default,
|
|
6127
6165
|
{
|
|
6128
6166
|
id,
|
|
@@ -6136,7 +6174,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
|
|
|
6136
6174
|
}
|
|
6137
6175
|
);
|
|
6138
6176
|
} else if (style3 === "contained") {
|
|
6139
|
-
return /* @__PURE__ */
|
|
6177
|
+
return /* @__PURE__ */ jsx41(
|
|
6140
6178
|
WavelengthVariationPagination_default,
|
|
6141
6179
|
{
|
|
6142
6180
|
id,
|
|
@@ -6150,7 +6188,7 @@ function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCou
|
|
|
6150
6188
|
}
|
|
6151
6189
|
);
|
|
6152
6190
|
} else {
|
|
6153
|
-
return /* @__PURE__ */
|
|
6191
|
+
return /* @__PURE__ */ jsx41(
|
|
6154
6192
|
WavelengthVariationPagination_default,
|
|
6155
6193
|
{
|
|
6156
6194
|
id,
|
|
@@ -6172,15 +6210,15 @@ import Snackbar from "@mui/material/Snackbar";
|
|
|
6172
6210
|
import SnackbarContent from "@mui/material/SnackbarContent";
|
|
6173
6211
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
6174
6212
|
import { IconButton as IconButton5 } from "@mui/material";
|
|
6175
|
-
import { jsx as
|
|
6213
|
+
import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6176
6214
|
function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width: width2, icon, id }) {
|
|
6177
6215
|
const handleClose = () => {
|
|
6178
6216
|
setShow(false);
|
|
6179
6217
|
};
|
|
6180
|
-
const defaultIcon = /* @__PURE__ */
|
|
6218
|
+
const defaultIcon = /* @__PURE__ */ jsx42(IconButton5, { size: "small", "aria-label": "close", color: "inherit", children: /* @__PURE__ */ jsx42(CloseIcon2, { fontSize: "small" }) });
|
|
6181
6219
|
const palette2 = getPalette();
|
|
6182
6220
|
const durationMs = durationSb ? durationSb * 1e3 : 4e3;
|
|
6183
|
-
return /* @__PURE__ */
|
|
6221
|
+
return /* @__PURE__ */ jsx42(
|
|
6184
6222
|
Snackbar,
|
|
6185
6223
|
{
|
|
6186
6224
|
id,
|
|
@@ -6191,7 +6229,7 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
|
|
|
6191
6229
|
vertical: vertyAlign ? vertyAlign : "bottom",
|
|
6192
6230
|
horizontal: horryAlign ? horryAlign : "center"
|
|
6193
6231
|
},
|
|
6194
|
-
children: /* @__PURE__ */
|
|
6232
|
+
children: /* @__PURE__ */ jsx42(
|
|
6195
6233
|
SnackbarContent,
|
|
6196
6234
|
{
|
|
6197
6235
|
style: {
|
|
@@ -6201,10 +6239,10 @@ function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor,
|
|
|
6201
6239
|
width: width2
|
|
6202
6240
|
},
|
|
6203
6241
|
message: /* @__PURE__ */ jsxs22("div", { children: [
|
|
6204
|
-
/* @__PURE__ */
|
|
6205
|
-
/* @__PURE__ */
|
|
6242
|
+
/* @__PURE__ */ jsx42("span", { children: icon }),
|
|
6243
|
+
/* @__PURE__ */ jsx42("span", { id: "snackbar", children: message ? message : "Insert Message Here" })
|
|
6206
6244
|
] }),
|
|
6207
|
-
action: /* @__PURE__ */
|
|
6245
|
+
action: /* @__PURE__ */ jsx42("div", { style: { display: "flex", justifyContent: "center" }, onClick: handleClose, children: closeIcon ? closeIcon : defaultIcon })
|
|
6208
6246
|
}
|
|
6209
6247
|
)
|
|
6210
6248
|
}
|
|
@@ -6215,7 +6253,7 @@ WavelengthSnackbar.displayName = "WavelengthSnackbar";
|
|
|
6215
6253
|
// src/components/snackbars/WavelengthStandardSnackbar.tsx
|
|
6216
6254
|
import Snackbar2 from "@mui/material/Snackbar";
|
|
6217
6255
|
import SnackbarContent2 from "@mui/material/SnackbarContent";
|
|
6218
|
-
import { jsx as
|
|
6256
|
+
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6219
6257
|
function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width: width2, message, customVertyAlign, toggleShow, closeIcon, id }) {
|
|
6220
6258
|
const handleClose = () => {
|
|
6221
6259
|
toggleShow(false);
|
|
@@ -6230,7 +6268,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
6230
6268
|
bgColor = "#737373";
|
|
6231
6269
|
}
|
|
6232
6270
|
const sIcon = icon ? icon : "";
|
|
6233
|
-
return /* @__PURE__ */
|
|
6271
|
+
return /* @__PURE__ */ jsx43(
|
|
6234
6272
|
Snackbar2,
|
|
6235
6273
|
{
|
|
6236
6274
|
id,
|
|
@@ -6242,7 +6280,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
6242
6280
|
vertical: vertyAlign ? vertyAlign : "top",
|
|
6243
6281
|
horizontal: horryAlign ? horryAlign : "center"
|
|
6244
6282
|
},
|
|
6245
|
-
children: /* @__PURE__ */
|
|
6283
|
+
children: /* @__PURE__ */ jsx43(
|
|
6246
6284
|
SnackbarContent2,
|
|
6247
6285
|
{
|
|
6248
6286
|
style: {
|
|
@@ -6261,10 +6299,10 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
6261
6299
|
},
|
|
6262
6300
|
children: [
|
|
6263
6301
|
/* @__PURE__ */ jsxs23("div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
|
|
6264
|
-
/* @__PURE__ */
|
|
6265
|
-
/* @__PURE__ */
|
|
6302
|
+
/* @__PURE__ */ jsx43("div", { style: { marginTop: "5px" }, children: sIcon }),
|
|
6303
|
+
/* @__PURE__ */ jsx43("div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
|
|
6266
6304
|
] }),
|
|
6267
|
-
/* @__PURE__ */
|
|
6305
|
+
/* @__PURE__ */ jsx43("div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
|
|
6268
6306
|
]
|
|
6269
6307
|
}
|
|
6270
6308
|
)
|
|
@@ -6278,11 +6316,11 @@ WavelengthStandardSnackbar.displayName = "WavelengthStandardSnackbar";
|
|
|
6278
6316
|
// src/components/snackbars/WavelengthTestSnackbar.tsx
|
|
6279
6317
|
import Box5 from "@mui/material/Box";
|
|
6280
6318
|
import Button6 from "@mui/material/Button";
|
|
6281
|
-
import { useEffect as
|
|
6282
|
-
import { Fragment as Fragment11, jsx as
|
|
6319
|
+
import { useEffect as useEffect17, useRef as useRef17 } from "react";
|
|
6320
|
+
import { Fragment as Fragment11, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6283
6321
|
var useOutsideClick = (callback) => {
|
|
6284
|
-
const ref =
|
|
6285
|
-
|
|
6322
|
+
const ref = useRef17(null);
|
|
6323
|
+
useEffect17(() => {
|
|
6286
6324
|
const handleClickOutside = (event) => {
|
|
6287
6325
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
6288
6326
|
callback();
|
|
@@ -6309,7 +6347,7 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
|
|
|
6309
6347
|
} else if (type === "disabled") {
|
|
6310
6348
|
bgColor = "#737373";
|
|
6311
6349
|
}
|
|
6312
|
-
return /* @__PURE__ */
|
|
6350
|
+
return /* @__PURE__ */ jsx44(Fragment11, { children: isPopUpOpen && /* @__PURE__ */ jsxs24(
|
|
6313
6351
|
Box5,
|
|
6314
6352
|
{
|
|
6315
6353
|
id,
|
|
@@ -6329,9 +6367,9 @@ function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, custom
|
|
|
6329
6367
|
marginTop: customVertyAlign ? `${customVertyAlign}` : ""
|
|
6330
6368
|
},
|
|
6331
6369
|
children: [
|
|
6332
|
-
/* @__PURE__ */
|
|
6333
|
-
/* @__PURE__ */
|
|
6334
|
-
/* @__PURE__ */
|
|
6370
|
+
/* @__PURE__ */ jsx44("div", { style: { backgroundColor: "red" } }),
|
|
6371
|
+
/* @__PURE__ */ jsx44("div", { style: { color: "white", fontSize: "1rem" }, children: message }),
|
|
6372
|
+
/* @__PURE__ */ jsx44(
|
|
6335
6373
|
Button6,
|
|
6336
6374
|
{
|
|
6337
6375
|
variant: "text",
|
|
@@ -6350,10 +6388,10 @@ WavelengthTestSnackbar.displayName = "WavelengthTestSnackbar";
|
|
|
6350
6388
|
// src/components/sliders/WavelengthSlider.tsx
|
|
6351
6389
|
import Box6 from "@mui/material/Box";
|
|
6352
6390
|
import Slider from "@mui/material/Slider";
|
|
6353
|
-
import { jsx as
|
|
6391
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
6354
6392
|
function WavelengthSlider({ width: width2 = "300px", color: color2, valueDisplayed, marks, labelColor, value, id, maxVal = 100, minVal, step = 1, labelFunc, handleChange }) {
|
|
6355
6393
|
const on = valueDisplayed ? "on" : "off";
|
|
6356
|
-
return /* @__PURE__ */
|
|
6394
|
+
return /* @__PURE__ */ jsx45(Box6, { sx: { width: width2 }, children: /* @__PURE__ */ jsx45(
|
|
6357
6395
|
Slider,
|
|
6358
6396
|
{
|
|
6359
6397
|
id,
|
|
@@ -6388,7 +6426,7 @@ import Card from "@mui/material/Card";
|
|
|
6388
6426
|
import CardContent from "@mui/material/CardContent";
|
|
6389
6427
|
import CardMedia from "@mui/material/CardMedia";
|
|
6390
6428
|
import CardActionArea from "@mui/material/CardActionArea";
|
|
6391
|
-
import { jsx as
|
|
6429
|
+
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6392
6430
|
var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight, cardWidth, id, name }) => {
|
|
6393
6431
|
const [currentIndex, setCurrentIndex] = useState7(0);
|
|
6394
6432
|
const adjustButtonSize = buttonSize !== void 0 ? buttonSize : 70;
|
|
@@ -6405,7 +6443,7 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6405
6443
|
const handleClick = () => {
|
|
6406
6444
|
window.open(items[currentIndex].path, "_blank");
|
|
6407
6445
|
};
|
|
6408
|
-
return /* @__PURE__ */
|
|
6446
|
+
return /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsxs25(
|
|
6409
6447
|
Grid3,
|
|
6410
6448
|
{
|
|
6411
6449
|
container: true,
|
|
@@ -6414,8 +6452,8 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6414
6452
|
alignItems: "center"
|
|
6415
6453
|
},
|
|
6416
6454
|
children: [
|
|
6417
|
-
/* @__PURE__ */
|
|
6418
|
-
/* @__PURE__ */
|
|
6455
|
+
/* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsx46(IconButton6, { onClick: handlePrev, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx46(NavigateBeforeIcon, { style: { fontSize: adjustButtonSize } }) }) }),
|
|
6456
|
+
/* @__PURE__ */ jsx46(
|
|
6419
6457
|
Card,
|
|
6420
6458
|
{
|
|
6421
6459
|
sx: {
|
|
@@ -6423,15 +6461,15 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6423
6461
|
maxHeight: adjustCardHeight
|
|
6424
6462
|
},
|
|
6425
6463
|
children: /* @__PURE__ */ jsxs25(CardActionArea, { onClick: handleClick, children: [
|
|
6426
|
-
/* @__PURE__ */
|
|
6464
|
+
/* @__PURE__ */ jsx46(CardMedia, { sx: { height: adjustImageHeight, width: adjustImageWidth }, image: items[currentIndex].image }),
|
|
6427
6465
|
/* @__PURE__ */ jsxs25(CardContent, { children: [
|
|
6428
|
-
/* @__PURE__ */
|
|
6429
|
-
/* @__PURE__ */
|
|
6466
|
+
/* @__PURE__ */ jsx46(Typography4, { variant: "h4", children: items[currentIndex].title }),
|
|
6467
|
+
/* @__PURE__ */ jsx46(Typography4, { variant: "body1", children: items[currentIndex].description })
|
|
6430
6468
|
] })
|
|
6431
6469
|
] })
|
|
6432
6470
|
}
|
|
6433
6471
|
),
|
|
6434
|
-
/* @__PURE__ */
|
|
6472
|
+
/* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsx46(IconButton6, { onClick: handleNext, sx: { margin: 1, color: "white" }, children: /* @__PURE__ */ jsx46(NavigateNextIcon, { style: { fontSize: adjustButtonSize } }) }) })
|
|
6435
6473
|
]
|
|
6436
6474
|
}
|
|
6437
6475
|
) }) });
|
|
@@ -6439,18 +6477,18 @@ var DefaultCarousel = ({ items, buttonSize, imageHeight, imageWidth, cardHeight,
|
|
|
6439
6477
|
DefaultCarousel.displayName = "DefaultCarousel";
|
|
6440
6478
|
|
|
6441
6479
|
// src/components/carousels/WavelengthSliderCarousel.tsx
|
|
6442
|
-
import { useState as useState8, useEffect as
|
|
6480
|
+
import { useState as useState8, useEffect as useEffect19 } from "react";
|
|
6443
6481
|
import Grid4 from "@mui/material/Grid";
|
|
6444
6482
|
import Card2 from "@mui/material/Card";
|
|
6445
6483
|
import CardContent2 from "@mui/material/CardContent";
|
|
6446
6484
|
import CardMedia2 from "@mui/material/CardMedia";
|
|
6447
6485
|
import CardActionArea2 from "@mui/material/CardActionArea";
|
|
6448
|
-
import { jsx as
|
|
6486
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6449
6487
|
var delay = 2500;
|
|
6450
6488
|
var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
|
|
6451
6489
|
const [index, setIndex] = useState8(0);
|
|
6452
6490
|
const [isHovered, setIsHovered] = useState8(false);
|
|
6453
|
-
|
|
6491
|
+
useEffect19(() => {
|
|
6454
6492
|
setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
|
|
6455
6493
|
return () => {
|
|
6456
6494
|
};
|
|
@@ -6488,7 +6526,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
|
|
|
6488
6526
|
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"
|
|
6489
6527
|
}
|
|
6490
6528
|
};
|
|
6491
|
-
return /* @__PURE__ */
|
|
6529
|
+
return /* @__PURE__ */ jsx47("div", { style: styles.carouselcontainer, children: /* @__PURE__ */ jsx47("div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ jsx47(
|
|
6492
6530
|
Grid4,
|
|
6493
6531
|
{
|
|
6494
6532
|
sx: {
|
|
@@ -6498,7 +6536,7 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
|
|
|
6498
6536
|
},
|
|
6499
6537
|
container: true,
|
|
6500
6538
|
spacing: 0.5,
|
|
6501
|
-
children: items.map((card) => /* @__PURE__ */
|
|
6539
|
+
children: items.map((card) => /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47(
|
|
6502
6540
|
Card2,
|
|
6503
6541
|
{
|
|
6504
6542
|
sx: {
|
|
@@ -6509,10 +6547,10 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
|
|
|
6509
6547
|
onMouseEnter: () => setIsHovered(true),
|
|
6510
6548
|
onMouseLeave: () => setIsHovered(false),
|
|
6511
6549
|
children: /* @__PURE__ */ jsxs26(CardActionArea2, { href: card.path, children: [
|
|
6512
|
-
/* @__PURE__ */
|
|
6550
|
+
/* @__PURE__ */ jsx47(CardMedia2, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
|
|
6513
6551
|
/* @__PURE__ */ jsxs26(CardContent2, { children: [
|
|
6514
|
-
/* @__PURE__ */
|
|
6515
|
-
/* @__PURE__ */
|
|
6552
|
+
/* @__PURE__ */ jsx47("h3", { children: card.title }),
|
|
6553
|
+
/* @__PURE__ */ jsx47("p", { children: card.description })
|
|
6516
6554
|
] })
|
|
6517
6555
|
] })
|
|
6518
6556
|
}
|
|
@@ -6523,9 +6561,9 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
|
|
|
6523
6561
|
SliderCardCarousel.displayName = "SliderCardCarousel";
|
|
6524
6562
|
|
|
6525
6563
|
// src/components/TextField/WavelengthInput.tsx
|
|
6526
|
-
import { useRef as
|
|
6564
|
+
import { useRef as useRef18, useEffect as useEffect20, forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle3 } from "react";
|
|
6527
6565
|
import "@wavelengthusaf/web-components";
|
|
6528
|
-
import { jsx as
|
|
6566
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
6529
6567
|
var WavelengthInput = forwardRef2(
|
|
6530
6568
|
({
|
|
6531
6569
|
id,
|
|
@@ -6562,12 +6600,12 @@ var WavelengthInput = forwardRef2(
|
|
|
6562
6600
|
onBlurCallback,
|
|
6563
6601
|
...rest
|
|
6564
6602
|
}, ref) => {
|
|
6565
|
-
const internalRef =
|
|
6603
|
+
const internalRef = useRef18(null);
|
|
6566
6604
|
useImperativeHandle3(ref, () => ({
|
|
6567
6605
|
...internalRef.current,
|
|
6568
6606
|
validate: () => internalRef.current?.validate?.(true)
|
|
6569
6607
|
}));
|
|
6570
|
-
|
|
6608
|
+
useEffect20(() => {
|
|
6571
6609
|
const el = internalRef.current;
|
|
6572
6610
|
if (!el) return;
|
|
6573
6611
|
const set = (attr, val) => {
|
|
@@ -6638,7 +6676,7 @@ var WavelengthInput = forwardRef2(
|
|
|
6638
6676
|
label,
|
|
6639
6677
|
disabled
|
|
6640
6678
|
]);
|
|
6641
|
-
|
|
6679
|
+
useEffect20(() => {
|
|
6642
6680
|
const el = internalRef.current;
|
|
6643
6681
|
if (!el || !onBlurCallback) return;
|
|
6644
6682
|
const handler = (e) => {
|
|
@@ -6650,7 +6688,7 @@ var WavelengthInput = forwardRef2(
|
|
|
6650
6688
|
el.addEventListener("blur", handler);
|
|
6651
6689
|
return () => el.removeEventListener("blur", handler);
|
|
6652
6690
|
}, [onBlurCallback]);
|
|
6653
|
-
|
|
6691
|
+
useEffect20(() => {
|
|
6654
6692
|
const el = internalRef.current;
|
|
6655
6693
|
if (!el || !onChange) return;
|
|
6656
6694
|
const handler = (e) => {
|
|
@@ -6671,7 +6709,7 @@ var WavelengthInput = forwardRef2(
|
|
|
6671
6709
|
...style3,
|
|
6672
6710
|
...backgroundColor2 ? { ["--wavelength-label-background"]: backgroundColor2 } : {}
|
|
6673
6711
|
};
|
|
6674
|
-
return /* @__PURE__ */
|
|
6712
|
+
return /* @__PURE__ */ jsx48("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
|
|
6675
6713
|
}
|
|
6676
6714
|
);
|
|
6677
6715
|
WavelengthInput.displayName = "WavelengthInput";
|
|
@@ -6680,9 +6718,9 @@ WavelengthInput.displayName = "WavelengthInput";
|
|
|
6680
6718
|
import { WavelengthInput as WavelengthInput2 } from "@wavelengthusaf/web-components";
|
|
6681
6719
|
|
|
6682
6720
|
// src/components/DataTable/WavelengthDataTable.tsx
|
|
6683
|
-
import { useEffect as
|
|
6721
|
+
import { useEffect as useEffect21, useRef as useRef19, useState as useState9 } from "react";
|
|
6684
6722
|
import styled8 from "styled-components";
|
|
6685
|
-
import { jsx as
|
|
6723
|
+
import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6686
6724
|
var ModalInputDiv = styled8.div`
|
|
6687
6725
|
display: flex;
|
|
6688
6726
|
flex-direction: column; /* Corrected this line */
|
|
@@ -6861,8 +6899,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6861
6899
|
const [currentPage, setCurrentPage] = useState9(1);
|
|
6862
6900
|
const [isOpen, setIsOpen] = useState9(false);
|
|
6863
6901
|
const [editingMenuKey, setEditingMenuKey] = useState9(null);
|
|
6864
|
-
const menuRef =
|
|
6865
|
-
const modalRef =
|
|
6902
|
+
const menuRef = useRef19(null);
|
|
6903
|
+
const modalRef = useRef19(null);
|
|
6866
6904
|
function isNumeric(value) {
|
|
6867
6905
|
return /^\d+$/.test(value);
|
|
6868
6906
|
}
|
|
@@ -6870,7 +6908,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6870
6908
|
setSelectedValue(event.target.value);
|
|
6871
6909
|
setLocalData(copiedArray);
|
|
6872
6910
|
};
|
|
6873
|
-
|
|
6911
|
+
useEffect21(() => {
|
|
6874
6912
|
if (!selectedValue || searchItem === "") {
|
|
6875
6913
|
setLocalData(copiedArray);
|
|
6876
6914
|
setNoRowsOpen(false);
|
|
@@ -6900,7 +6938,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6900
6938
|
const closeModal = () => {
|
|
6901
6939
|
setIsModalOpen(false);
|
|
6902
6940
|
};
|
|
6903
|
-
|
|
6941
|
+
useEffect21(() => {
|
|
6904
6942
|
const handleClickOutside = (event) => {
|
|
6905
6943
|
if (isModalOpen && modalRef.current && !modalRef.current.contains(event.target)) {
|
|
6906
6944
|
closeModal();
|
|
@@ -6960,7 +6998,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6960
6998
|
return /* @__PURE__ */ jsxs27(TableHeadStyle, { children: [
|
|
6961
6999
|
column.title,
|
|
6962
7000
|
/* @__PURE__ */ jsxs27(KebabMenu, { ref: menuRef, children: [
|
|
6963
|
-
/* @__PURE__ */
|
|
7001
|
+
/* @__PURE__ */ jsx49(
|
|
6964
7002
|
KebabIcon,
|
|
6965
7003
|
{
|
|
6966
7004
|
title: `KebabIcon-${index}`,
|
|
@@ -6972,25 +7010,25 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6972
7010
|
),
|
|
6973
7011
|
isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs27(MenuOptions, { children: [
|
|
6974
7012
|
sortOrder === "asc" ? /* @__PURE__ */ jsxs27("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
|
|
6975
|
-
/* @__PURE__ */
|
|
7013
|
+
/* @__PURE__ */ jsx49("span", { children: "\u2B06" }),
|
|
6976
7014
|
" Sort ASC"
|
|
6977
7015
|
] }) : /* @__PURE__ */ jsxs27("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
|
|
6978
|
-
/* @__PURE__ */
|
|
7016
|
+
/* @__PURE__ */ jsx49("span", { children: "\u2B07" }),
|
|
6979
7017
|
" Sort DESC"
|
|
6980
7018
|
] }),
|
|
6981
7019
|
/* @__PURE__ */ jsxs27("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
|
|
6982
|
-
/* @__PURE__ */
|
|
7020
|
+
/* @__PURE__ */ jsx49("span", { children: "\u23F7" }),
|
|
6983
7021
|
" Filter"
|
|
6984
7022
|
] }),
|
|
6985
|
-
isModalOpen && /* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
7023
|
+
isModalOpen && /* @__PURE__ */ jsx49(ModalOverlay, { children: /* @__PURE__ */ jsxs27(ModalWrapper, { ref: modalRef, children: [
|
|
7024
|
+
/* @__PURE__ */ jsx49(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
|
|
6987
7025
|
/* @__PURE__ */ jsxs27(ModalInputDiv, { children: [
|
|
6988
|
-
/* @__PURE__ */
|
|
6989
|
-
/* @__PURE__ */
|
|
7026
|
+
/* @__PURE__ */ jsx49("label", { htmlFor: "filterSelectId", children: "Columns: " }),
|
|
7027
|
+
/* @__PURE__ */ jsx49("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx49("option", { children: item.key }, item.key)) })
|
|
6990
7028
|
] }),
|
|
6991
7029
|
/* @__PURE__ */ jsxs27(ModalInputDiv, { children: [
|
|
6992
|
-
/* @__PURE__ */
|
|
6993
|
-
/* @__PURE__ */
|
|
7030
|
+
/* @__PURE__ */ jsx49("label", { htmlFor: "filterInputId", children: "Values: " }),
|
|
7031
|
+
/* @__PURE__ */ jsx49(
|
|
6994
7032
|
"input",
|
|
6995
7033
|
{
|
|
6996
7034
|
title: `Inputfiltertest-${index}`,
|
|
@@ -7011,8 +7049,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7011
7049
|
] }, index)
|
|
7012
7050
|
] }, `headCell-${index}`);
|
|
7013
7051
|
});
|
|
7014
|
-
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */
|
|
7015
|
-
return /* @__PURE__ */
|
|
7052
|
+
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx49("tr", { children: /* @__PURE__ */ jsx49("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx49("tr", { children: columns.map((column, index2) => {
|
|
7053
|
+
return /* @__PURE__ */ jsx49(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx49(
|
|
7016
7054
|
StyledInput,
|
|
7017
7055
|
{
|
|
7018
7056
|
title: `styledRow-${item.id}-${column.key}-${index2}`,
|
|
@@ -7029,14 +7067,14 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7029
7067
|
},
|
|
7030
7068
|
autoFocus: true
|
|
7031
7069
|
}
|
|
7032
|
-
) : /* @__PURE__ */
|
|
7070
|
+
) : /* @__PURE__ */ jsx49("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
|
|
7033
7071
|
}) }, item.id));
|
|
7034
7072
|
return /* @__PURE__ */ jsxs27("div", { id, children: [
|
|
7035
|
-
/* @__PURE__ */
|
|
7036
|
-
/* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7073
|
+
/* @__PURE__ */ jsx49(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs27(StyledTableTwo, { title: "StyledTable", children: [
|
|
7074
|
+
/* @__PURE__ */ jsx49("thead", { children: /* @__PURE__ */ jsx49("tr", { children: headers }) }),
|
|
7075
|
+
/* @__PURE__ */ jsx49("tbody", { children: rows })
|
|
7038
7076
|
] }) }),
|
|
7039
|
-
/* @__PURE__ */
|
|
7077
|
+
/* @__PURE__ */ jsx49(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx49(WavelengthDefaultPagination_default, { totalPages, currentPageNumber: currentPage, onPageChange: setCurrentPage, style: "circular" }) })
|
|
7040
7078
|
] });
|
|
7041
7079
|
};
|
|
7042
7080
|
WavelengthDataTable.displayName = "WavelengthDataTable";
|
|
@@ -7044,7 +7082,7 @@ WavelengthDataTable.displayName = "WavelengthDataTable";
|
|
|
7044
7082
|
// src/components/DataTable/SubRowTable/ChildSubTable.tsx
|
|
7045
7083
|
import { useMemo as useMemo3, useState as useState10, Fragment as Fragment12 } from "react";
|
|
7046
7084
|
import styled9 from "styled-components";
|
|
7047
|
-
import { Fragment as Fragment13, jsx as
|
|
7085
|
+
import { Fragment as Fragment13, jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7048
7086
|
var TableContainer = styled9.div`
|
|
7049
7087
|
width: 1200px;
|
|
7050
7088
|
border-radius: 16px;
|
|
@@ -7281,18 +7319,18 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7281
7319
|
return result;
|
|
7282
7320
|
}, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
|
|
7283
7321
|
const renderSortButton = (column, sortOrder2, sortKey2) => {
|
|
7284
|
-
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */
|
|
7322
|
+
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx50(Fragment13, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
7285
7323
|
column.title,
|
|
7286
7324
|
" ",
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
] }) }) : /* @__PURE__ */
|
|
7325
|
+
/* @__PURE__ */ jsx50("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
7326
|
+
] }) }) : /* @__PURE__ */ jsx50(Fragment13, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
7289
7327
|
column.title,
|
|
7290
7328
|
" ",
|
|
7291
|
-
/* @__PURE__ */
|
|
7292
|
-
] }) }) : /* @__PURE__ */
|
|
7329
|
+
/* @__PURE__ */ jsx50("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
7330
|
+
] }) }) : /* @__PURE__ */ jsx50(Fragment13, { children: /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
7293
7331
|
column.title,
|
|
7294
7332
|
" ",
|
|
7295
|
-
/* @__PURE__ */
|
|
7333
|
+
/* @__PURE__ */ jsx50("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
7296
7334
|
] }) });
|
|
7297
7335
|
};
|
|
7298
7336
|
const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
|
|
@@ -7300,26 +7338,26 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7300
7338
|
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7301
7339
|
column.title,
|
|
7302
7340
|
" ",
|
|
7303
|
-
/* @__PURE__ */
|
|
7341
|
+
/* @__PURE__ */ jsx50("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
7304
7342
|
] }) : /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7305
7343
|
column.title,
|
|
7306
7344
|
" ",
|
|
7307
|
-
/* @__PURE__ */
|
|
7345
|
+
/* @__PURE__ */ jsx50("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
7308
7346
|
] }) : /* @__PURE__ */ jsxs28(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
7309
7347
|
column.title,
|
|
7310
7348
|
" ",
|
|
7311
|
-
/* @__PURE__ */
|
|
7349
|
+
/* @__PURE__ */ jsx50("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
7312
7350
|
] });
|
|
7313
7351
|
};
|
|
7314
7352
|
const headers = HeadColumns.map((column) => {
|
|
7315
|
-
return /* @__PURE__ */
|
|
7353
|
+
return /* @__PURE__ */ jsx50(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
|
|
7316
7354
|
});
|
|
7317
7355
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7318
|
-
return /* @__PURE__ */
|
|
7356
|
+
return /* @__PURE__ */ jsx50("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
7319
7357
|
});
|
|
7320
7358
|
const subDataRows = (itemId) => {
|
|
7321
|
-
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */
|
|
7322
|
-
/* @__PURE__ */
|
|
7359
|
+
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx50(Fragment12, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs28(SubDataTableBodyRowContainer, { children: [
|
|
7360
|
+
/* @__PURE__ */ jsx50("td", { children: /* @__PURE__ */ jsx50(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx50("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50(
|
|
7323
7361
|
"path",
|
|
7324
7362
|
{
|
|
7325
7363
|
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",
|
|
@@ -7330,45 +7368,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7330
7368
|
const columnKey = trimBeforePeriod2(column.key);
|
|
7331
7369
|
const value = fileItem[columnKey];
|
|
7332
7370
|
if (value !== void 0) {
|
|
7333
|
-
return /* @__PURE__ */
|
|
7371
|
+
return /* @__PURE__ */ jsx50(SubDataTableCell, { children: /* @__PURE__ */ jsx50("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
|
|
7334
7372
|
}
|
|
7335
7373
|
})
|
|
7336
7374
|
] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
|
|
7337
7375
|
};
|
|
7338
7376
|
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs28(BodyRowContainer, { children: [
|
|
7339
|
-
/* @__PURE__ */
|
|
7377
|
+
/* @__PURE__ */ jsx50(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx50(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
|
|
7340
7378
|
/* @__PURE__ */ jsxs28(ButtonStylingRow, { children: [
|
|
7341
|
-
/* @__PURE__ */
|
|
7342
|
-
/* @__PURE__ */
|
|
7379
|
+
/* @__PURE__ */ jsx50(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
7380
|
+
/* @__PURE__ */ jsx50(AddButton, { onClick: addFilesOnClick, children: "Add files" })
|
|
7343
7381
|
] }),
|
|
7344
|
-
openRow !== item.id && /* @__PURE__ */
|
|
7382
|
+
openRow !== item.id && /* @__PURE__ */ jsx50(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx50("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
|
|
7345
7383
|
openRow === item.id && /* @__PURE__ */ jsxs28("div", { children: [
|
|
7346
7384
|
/* @__PURE__ */ jsxs28(SubDataTable, { children: [
|
|
7347
|
-
/* @__PURE__ */
|
|
7348
|
-
/* @__PURE__ */
|
|
7385
|
+
/* @__PURE__ */ jsx50(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs28(SubDataTableHeaderRow, { children: [
|
|
7386
|
+
/* @__PURE__ */ jsx50("th", {}),
|
|
7349
7387
|
SubDataHeaders
|
|
7350
7388
|
] }) }),
|
|
7351
|
-
/* @__PURE__ */
|
|
7389
|
+
/* @__PURE__ */ jsx50(SubDataTableBodyRow, { children: subDataRows(item.id) })
|
|
7352
7390
|
] }),
|
|
7353
|
-
/* @__PURE__ */
|
|
7391
|
+
/* @__PURE__ */ jsx50(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx50("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx50("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
|
|
7354
7392
|
] })
|
|
7355
7393
|
] }, `Bodycontainer-${item.id}-${index}`));
|
|
7356
7394
|
return /* @__PURE__ */ jsxs28(TableContainer, { children: [
|
|
7357
|
-
/* @__PURE__ */
|
|
7358
|
-
/* @__PURE__ */
|
|
7395
|
+
/* @__PURE__ */ jsx50(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
|
|
7396
|
+
/* @__PURE__ */ jsx50("div", { title: "tablebodies", children: dataRows })
|
|
7359
7397
|
] });
|
|
7360
7398
|
};
|
|
7361
7399
|
ChildDataTable.displayName = "ChildDataTable";
|
|
7362
7400
|
|
|
7363
7401
|
// src/components/DataTable/SubRowTable/ChildDataTable.tsx
|
|
7364
|
-
import { useRef as
|
|
7402
|
+
import { useRef as useRef20, useEffect as useEffect22 } from "react";
|
|
7365
7403
|
import "@wavelengthusaf/web-components";
|
|
7366
7404
|
import { createRoot } from "react-dom/client";
|
|
7367
|
-
import { jsx as
|
|
7405
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
7368
7406
|
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, ...rest }) => {
|
|
7369
|
-
const tableRef =
|
|
7370
|
-
const reactDropdownRoots =
|
|
7371
|
-
|
|
7407
|
+
const tableRef = useRef20(null);
|
|
7408
|
+
const reactDropdownRoots = useRef20(/* @__PURE__ */ new Map());
|
|
7409
|
+
useEffect22(() => {
|
|
7372
7410
|
const customChildDataTableElement = tableRef.current;
|
|
7373
7411
|
if (!customChildDataTableElement) return;
|
|
7374
7412
|
if (columns !== void 0) customChildDataTableElement.setColumns = columns;
|
|
@@ -7377,7 +7415,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
7377
7415
|
if (sortIcon !== void 0) customChildDataTableElement.setSortIcon = sortIcon;
|
|
7378
7416
|
if (dropdownButtonIcon !== void 0) customChildDataTableElement.setDropdownButtonIcon = dropdownButtonIcon;
|
|
7379
7417
|
}, [columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon]);
|
|
7380
|
-
|
|
7418
|
+
useEffect22(() => {
|
|
7381
7419
|
const el = tableRef.current;
|
|
7382
7420
|
if (!el) return;
|
|
7383
7421
|
const handleReactDropdown = (event) => {
|
|
@@ -7414,7 +7452,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
7414
7452
|
el.removeEventListener("cleanupDropdown", handleCleanupDropdown);
|
|
7415
7453
|
};
|
|
7416
7454
|
}, [data]);
|
|
7417
|
-
return /* @__PURE__ */
|
|
7455
|
+
return /* @__PURE__ */ jsx51("wavelength-child-data-table", { ref: tableRef, ...rest });
|
|
7418
7456
|
};
|
|
7419
7457
|
ChildDataTable2.displayName = "ChildDataTable";
|
|
7420
7458
|
|
|
@@ -7424,7 +7462,7 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
|
|
|
7424
7462
|
// src/components/DataTable/NestedDataTable/NestedDataTable.tsx
|
|
7425
7463
|
import { useState as useState11 } from "react";
|
|
7426
7464
|
import styled10 from "styled-components";
|
|
7427
|
-
import { Fragment as Fragment14, jsx as
|
|
7465
|
+
import { Fragment as Fragment14, jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7428
7466
|
var TableStyle = styled10.table`
|
|
7429
7467
|
width: 100%;
|
|
7430
7468
|
height: 100%;
|
|
@@ -7511,46 +7549,46 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7511
7549
|
setPrimaryRowIndex(rowIndex);
|
|
7512
7550
|
};
|
|
7513
7551
|
const headers = HeadColumns.map((column, index) => {
|
|
7514
|
-
return /* @__PURE__ */
|
|
7552
|
+
return /* @__PURE__ */ jsx52(MainThHeaders, { children: column.title }, `headCell-${index}`);
|
|
7515
7553
|
});
|
|
7516
7554
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7517
|
-
return /* @__PURE__ */
|
|
7555
|
+
return /* @__PURE__ */ jsx52("th", { children: column.title }, `SubHeadCell-${index}`);
|
|
7518
7556
|
});
|
|
7519
|
-
const subDataRows = !data?.length ? /* @__PURE__ */
|
|
7557
|
+
const subDataRows = !data?.length ? /* @__PURE__ */ jsx52("tr", { children: /* @__PURE__ */ jsx52("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx52(Fragment14, { children: /* @__PURE__ */ jsx52(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
|
|
7520
7558
|
const columnKey = trimBeforePeriod(column.key);
|
|
7521
7559
|
const value = item.Details?.[columnKey];
|
|
7522
7560
|
console.log("value: ", value);
|
|
7523
7561
|
if (value !== void 0) {
|
|
7524
|
-
return /* @__PURE__ */
|
|
7562
|
+
return /* @__PURE__ */ jsx52("td", { children: /* @__PURE__ */ jsx52("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
7525
7563
|
}
|
|
7526
7564
|
}) }, `Sub-${item.id}-${index}`) }));
|
|
7527
7565
|
const childRows = /* @__PURE__ */ jsxs29(SubTableStyle, { children: [
|
|
7528
|
-
/* @__PURE__ */
|
|
7529
|
-
/* @__PURE__ */
|
|
7566
|
+
/* @__PURE__ */ jsx52("thead", { children: /* @__PURE__ */ jsx52("tr", { children: SubDataHeaders }) }),
|
|
7567
|
+
/* @__PURE__ */ jsx52("tbody", { children: subDataRows })
|
|
7530
7568
|
] });
|
|
7531
|
-
const rows = !data?.length ? /* @__PURE__ */
|
|
7569
|
+
const rows = !data?.length ? /* @__PURE__ */ jsx52("tr", { children: /* @__PURE__ */ jsx52("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs29(Fragment14, { children: [
|
|
7532
7570
|
/* @__PURE__ */ jsxs29(PrimaryTrRows, { $index: index, children: [
|
|
7533
|
-
/* @__PURE__ */
|
|
7571
|
+
/* @__PURE__ */ jsx52(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx52(Fragment14, { children: "\u2227" }) : /* @__PURE__ */ jsx52(Fragment14, { children: "\u2228" }) }),
|
|
7534
7572
|
HeadColumns.map((column, index2) => {
|
|
7535
|
-
return /* @__PURE__ */
|
|
7573
|
+
return /* @__PURE__ */ jsx52(PrimaryTdSpan, { children: /* @__PURE__ */ jsx52("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
|
|
7536
7574
|
})
|
|
7537
7575
|
] }, index),
|
|
7538
|
-
isOpen && primaryRowIndex === index && /* @__PURE__ */
|
|
7576
|
+
isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx52(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx52("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
|
|
7539
7577
|
] }));
|
|
7540
|
-
return /* @__PURE__ */
|
|
7541
|
-
/* @__PURE__ */
|
|
7542
|
-
/* @__PURE__ */
|
|
7578
|
+
return /* @__PURE__ */ jsx52("div", { id, children: /* @__PURE__ */ jsxs29(TableStyle, { children: [
|
|
7579
|
+
/* @__PURE__ */ jsx52("thead", { children: /* @__PURE__ */ jsxs29("tr", { children: [
|
|
7580
|
+
/* @__PURE__ */ jsx52("th", { title: "dropdownth" }),
|
|
7543
7581
|
headers
|
|
7544
7582
|
] }) }),
|
|
7545
|
-
/* @__PURE__ */
|
|
7583
|
+
/* @__PURE__ */ jsx52("tbody", { children: rows })
|
|
7546
7584
|
] }) });
|
|
7547
7585
|
};
|
|
7548
7586
|
NestedDataTable.displayName = "NestedDataTable";
|
|
7549
7587
|
|
|
7550
7588
|
// src/components/AutoComplete/WavelengthAutoComplete.tsx
|
|
7551
|
-
import { useEffect as
|
|
7589
|
+
import { useEffect as useEffect23, useRef as useRef22, useState as useState12 } from "react";
|
|
7552
7590
|
import styled11 from "styled-components";
|
|
7553
|
-
import { Fragment as Fragment15, jsx as
|
|
7591
|
+
import { Fragment as Fragment15, jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7554
7592
|
var AutoContainer = styled11.div`
|
|
7555
7593
|
//position: relative;
|
|
7556
7594
|
position: relative;
|
|
@@ -7679,9 +7717,9 @@ var WavelengthAutoComplete = ({
|
|
|
7679
7717
|
placeholder,
|
|
7680
7718
|
onBlurCallback
|
|
7681
7719
|
}) => {
|
|
7682
|
-
const inputRef =
|
|
7683
|
-
const listRef =
|
|
7684
|
-
const noItemListRef =
|
|
7720
|
+
const inputRef = useRef22(null);
|
|
7721
|
+
const listRef = useRef22(null);
|
|
7722
|
+
const noItemListRef = useRef22(null);
|
|
7685
7723
|
const [inputValue, setInputValue] = useState12(placeholder ?? "");
|
|
7686
7724
|
const [suggestions, setSuggestions] = useState12([]);
|
|
7687
7725
|
const [isDropdownVisible, setIsDropdownVisible] = useState12(false);
|
|
@@ -7689,7 +7727,7 @@ var WavelengthAutoComplete = ({
|
|
|
7689
7727
|
const arrayLength = suggestions.length;
|
|
7690
7728
|
const [focusedIndex, setFocusedIndex] = useState12(0);
|
|
7691
7729
|
const idName = id ? id : "auto-comp";
|
|
7692
|
-
|
|
7730
|
+
useEffect23(() => {
|
|
7693
7731
|
const handleClickOutsideList = (event) => {
|
|
7694
7732
|
if (listRef.current && !listRef.current.contains(event.target)) {
|
|
7695
7733
|
setIsDropdownVisible(false);
|
|
@@ -7701,7 +7739,7 @@ var WavelengthAutoComplete = ({
|
|
|
7701
7739
|
};
|
|
7702
7740
|
}, [focusedIndex]);
|
|
7703
7741
|
if (onDataChange !== void 0) {
|
|
7704
|
-
|
|
7742
|
+
useEffect23(() => {
|
|
7705
7743
|
onDataChange(inputValue);
|
|
7706
7744
|
}, [inputValue]);
|
|
7707
7745
|
}
|
|
@@ -7767,9 +7805,9 @@ var WavelengthAutoComplete = ({
|
|
|
7767
7805
|
break;
|
|
7768
7806
|
}
|
|
7769
7807
|
};
|
|
7770
|
-
return /* @__PURE__ */
|
|
7808
|
+
return /* @__PURE__ */ jsx53(Fragment15, { children: /* @__PURE__ */ jsxs30(AutoContainer, { $inputHeight: height2, $inputWidth: width2, children: [
|
|
7771
7809
|
/* @__PURE__ */ jsxs30(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height2, $inputWidth: width2, children: [
|
|
7772
|
-
/* @__PURE__ */
|
|
7810
|
+
/* @__PURE__ */ jsx53(
|
|
7773
7811
|
Input,
|
|
7774
7812
|
{
|
|
7775
7813
|
id: idName,
|
|
@@ -7798,11 +7836,11 @@ var WavelengthAutoComplete = ({
|
|
|
7798
7836
|
autoComplete: "off"
|
|
7799
7837
|
}
|
|
7800
7838
|
),
|
|
7801
|
-
/* @__PURE__ */
|
|
7839
|
+
/* @__PURE__ */ jsx53(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
7802
7840
|
] }),
|
|
7803
|
-
isDropdownVisible && /* @__PURE__ */
|
|
7841
|
+
isDropdownVisible && /* @__PURE__ */ jsx53(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
|
|
7804
7842
|
//suggestions length controls showing the suggestions
|
|
7805
|
-
suggestions.map((item, index) => /* @__PURE__ */
|
|
7843
|
+
suggestions.map((item, index) => /* @__PURE__ */ jsx53(
|
|
7806
7844
|
ActiveListItem,
|
|
7807
7845
|
{
|
|
7808
7846
|
"data-testid": `${idName}-input-search-list-${index + 1}`,
|
|
@@ -7815,15 +7853,15 @@ var WavelengthAutoComplete = ({
|
|
|
7815
7853
|
},
|
|
7816
7854
|
`active-list-item-${item}-${index}`
|
|
7817
7855
|
))
|
|
7818
|
-
) : /* @__PURE__ */
|
|
7856
|
+
) : /* @__PURE__ */ jsx53(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
|
|
7819
7857
|
] }) });
|
|
7820
7858
|
};
|
|
7821
7859
|
WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
|
|
7822
7860
|
|
|
7823
7861
|
// src/components/inputs/WavelengthDatePicker.tsx
|
|
7824
|
-
import { useEffect as
|
|
7862
|
+
import { useEffect as useEffect24, useState as useState13 } from "react";
|
|
7825
7863
|
import styled12 from "styled-components";
|
|
7826
|
-
import { jsx as
|
|
7864
|
+
import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7827
7865
|
var Label2 = styled12.label`
|
|
7828
7866
|
position: absolute;
|
|
7829
7867
|
top: 50%;
|
|
@@ -7895,7 +7933,7 @@ var WavelengthDatePicker = ({
|
|
|
7895
7933
|
const [minAdjusted, setMinAdjusted] = useState13("");
|
|
7896
7934
|
const [maxAdjusted, setMaxAdjusted] = useState13("");
|
|
7897
7935
|
const idName = id ? id : "WlDatePick";
|
|
7898
|
-
|
|
7936
|
+
useEffect24(() => {
|
|
7899
7937
|
const minDate = new Date(min || "");
|
|
7900
7938
|
const maxDate = new Date(max || "");
|
|
7901
7939
|
if (inputTimeType === "datetime-local") {
|
|
@@ -7946,7 +7984,7 @@ var WavelengthDatePicker = ({
|
|
|
7946
7984
|
$FocusLabelColor: FocusLabelColor,
|
|
7947
7985
|
$inputBackGroundColor: backgroundColor2,
|
|
7948
7986
|
children: [
|
|
7949
|
-
/* @__PURE__ */
|
|
7987
|
+
/* @__PURE__ */ jsx54(
|
|
7950
7988
|
"input",
|
|
7951
7989
|
{
|
|
7952
7990
|
type: inputType,
|
|
@@ -7967,7 +8005,7 @@ var WavelengthDatePicker = ({
|
|
|
7967
8005
|
max: maxAdjusted
|
|
7968
8006
|
}
|
|
7969
8007
|
),
|
|
7970
|
-
/* @__PURE__ */
|
|
8008
|
+
/* @__PURE__ */ jsx54(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
7971
8009
|
]
|
|
7972
8010
|
}
|
|
7973
8011
|
);
|
|
@@ -7978,9 +8016,9 @@ WavelengthDatePicker.displayName = "WavelengthDatePicker";
|
|
|
7978
8016
|
import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/web-components";
|
|
7979
8017
|
|
|
7980
8018
|
// src/components/inputs/WavelengthCheckbox.tsx
|
|
7981
|
-
import { useRef as
|
|
8019
|
+
import { useRef as useRef23, useEffect as useEffect25 } from "react";
|
|
7982
8020
|
import "@wavelengthusaf/web-components";
|
|
7983
|
-
import { jsx as
|
|
8021
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
7984
8022
|
var WavelengthCheckbox = ({
|
|
7985
8023
|
size,
|
|
7986
8024
|
color: color2,
|
|
@@ -7990,8 +8028,8 @@ var WavelengthCheckbox = ({
|
|
|
7990
8028
|
textSize,
|
|
7991
8029
|
...rest
|
|
7992
8030
|
}) => {
|
|
7993
|
-
const ref =
|
|
7994
|
-
|
|
8031
|
+
const ref = useRef23(null);
|
|
8032
|
+
useEffect25(() => {
|
|
7995
8033
|
const el = ref.current;
|
|
7996
8034
|
if (!el) return;
|
|
7997
8035
|
if (size !== void 0) {
|
|
@@ -8015,13 +8053,13 @@ var WavelengthCheckbox = ({
|
|
|
8015
8053
|
el.setAttribute("text-size", textSize);
|
|
8016
8054
|
}
|
|
8017
8055
|
}, [size, color2, theme, disabled, text, textSize]);
|
|
8018
|
-
return /* @__PURE__ */
|
|
8056
|
+
return /* @__PURE__ */ jsx55("wavelength-checkbox", { ref, ...rest });
|
|
8019
8057
|
};
|
|
8020
8058
|
WavelengthCheckbox.displayName = "WavelengthCheckbox";
|
|
8021
8059
|
|
|
8022
8060
|
// src/components/samples/SampleComponent.tsx
|
|
8023
|
-
import { useRef as
|
|
8024
|
-
import { jsx as
|
|
8061
|
+
import { useRef as useRef24, useEffect as useEffect26 } from "react";
|
|
8062
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
8025
8063
|
var SampleComponent = ({
|
|
8026
8064
|
testProp,
|
|
8027
8065
|
children,
|
|
@@ -8030,8 +8068,8 @@ var SampleComponent = ({
|
|
|
8030
8068
|
...rest
|
|
8031
8069
|
// This rest operator includes className, style, onClick, etc.
|
|
8032
8070
|
}) => {
|
|
8033
|
-
const ref =
|
|
8034
|
-
|
|
8071
|
+
const ref = useRef24(null);
|
|
8072
|
+
useEffect26(() => {
|
|
8035
8073
|
const el = ref.current;
|
|
8036
8074
|
if (!el) return;
|
|
8037
8075
|
el.customStyles = customStyle2;
|
|
@@ -8039,14 +8077,14 @@ var SampleComponent = ({
|
|
|
8039
8077
|
el.setAttribute("test-prop", testProp);
|
|
8040
8078
|
}
|
|
8041
8079
|
}, [testProp]);
|
|
8042
|
-
return /* @__PURE__ */
|
|
8080
|
+
return /* @__PURE__ */ jsx56("sample-component", { ref, ...rest, children });
|
|
8043
8081
|
};
|
|
8044
8082
|
SampleComponent.displayName = "SampleComponent";
|
|
8045
8083
|
|
|
8046
8084
|
// src/components/NotificationPanel/WavelengthNotificationPanel.tsx
|
|
8047
|
-
import { useRef as
|
|
8085
|
+
import { useRef as useRef25, useEffect as useEffect27 } from "react";
|
|
8048
8086
|
import "@wavelengthusaf/web-components";
|
|
8049
|
-
import { jsx as
|
|
8087
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
8050
8088
|
var WavelengthNotificationPanel = ({
|
|
8051
8089
|
notifications,
|
|
8052
8090
|
darkMode,
|
|
@@ -8055,8 +8093,8 @@ var WavelengthNotificationPanel = ({
|
|
|
8055
8093
|
...rest
|
|
8056
8094
|
// This rest operator includes className, style, onClick, etc.
|
|
8057
8095
|
}) => {
|
|
8058
|
-
const ref =
|
|
8059
|
-
|
|
8096
|
+
const ref = useRef25(null);
|
|
8097
|
+
useEffect27(() => {
|
|
8060
8098
|
const el = ref.current;
|
|
8061
8099
|
if (!el) return;
|
|
8062
8100
|
if (notifications !== void 0) {
|
|
@@ -8075,18 +8113,18 @@ var WavelengthNotificationPanel = ({
|
|
|
8075
8113
|
el.accountLink = accountLink;
|
|
8076
8114
|
}
|
|
8077
8115
|
}, [notifications, darkMode, rest.onMarkAsRead, rest.onSignOut, accountLink]);
|
|
8078
|
-
return /* @__PURE__ */
|
|
8116
|
+
return /* @__PURE__ */ jsx57("wavelength-notification-panel", { ref, ...rest, children });
|
|
8079
8117
|
};
|
|
8080
8118
|
|
|
8081
8119
|
// src/index.ts
|
|
8082
8120
|
import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-components";
|
|
8083
8121
|
|
|
8084
8122
|
// src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
|
|
8085
|
-
import { useEffect as
|
|
8086
|
-
import { jsx as
|
|
8123
|
+
import { useEffect as useEffect28, useRef as useRef26 } from "react";
|
|
8124
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
8087
8125
|
var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style: style3, onChange, value, disabled, ...rest }) => {
|
|
8088
|
-
const componentRef =
|
|
8089
|
-
|
|
8126
|
+
const componentRef = useRef26(null);
|
|
8127
|
+
useEffect28(() => {
|
|
8090
8128
|
const component = componentRef.current;
|
|
8091
8129
|
if (!component) return;
|
|
8092
8130
|
const handleValueChange = (event) => {
|
|
@@ -8099,7 +8137,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8099
8137
|
component.removeEventListener("change", handleValueChange);
|
|
8100
8138
|
};
|
|
8101
8139
|
}, [onChange]);
|
|
8102
|
-
|
|
8140
|
+
useEffect28(() => {
|
|
8103
8141
|
const component = componentRef.current;
|
|
8104
8142
|
if (!component) return;
|
|
8105
8143
|
if (placeholder) component.setAttribute("placeholder", placeholder);
|
|
@@ -8109,13 +8147,13 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8109
8147
|
if (options) component.autocompleteOptions = options;
|
|
8110
8148
|
if (style3) component.customStyles = style3;
|
|
8111
8149
|
}, [options, placeholder, name, label, style3]);
|
|
8112
|
-
|
|
8150
|
+
useEffect28(() => {
|
|
8113
8151
|
const component = componentRef.current;
|
|
8114
8152
|
if (component && value) {
|
|
8115
8153
|
component.value = value;
|
|
8116
8154
|
}
|
|
8117
8155
|
}, [value]);
|
|
8118
|
-
return /* @__PURE__ */
|
|
8156
|
+
return /* @__PURE__ */ jsx58("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
|
|
8119
8157
|
};
|
|
8120
8158
|
|
|
8121
8159
|
// src/index.ts
|
|
@@ -8185,6 +8223,7 @@ export {
|
|
|
8185
8223
|
WavelengthSpinningOuterCircle,
|
|
8186
8224
|
WavelengthStandardSnackbar,
|
|
8187
8225
|
WavelengthStyledButton,
|
|
8226
|
+
WavelengthSwitch,
|
|
8188
8227
|
WavelengthTestSnackbar,
|
|
8189
8228
|
WavelengthTitleBar,
|
|
8190
8229
|
WavelengthTitleBar2 as WavelengthTitleBarElement,
|
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.12.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.14.0",
|
|
75
75
|
"react": "^18.2.0",
|
|
76
76
|
"react-router-dom": "^6.26.2",
|
|
77
77
|
"styled-components": "^6.1.12",
|