@wavelengthusaf/components 4.17.0 → 4.21.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.
@@ -3745,6 +3745,8 @@ var WavelengthSearch = ({
3745
3745
  placeholderFont,
3746
3746
  inputColor,
3747
3747
  inputFont,
3748
+ onSearchSubmit,
3749
+ onSearchSelect,
3748
3750
  ...rest
3749
3751
  // This rest operator includes className, style, onClick, etc.
3750
3752
  }) => {
@@ -3771,13 +3773,31 @@ var WavelengthSearch = ({
3771
3773
  syncAttribute("border-color", borderColor2);
3772
3774
  syncAttribute("background-color", backgroundColor2);
3773
3775
  syncAttribute("hover-color", hoverColor);
3774
- syncAttribute("options", options);
3776
+ if (options !== void 0) {
3777
+ el.options = options;
3778
+ }
3775
3779
  syncAttribute("icon-pos", iconPos);
3776
3780
  syncAttribute("placeholder", placeholder);
3777
3781
  syncAttribute("placeholder-color", placeholderColor);
3778
3782
  syncAttribute("placeholder-font", placeholderFont);
3779
3783
  syncAttribute("input-color", inputColor);
3780
3784
  syncAttribute("input-font", inputFont);
3785
+ const handleSearchSubmit = (e) => {
3786
+ if (onSearchSubmit) {
3787
+ onSearchSubmit(e.detail.value);
3788
+ }
3789
+ };
3790
+ const handleSearchSelect = (e) => {
3791
+ if (onSearchSelect) {
3792
+ onSearchSelect(e.detail.value);
3793
+ }
3794
+ };
3795
+ el.addEventListener("wavelength-search-submit", handleSearchSubmit);
3796
+ el.addEventListener("wavelength-search-select", handleSearchSelect);
3797
+ return () => {
3798
+ el.removeEventListener("wavelength-search-submit", handleSearchSubmit);
3799
+ el.removeEventListener("wavelength-search-select", handleSearchSelect);
3800
+ };
3781
3801
  }, [
3782
3802
  customStyle,
3783
3803
  width2,
@@ -3795,7 +3815,9 @@ var WavelengthSearch = ({
3795
3815
  placeholderColor,
3796
3816
  placeholderFont,
3797
3817
  inputColor,
3798
- inputFont
3818
+ inputFont,
3819
+ onSearchSubmit,
3820
+ onSearchSelect
3799
3821
  ]);
3800
3822
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-search", { ref, ...rest });
3801
3823
  };
@@ -4297,75 +4319,21 @@ WavelengthNotAvailablePage.displayName = "WavelengthNotAvailablePage";
4297
4319
 
4298
4320
  // src/components/PageComponents/WavelengthSideBar.tsx
4299
4321
 
4300
- var _reactrouterdom = require('react-router-dom');
4301
- var _iconsmaterial = require('@mui/icons-material');
4302
- var _ListItem = require('@mui/material/ListItem'); var _ListItem2 = _interopRequireDefault(_ListItem);
4303
- var _Typography = require('@mui/material/Typography'); var _Typography2 = _interopRequireDefault(_Typography);
4304
- var _Collapse = require('@mui/material/Collapse'); var _Collapse2 = _interopRequireDefault(_Collapse);
4305
- var _List = require('@mui/material/List'); var _List2 = _interopRequireDefault(_List);
4306
4322
 
4307
- function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width: width2 = 240, height: height2 = 300, id }) {
4308
- const [openSections, setOpenSections] = _react.useState.call(void 0, {});
4309
- const navigate = _reactrouterdom.useNavigate.call(void 0, );
4310
- const palette2 = getPalette();
4311
- function handleToggle(sectionTitle) {
4312
- setOpenSections((prevState) => ({
4313
- ...prevState,
4314
- [sectionTitle]: !prevState[sectionTitle]
4315
- }));
4316
- }
4317
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4318
- "div",
4319
- {
4320
- id,
4321
- style: {
4322
- width: width2,
4323
- minHeight: 300,
4324
- height: height2,
4325
- maxHeight: 737,
4326
- overflow: "hidden",
4327
- overflowY: "scroll",
4328
- backgroundColor: bgColor ? bgColor : palette2.primary,
4329
- marginBottom: 5,
4330
- marginTop,
4331
- marginLeft,
4332
- borderRadius: "12px",
4333
- position: "relative"
4334
- },
4335
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _List2.default, { component: "nav", children: sections.map((section, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
4336
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ListItem2.default, { button: true, onClick: () => handleToggle(section.title), sx: { flexDirection: "row", alignItems: "center", paddingX: 0.75, paddingY: 0.5 }, children: [
4337
- openSections[section.title] ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsmaterial.KeyboardArrowDownRounded, { sx: { color: arrowColor ? arrowColor : palette2.secondary } }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsmaterial.KeyboardArrowRightRounded, { sx: { color: arrowColor ? arrowColor : palette2.secondary } }),
4338
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "h6", sx: { fontSize: 16, color: txtColor ? txtColor : palette2.secondary }, children: section.title })
4339
- ] }),
4340
- _optionalChain([section, 'access', _2 => _2.subsections, 'optionalAccess', _3 => _3.length]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Collapse2.default, { in: openSections[section.title], timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _List2.default, { component: "div", disablePadding: true, sx: { paddingLeft: 4 }, children: section.subsections.map((subsection, subIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
4341
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4342
- _Typography2.default,
4343
- {
4344
- variant: "subtitle2",
4345
- sx: {
4346
- fontSize: 12,
4347
- marginTop: 1,
4348
- paddingLeft: 0.75,
4349
- color: labelColor ? labelColor : palette2.secondary
4350
- },
4351
- children: _optionalChain([subsection, 'access', _4 => _4.title, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()])
4352
- }
4353
- ),
4354
- subsection.items && subsection.items.map((item, itemIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4355
- _ListItem2.default,
4356
- {
4357
- button: true,
4358
- onClick: item.path ? () => navigate(item.path) : item.onClick,
4359
- sx: { color: txtColor ? txtColor : palette2.secondary, paddingLeft: 4, paddingX: 0.75, paddingY: 0.25 },
4360
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "body2", sx: { fontSize: 16 }, children: item.title })
4361
- },
4362
- itemIndex
4363
- ))
4364
- ] }, subIndex)) }) })
4365
- ] }, index)) })
4366
- }
4367
- );
4368
- }
4323
+ var WavelengthSideBar = ({ children, customStyle, sections = "[]", onItemClick, ...rest }) => {
4324
+ const ref = _react.useRef.call(void 0, null);
4325
+ _react.useEffect.call(void 0, () => {
4326
+ const el = ref.current;
4327
+ if (!el) return;
4328
+ if (customStyle) el.customStyles = customStyle;
4329
+ el.setAttribute("sections", sections);
4330
+ if (onItemClick) {
4331
+ el.addEventListener("wavelength-sidebar-item-click", onItemClick);
4332
+ return () => el.removeEventListener("wavelength-sidebar-item-click", onItemClick);
4333
+ }
4334
+ }, [customStyle, sections, onItemClick]);
4335
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-sidebar", { ref, ...rest, children });
4336
+ };
4369
4337
  WavelengthSideBar.displayName = "WavelengthSideBar";
4370
4338
 
4371
4339
  // src/components/PageComponents/WavelengthNavBar.tsx
@@ -4453,7 +4421,7 @@ var WavelengthFileDropZone = ({
4453
4421
  else el.removeAttribute("multiple");
4454
4422
  const handleFilesSelected = (event) => {
4455
4423
  const customEvent = event;
4456
- _optionalChain([onFilesSelected, 'optionalCall', _7 => _7(customEvent.detail.files)]);
4424
+ _optionalChain([onFilesSelected, 'optionalCall', _2 => _2(customEvent.detail.files)]);
4457
4425
  };
4458
4426
  el.addEventListener("files-selected", handleFilesSelected);
4459
4427
  return () => {
@@ -4741,65 +4709,6 @@ WavelengthProgressBar.displayName = "WavelengthProgressBar";
4741
4709
  // src/index.ts
4742
4710
 
4743
4711
 
4744
- // src/components/PageComponents/WavelengthCommentDisplay.tsx
4745
-
4746
- var _CheckCircleOutline = require('@mui/icons-material/CheckCircleOutline'); var _CheckCircleOutline2 = _interopRequireDefault(_CheckCircleOutline);
4747
- var _CheckCircle = require('@mui/icons-material/CheckCircle'); var _CheckCircle2 = _interopRequireDefault(_CheckCircle);
4748
-
4749
-
4750
- function WavelengthCommentDisplay(props) {
4751
- const [selected, setSelected] = _react.useState.call(void 0, false);
4752
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4753
- "div",
4754
- {
4755
- id: props.id,
4756
- "data-testid": props.dataTestId,
4757
- style: {
4758
- display: "flex",
4759
- flexDirection: "column",
4760
- width: props.width || "332px",
4761
- minHeight: "fit",
4762
- height: props.height || "fit-content",
4763
- backgroundColor: props.backgroundColor || "rgba(250, 242, 236, 1)",
4764
- border: props.border || "1px solid rgba(0, 0, 0, 0.05)",
4765
- borderRadius: "6px",
4766
- padding: "12px",
4767
- color: props.textColor || "black"
4768
- },
4769
- children: [
4770
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontSize: "14px", fontWeight: 600, display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", padding: 0 }, children: [
4771
- props.author,
4772
- !selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4773
- _material.IconButton,
4774
- {
4775
- onClick: (e) => {
4776
- setSelected(!selected);
4777
- _optionalChain([props, 'access', _8 => _8.onClick, 'optionalCall', _9 => _9(e)]);
4778
- },
4779
- style: { padding: "0px" },
4780
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircleOutline2.default, { fontSize: "small" })
4781
- }
4782
- ),
4783
- selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4784
- _material.IconButton,
4785
- {
4786
- onClick: (e) => {
4787
- setSelected(!selected);
4788
- _optionalChain([props, 'access', _10 => _10.onClick, 'optionalCall', _11 => _11(e)]);
4789
- },
4790
- style: { padding: "0px" },
4791
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircle2.default, { fontSize: "small", sx: { color: props.iconSelectedColor || "rgba(209, 106, 47, 1)" } })
4792
- }
4793
- )
4794
- ] }),
4795
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { style: { fontSize: "12px", fontWeight: 400, opacity: 0.6 }, children: props.date }),
4796
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "14px", fontWeight: 400, marginTop: "8px" }, children: props.comments })
4797
- ]
4798
- }
4799
- );
4800
- }
4801
- WavelengthCommentDisplay.displayName = "WavelengthCommentDisplay";
4802
-
4803
4712
  // src/components/PageComponents/WavelengthPermissionAlert.tsx
4804
4713
 
4805
4714
  function WavelengthPermissionAlert({
@@ -5192,7 +5101,7 @@ var WavelengthBadge = ({
5192
5101
  updateAttribute("text-box-border-radius", textBoxBorderRadius);
5193
5102
  updateAttribute("text-box-hover-border-color", textBoxHoverBorderColor);
5194
5103
  updateAttribute("badge-font", badgeFont);
5195
- updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess', _12 => _12.toString, 'call', _13 => _13()]));
5104
+ updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
5196
5105
  updateAttribute("badge-size", badgeSize);
5197
5106
  }, [
5198
5107
  variant,
@@ -5222,6 +5131,62 @@ var WavelengthBadge = ({
5222
5131
  };
5223
5132
  WavelengthBadge.displayName = "WavelengthBadge";
5224
5133
 
5134
+ // src/components/PageComponents/WavelengthCommentDisplay.tsx
5135
+
5136
+
5137
+ var WavelengthCommentDisplay = ({
5138
+ children,
5139
+ customStyle,
5140
+ author,
5141
+ comment,
5142
+ date,
5143
+ width: width2,
5144
+ height: height2,
5145
+ txtColor,
5146
+ bgColor,
5147
+ border: border2,
5148
+ iconSelectedColor,
5149
+ selected,
5150
+ ...rest
5151
+ }) => {
5152
+ const ref = _react.useRef.call(void 0, null);
5153
+ const syncAttribute = (attribute, value) => {
5154
+ const el = ref.current;
5155
+ if (!el) return;
5156
+ if (value) {
5157
+ el.setAttribute(attribute, value);
5158
+ } else {
5159
+ el.removeAttribute(attribute);
5160
+ }
5161
+ };
5162
+ const syncBooleanAttribute = (attribute, value) => {
5163
+ const el = ref.current;
5164
+ if (!el) return;
5165
+ if (value) {
5166
+ el.setAttribute(attribute, "");
5167
+ } else {
5168
+ el.removeAttribute(attribute);
5169
+ }
5170
+ };
5171
+ _react.useEffect.call(void 0, () => {
5172
+ const el = ref.current;
5173
+ if (!el) return;
5174
+ el.customStyles = customStyle;
5175
+ syncAttribute("author", author);
5176
+ syncAttribute("comment", comment);
5177
+ syncAttribute("date", date);
5178
+ syncAttribute("width", width2);
5179
+ syncAttribute("height", height2);
5180
+ syncAttribute("txt-color", txtColor);
5181
+ syncAttribute("bg-color", bgColor);
5182
+ syncAttribute("border", border2);
5183
+ syncAttribute("icon-selected-color", iconSelectedColor);
5184
+ syncBooleanAttribute("selected", selected);
5185
+ }, [customStyle, author, comment, date, width2, height2, txtColor, bgColor, border2, iconSelectedColor, selected]);
5186
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-comment-display", { ref, ...rest, children });
5187
+ };
5188
+ WavelengthCommentDisplay.displayName = "WavelengthCommentDisplay";
5189
+
5225
5190
  // src/components/footers/WavelengthFooter/WavelengthFooter.tsx
5226
5191
 
5227
5192
  var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
@@ -5283,7 +5248,7 @@ function useStableCallback(fn) {
5283
5248
  _react.useEffect.call(void 0, () => {
5284
5249
  fnRef.current = fn;
5285
5250
  }, [fn]);
5286
- return (...args) => _optionalChain([fnRef, 'access', _14 => _14.current, 'optionalCall', _15 => _15(...args)]);
5251
+ return (...args) => _optionalChain([fnRef, 'access', _5 => _5.current, 'optionalCall', _6 => _6(...args)]);
5287
5252
  }
5288
5253
  function WavelengthFormInner(props, ref) {
5289
5254
  const {
@@ -5323,7 +5288,7 @@ function WavelengthFormInner(props, ref) {
5323
5288
  if (!el) return;
5324
5289
  let finalSchema = schema;
5325
5290
  if (placeholders) {
5326
- const shape2 = _optionalChain([schema, 'optionalAccess', _16 => _16.shape]);
5291
+ const shape2 = _optionalChain([schema, 'optionalAccess', _7 => _7.shape]);
5327
5292
  if (shape2) {
5328
5293
  const overrides = {};
5329
5294
  for (const [key, ph] of Object.entries(placeholders)) {
@@ -5356,15 +5321,15 @@ function WavelengthFormInner(props, ref) {
5356
5321
  if (!el) return;
5357
5322
  const handleChange = (e) => {
5358
5323
  const detail = e.detail;
5359
- _optionalChain([onChangeStable, 'optionalCall', _17 => _17(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _18 => _18.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _19 => _19.issues]), () => ( [])))]);
5324
+ _optionalChain([onChangeStable, 'optionalCall', _8 => _8(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _9 => _9.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _10 => _10.issues]), () => ( [])))]);
5360
5325
  };
5361
5326
  const handleValid = (e) => {
5362
5327
  const detail = e.detail;
5363
- _optionalChain([onValidStable, 'optionalCall', _20 => _20(_optionalChain([detail, 'optionalAccess', _21 => _21.value]), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _22 => _22.issues]), () => ( [])))]);
5328
+ _optionalChain([onValidStable, 'optionalCall', _11 => _11(_optionalChain([detail, 'optionalAccess', _12 => _12.value]), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _13 => _13.issues]), () => ( [])))]);
5364
5329
  };
5365
5330
  const handleInvalid = (e) => {
5366
5331
  const detail = e.detail;
5367
- _optionalChain([onInvalidStable, 'optionalCall', _23 => _23(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _24 => _24.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _25 => _25.issues]), () => ( [])))]);
5332
+ _optionalChain([onInvalidStable, 'optionalCall', _14 => _14(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _15 => _15.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _16 => _16.issues]), () => ( [])))]);
5368
5333
  };
5369
5334
  el.addEventListener("form-change", handleChange);
5370
5335
  el.addEventListener("form-valid", handleValid);
@@ -5386,8 +5351,8 @@ function WavelengthFormInner(props, ref) {
5386
5351
  _react.useImperativeHandle.call(void 0,
5387
5352
  ref,
5388
5353
  () => ({
5389
- validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.validate, 'optionalCall', _28 => _28()]), () => ( false)),
5390
- getValue: () => _optionalChain([hostRef, 'access', _29 => _29.current, 'optionalAccess', _30 => _30.value]),
5354
+ validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access', _17 => _17.current, 'optionalAccess', _18 => _18.validate, 'optionalCall', _19 => _19()]), () => ( false)),
5355
+ getValue: () => _optionalChain([hostRef, 'access', _20 => _20.current, 'optionalAccess', _21 => _21.value]),
5391
5356
  setValue: (v) => {
5392
5357
  if (hostRef.current) hostRef.current.value = v;
5393
5358
  }
@@ -5494,7 +5459,7 @@ var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color
5494
5459
  const el = ref.current;
5495
5460
  if (!el) return;
5496
5461
  if (numberOfPlanes !== void 0) {
5497
- el.setAttribute("number-of-planes", numberOfPlanes);
5462
+ el.numberOfPlanes = numberOfPlanes;
5498
5463
  }
5499
5464
  if (trailDir !== void 0) {
5500
5465
  el.setAttribute("trail-dir", trailDir);
@@ -5509,10 +5474,10 @@ var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color
5509
5474
  el.setAttribute("gradient", gradient);
5510
5475
  }
5511
5476
  if (spaced !== void 0) {
5512
- el.setAttribute("spaced", spaced);
5477
+ el.spaced = spaced;
5513
5478
  }
5514
5479
  }, [numberOfPlanes, trailDir, opacity, color2, gradient, spaced]);
5515
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-manyplanes", { ref, trailDir, opacity, color: color2, gradient, spaced, ...rest, children });
5480
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-manyplanes", { ref, trailDir, opacity, color: color2, gradient, spaced: _optionalChain([spaced, 'optionalAccess', _22 => _22.toString, 'call', _23 => _23()]), ...rest, children });
5516
5481
  };
5517
5482
  WavelengthManyPlanes.displayName = "WavelengthManyPlanes";
5518
5483
 
@@ -5583,8 +5548,8 @@ function WavelengthConfirmationModal(props) {
5583
5548
  "font-family": props.fontFamily,
5584
5549
  "text-color": props.textColor,
5585
5550
  "background-color": props.backgroundColor,
5586
- "title-text": _optionalChain([props, 'access', _31 => _31.textObj, 'optionalAccess', _32 => _32.title]),
5587
- "dialog-text": _optionalChain([props, 'access', _33 => _33.textObj, 'optionalAccess', _34 => _34.dialog]),
5551
+ "title-text": _optionalChain([props, 'access', _24 => _24.textObj, 'optionalAccess', _25 => _25.title]),
5552
+ "dialog-text": _optionalChain([props, 'access', _26 => _26.textObj, 'optionalAccess', _27 => _27.dialog]),
5588
5553
  children: [
5589
5554
  props.cancelButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
5590
5555
  props.submitButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
@@ -5605,11 +5570,11 @@ function WavelengthContentModal(props) {
5605
5570
  };
5606
5571
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Dialog, { "data-testid": "testId-WavelengthContentModal", open: show, onClose: handleClose, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", id: props.id, children: [
5607
5572
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogTitle, { alignContent: `center`, id: "alert-dialog-title", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { display: "flex", alignItems: "center", children: [
5608
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _35 => _35.textObj, 'optionalAccess', _36 => _36.title]) }),
5573
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _28 => _28.textObj, 'optionalAccess', _29 => _29.title]) }),
5609
5574
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { onClick: handleClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, {}) }) })
5610
5575
  ] }) }),
5611
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _37 => _37.textObj, 'optionalAccess', _38 => _38.dialog]) }) }),
5612
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: _optionalChain([props, 'access', _39 => _39.textObj, 'optionalAccess', _40 => _40.purpose]) }) })
5576
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _30 => _30.textObj, 'optionalAccess', _31 => _31.dialog]) }) }),
5577
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogActions, { style: { justifyContent: `center` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { "data-testid": "testId-WavelengthContentModalConfirmButton", onClick: handleContentModalOnConfirmProp, color: "primary", variant: "contained", autoFocus: true, children: _optionalChain([props, 'access', _32 => _32.textObj, 'optionalAccess', _33 => _33.purpose]) }) })
5613
5578
  ] });
5614
5579
  }
5615
5580
  WavelengthContentModal.displayName = "WavelengthContentModal";
@@ -5864,8 +5829,8 @@ var WavelengthDialog = ({
5864
5829
  _react.useEffect.call(void 0, () => {
5865
5830
  const el = ref.current;
5866
5831
  if (!el) return;
5867
- const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall', _41 => _41(e)]);
5868
- const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall', _42 => _42(e)]);
5832
+ const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall', _34 => _34(e)]);
5833
+ const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall', _35 => _35(e)]);
5869
5834
  el.addEventListener("wl-left-btn-click", handleLeft);
5870
5835
  el.addEventListener("wl-right-btn-click", handleRight);
5871
5836
  return () => {
@@ -5963,8 +5928,8 @@ var WavelengthPagination = ({
5963
5928
  syncAttribute("active-text-color", activeTextColor || "");
5964
5929
  syncAttribute("background-color", backgroundColor2 || "");
5965
5930
  syncAttribute("disabled-color", disabledColor || "");
5966
- syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _43 => _43.toString, 'call', _44 => _44()]) || "");
5967
- syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _45 => _45.toString, 'call', _46 => _46()]) || "");
5931
+ syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _36 => _36.toString, 'call', _37 => _37()]) || "");
5932
+ syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _38 => _38.toString, 'call', _39 => _39()]) || "");
5968
5933
  const handlePageChange = (e) => {
5969
5934
  if (onPageChange) {
5970
5935
  onPageChange(e.detail.page);
@@ -6500,7 +6465,7 @@ WavelengthSlider.displayName = "WavelengthSlider";
6500
6465
  var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);
6501
6466
  var _NavigateBefore = require('@mui/icons-material/NavigateBefore'); var _NavigateBefore2 = _interopRequireDefault(_NavigateBefore);
6502
6467
  var _NavigateNext = require('@mui/icons-material/NavigateNext'); var _NavigateNext2 = _interopRequireDefault(_NavigateNext);
6503
-
6468
+ var _Typography = require('@mui/material/Typography'); var _Typography2 = _interopRequireDefault(_Typography);
6504
6469
 
6505
6470
  var _Card = require('@mui/material/Card'); var _Card2 = _interopRequireDefault(_Card);
6506
6471
  var _CardContent = require('@mui/material/CardContent'); var _CardContent2 = _interopRequireDefault(_CardContent);
@@ -6684,7 +6649,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
6684
6649
  const internalRef = _react.useRef.call(void 0, null);
6685
6650
  _react.useImperativeHandle.call(void 0, ref, () => ({
6686
6651
  ...internalRef.current,
6687
- validate: () => _optionalChain([internalRef, 'access', _47 => _47.current, 'optionalAccess', _48 => _48.validate, 'optionalCall', _49 => _49(true)])
6652
+ validate: () => _optionalChain([internalRef, 'access', _40 => _40.current, 'optionalAccess', _41 => _41.validate, 'optionalCall', _42 => _42(true)])
6688
6653
  }));
6689
6654
  _react.useEffect.call(void 0, () => {
6690
6655
  const el = internalRef.current;
@@ -6763,7 +6728,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
6763
6728
  const el = internalRef.current;
6764
6729
  if (!el || !onBlurCallback) return;
6765
6730
  const handler = (e) => {
6766
- const input = _optionalChain([el, 'access', _50 => _50.shadowRoot, 'optionalAccess', _51 => _51.querySelector, 'call', _52 => _52("input, textarea")]);
6731
+ const input = _optionalChain([el, 'access', _43 => _43.shadowRoot, 'optionalAccess', _44 => _44.querySelector, 'call', _45 => _45("input, textarea")]);
6767
6732
  if (input) {
6768
6733
  onBlurCallback();
6769
6734
  }
@@ -6775,7 +6740,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
6775
6740
  const el = internalRef.current;
6776
6741
  if (!el || !onChange) return;
6777
6742
  const handler = (e) => {
6778
- const input = _optionalChain([el, 'access', _53 => _53.shadowRoot, 'optionalAccess', _54 => _54.querySelector, 'call', _55 => _55("input, textarea")]);
6743
+ const input = _optionalChain([el, 'access', _46 => _46.shadowRoot, 'optionalAccess', _47 => _47.querySelector, 'call', _48 => _48("input, textarea")]);
6779
6744
  if (input) {
6780
6745
  const synthetic = {
6781
6746
  ...e,
@@ -6978,7 +6943,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
6978
6943
  const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
6979
6944
  const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
6980
6945
  const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
6981
- const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _56 => _56[0], 'optionalAccess', _57 => _57.key]) || "");
6946
+ const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _49 => _49[0], 'optionalAccess', _50 => _50.key]) || "");
6982
6947
  const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
6983
6948
  const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
6984
6949
  const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
@@ -7132,7 +7097,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
7132
7097
  ] }, index)
7133
7098
  ] }, `headCell-${index}`);
7134
7099
  });
7135
- const rows = !_optionalChain([currentPageData, 'optionalAccess', _58 => _58.length]) || noRowsOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([currentPageData, 'optionalAccess', _59 => _59.map, 'call', _60 => _60((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
7100
+ const rows = !_optionalChain([currentPageData, 'optionalAccess', _51 => _51.length]) || noRowsOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([currentPageData, 'optionalAccess', _52 => _52.map, 'call', _53 => _53((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
7136
7101
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7137
7102
  StyledInput,
7138
7103
  {
@@ -7378,7 +7343,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7378
7343
  }
7379
7344
  if (sortSubOrder) {
7380
7345
  result.map(
7381
- (item) => _optionalChain([item, 'access', _61 => _61.Details, 'optionalAccess', _62 => _62.fileObjects, 'access', _63 => _63.sort, 'call', _64 => _64((c, d) => {
7346
+ (item) => _optionalChain([item, 'access', _54 => _54.Details, 'optionalAccess', _55 => _55.fileObjects, 'access', _56 => _56.sort, 'call', _57 => _57((c, d) => {
7382
7347
  const valueC = c[sortSubKey];
7383
7348
  const valueD = d[sortSubKey];
7384
7349
  if (typeof valueC === "string" && typeof valueD === "string") {
@@ -7439,24 +7404,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
7439
7404
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
7440
7405
  });
7441
7406
  const subDataRows = (itemId) => {
7442
- return processedRowData.filter((item) => _optionalChain([item, 'access', _65 => _65.Details, 'optionalAccess', _66 => _66.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _67 => _67.Details, 'optionalAccess', _68 => _68.fileObjects, 'access', _69 => _69.map, 'call', _70 => _70((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
7407
+ return processedRowData.filter((item) => _optionalChain([item, 'access', _58 => _58.Details, 'optionalAccess', _59 => _59.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _60 => _60.Details, 'optionalAccess', _61 => _61.fileObjects, 'access', _62 => _62.map, 'call', _63 => _63((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
7443
7408
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7444
7409
  "path",
7445
7410
  {
7446
7411
  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",
7447
7412
  fill: "#1C1B1F"
7448
7413
  }
7449
- ) }) }) }, `td-${_optionalChain([item, 'access', _71 => _71.Details, 'optionalAccess', _72 => _72.relationId])}-${fileItem.id}`),
7414
+ ) }) }) }, `td-${_optionalChain([item, 'access', _64 => _64.Details, 'optionalAccess', _65 => _65.relationId])}-${fileItem.id}`),
7450
7415
  SubDataColumns.map((column) => {
7451
7416
  const columnKey = trimBeforePeriod2(column.key);
7452
7417
  const value = fileItem[columnKey];
7453
7418
  if (value !== void 0) {
7454
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _73 => _73.Details, 'optionalAccess', _74 => _74.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _75 => _75.Details, 'optionalAccess', _76 => _76.relationId])}-${fileItem.id}-${index}-${column.title}`);
7419
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _66 => _66.Details, 'optionalAccess', _67 => _67.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _68 => _68.Details, 'optionalAccess', _69 => _69.relationId])}-${fileItem.id}-${index}-${column.title}`);
7455
7420
  }
7456
7421
  })
7457
- ] }, `${item}-${_optionalChain([item, 'access', _77 => _77.Details, 'optionalAccess', _78 => _78.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _79 => _79.Details, 'optionalAccess', _80 => _80.relationId])}`));
7422
+ ] }, `${item}-${_optionalChain([item, 'access', _70 => _70.Details, 'optionalAccess', _71 => _71.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _72 => _72.Details, 'optionalAccess', _73 => _73.relationId])}`));
7458
7423
  };
7459
- const dataRows = _optionalChain([processedRowData, 'optionalAccess', _81 => _81.map, 'call', _82 => _82((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
7424
+ const dataRows = _optionalChain([processedRowData, 'optionalAccess', _74 => _74.map, 'call', _75 => _75((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
7460
7425
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
7461
7426
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
7462
7427
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
@@ -7550,8 +7515,8 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
7550
7515
  root = _client.createRoot.call(void 0, container);
7551
7516
  dropdownRoots.current.set(container, root);
7552
7517
  }
7553
- const item = _optionalChain([data, 'optionalAccess', _83 => _83.find, 'call', _84 => _84((i) => String(i.id) === String(itemId))]);
7554
- if (_optionalChain([item, 'optionalAccess', _85 => _85.dropdown]) && root) {
7518
+ const item = _optionalChain([data, 'optionalAccess', _76 => _76.find, 'call', _77 => _77((i) => String(i.id) === String(itemId))]);
7519
+ if (_optionalChain([item, 'optionalAccess', _78 => _78.dropdown]) && root) {
7555
7520
  root.render(item.dropdown);
7556
7521
  }
7557
7522
  };
@@ -7679,9 +7644,9 @@ var NestedDataTable = ({ data, columns, id }) => {
7679
7644
  const SubDataHeaders = SubDataColumns.map((column, index) => {
7680
7645
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
7681
7646
  });
7682
- const subDataRows = !_optionalChain([data, 'optionalAccess', _86 => _86.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7647
+ const subDataRows = !_optionalChain([data, 'optionalAccess', _79 => _79.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
7683
7648
  const columnKey = trimBeforePeriod(column.key);
7684
- const value = _optionalChain([item, 'access', _87 => _87.Details, 'optionalAccess', _88 => _88[columnKey]]);
7649
+ const value = _optionalChain([item, 'access', _80 => _80.Details, 'optionalAccess', _81 => _81[columnKey]]);
7685
7650
  console.log("value: ", value);
7686
7651
  if (value !== void 0) {
7687
7652
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
@@ -7691,7 +7656,7 @@ var NestedDataTable = ({ data, columns, id }) => {
7691
7656
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
7692
7657
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
7693
7658
  ] });
7694
- const rows = !_optionalChain([data, 'optionalAccess', _89 => _89.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([data, 'optionalAccess', _90 => _90.map, 'call', _91 => _91((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7659
+ const rows = !_optionalChain([data, 'optionalAccess', _82 => _82.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([data, 'optionalAccess', _83 => _83.map, 'call', _84 => _84((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7695
7660
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
7696
7661
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: "\u2227" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: "\u2228" }) }),
7697
7662
  HeadColumns.map((column, index2) => {