@wavelengthusaf/components 3.3.10 → 3.3.11
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/README.md +4 -0
- package/dist/cjs/index.cjs +50 -52
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +27 -29
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.cjs
CHANGED
|
@@ -2304,6 +2304,7 @@ var WavelengthTitleBar = class extends HTMLElement {
|
|
|
2304
2304
|
subtitle.classList.add("subtitle");
|
|
2305
2305
|
subtitle.textContent = this.getAttribute("subtitle-text") || "Default Subtitle";
|
|
2306
2306
|
const textColor = this.getAttribute("text-color") || "#34649b";
|
|
2307
|
+
const shadowColor = this.getAttribute("shadow-color");
|
|
2307
2308
|
const style3 = document.createElement("style");
|
|
2308
2309
|
style3.textContent = `
|
|
2309
2310
|
:host {
|
|
@@ -2316,7 +2317,7 @@ var WavelengthTitleBar = class extends HTMLElement {
|
|
|
2316
2317
|
.title {
|
|
2317
2318
|
font-family: "Goldman", sans-serif;
|
|
2318
2319
|
font-size: 3.75rem;
|
|
2319
|
-
text-shadow: 0.313rem 0.313rem 0.375rem
|
|
2320
|
+
${shadowColor ? `text-shadow: 0.313rem 0.313rem 0.375rem ${shadowColor};` : ""}
|
|
2320
2321
|
-webkit-text-stroke: 1px black;
|
|
2321
2322
|
letter-spacing: 0.07em;
|
|
2322
2323
|
user-select: none;
|
|
@@ -2346,35 +2347,32 @@ var WavelengthTitleBar = class extends HTMLElement {
|
|
|
2346
2347
|
}
|
|
2347
2348
|
}
|
|
2348
2349
|
static get observedAttributes() {
|
|
2349
|
-
return ["title-text", "subtitle-text", "text-color", "
|
|
2350
|
+
return ["title-text", "subtitle-text", "text-color", "shadow-color"];
|
|
2350
2351
|
}
|
|
2351
2352
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
2352
|
-
if (oldValue
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
if (subtitleElement)
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
titleElement.style.color = newValue;
|
|
2368
|
-
}
|
|
2369
|
-
if (subtitleElement) {
|
|
2370
|
-
subtitleElement.style.color = newValue;
|
|
2371
|
-
}
|
|
2372
|
-
} else if (name === "has-shadow") {
|
|
2373
|
-
const titleElement = _optionalChain([this, 'access', _22 => _22.shadowRoot, 'optionalAccess', _23 => _23.querySelector, 'call', _24 => _24(".title")]);
|
|
2353
|
+
if (oldValue === newValue) return;
|
|
2354
|
+
const titleElement = _optionalChain([this, 'access', _10 => _10.shadowRoot, 'optionalAccess', _11 => _11.querySelector, 'call', _12 => _12(".title")]);
|
|
2355
|
+
const subtitleElement = _optionalChain([this, 'access', _13 => _13.shadowRoot, 'optionalAccess', _14 => _14.querySelector, 'call', _15 => _15(".subtitle")]);
|
|
2356
|
+
switch (name) {
|
|
2357
|
+
case "title-text":
|
|
2358
|
+
if (titleElement) titleElement.textContent = newValue;
|
|
2359
|
+
break;
|
|
2360
|
+
case "subtitle-text":
|
|
2361
|
+
if (subtitleElement) subtitleElement.textContent = newValue;
|
|
2362
|
+
break;
|
|
2363
|
+
case "text-color":
|
|
2364
|
+
if (titleElement) titleElement.style.color = newValue;
|
|
2365
|
+
if (subtitleElement) subtitleElement.style.color = newValue;
|
|
2366
|
+
break;
|
|
2367
|
+
case "shadow-color":
|
|
2374
2368
|
if (titleElement) {
|
|
2375
|
-
|
|
2369
|
+
if (newValue) {
|
|
2370
|
+
titleElement.style.textShadow = `0.313rem 0.313rem 0.375rem ${newValue}`;
|
|
2371
|
+
} else {
|
|
2372
|
+
titleElement.style.textShadow = "";
|
|
2373
|
+
}
|
|
2376
2374
|
}
|
|
2377
|
-
|
|
2375
|
+
break;
|
|
2378
2376
|
}
|
|
2379
2377
|
}
|
|
2380
2378
|
};
|
|
@@ -5709,7 +5707,7 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
5709
5707
|
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 } }),
|
|
5710
5708
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "h6", sx: { fontSize: 16, color: txtColor ? txtColor : palette2.secondary }, children: section.title })
|
|
5711
5709
|
] }),
|
|
5712
|
-
_optionalChain([section, 'access',
|
|
5710
|
+
_optionalChain([section, 'access', _16 => _16.subsections, 'optionalAccess', _17 => _17.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: [
|
|
5713
5711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5714
5712
|
_Typography2.default,
|
|
5715
5713
|
{
|
|
@@ -5720,7 +5718,7 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
5720
5718
|
paddingLeft: 0.75,
|
|
5721
5719
|
color: labelColor ? labelColor : palette2.secondary
|
|
5722
5720
|
},
|
|
5723
|
-
children: _optionalChain([subsection, 'access',
|
|
5721
|
+
children: _optionalChain([subsection, 'access', _18 => _18.title, 'optionalAccess', _19 => _19.toUpperCase, 'call', _20 => _20()])
|
|
5724
5722
|
}
|
|
5725
5723
|
),
|
|
5726
5724
|
subsection.items && subsection.items.map((item, itemIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5950,7 +5948,7 @@ function WavelengthCommentDisplay(props) {
|
|
|
5950
5948
|
{
|
|
5951
5949
|
onClick: (e) => {
|
|
5952
5950
|
setSelected(!selected);
|
|
5953
|
-
_optionalChain([props, 'access',
|
|
5951
|
+
_optionalChain([props, 'access', _21 => _21.onClick, 'optionalCall', _22 => _22(e)]);
|
|
5954
5952
|
},
|
|
5955
5953
|
style: { padding: "0px" },
|
|
5956
5954
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircleOutline2.default, { fontSize: "small" })
|
|
@@ -5961,7 +5959,7 @@ function WavelengthCommentDisplay(props) {
|
|
|
5961
5959
|
{
|
|
5962
5960
|
onClick: (e) => {
|
|
5963
5961
|
setSelected(!selected);
|
|
5964
|
-
_optionalChain([props, 'access',
|
|
5962
|
+
_optionalChain([props, 'access', _23 => _23.onClick, 'optionalCall', _24 => _24(e)]);
|
|
5965
5963
|
},
|
|
5966
5964
|
style: { padding: "0px" },
|
|
5967
5965
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircle2.default, { fontSize: "small", sx: { color: props.iconSelectedColor || "rgba(209, 106, 47, 1)" } })
|
|
@@ -6338,16 +6336,16 @@ function WavelengthFooter({ text, textColor }) {
|
|
|
6338
6336
|
// src/components/headers/WavelengthTitleBar/WavelengthTitleBar.tsx
|
|
6339
6337
|
|
|
6340
6338
|
|
|
6341
|
-
function WavelengthTitleBar2({ titleText, subtitleText, textColor,
|
|
6339
|
+
function WavelengthTitleBar2({ titleText, subtitleText, textColor, shadowColor }) {
|
|
6342
6340
|
const ref = _react.useRef.call(void 0, null);
|
|
6343
6341
|
_react.useEffect.call(void 0, () => {
|
|
6344
6342
|
if (ref.current) {
|
|
6345
6343
|
ref.current.setAttribute("title-text", titleText || "Default Title");
|
|
6346
6344
|
ref.current.setAttribute("subtitle-text", subtitleText || "Default Subtitle");
|
|
6347
6345
|
ref.current.setAttribute("text-color", textColor || "#34649b");
|
|
6348
|
-
ref.current.setAttribute("
|
|
6346
|
+
ref.current.setAttribute("shadow-color", shadowColor || "");
|
|
6349
6347
|
}
|
|
6350
|
-
}, [titleText, subtitleText, textColor,
|
|
6348
|
+
}, [titleText, subtitleText, textColor, shadowColor]);
|
|
6351
6349
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-title-bar", { ref });
|
|
6352
6350
|
}
|
|
6353
6351
|
|
|
@@ -6504,8 +6502,8 @@ function WavelengthConfirmationModal(props) {
|
|
|
6504
6502
|
overflow: "scroll"
|
|
6505
6503
|
},
|
|
6506
6504
|
children: [
|
|
6507
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { margin: "0px", fontSize: "28px", fontWeight: 500, padding: "0px", marginBottom: "16px", fontFamily: props.fontFamily }, children: _optionalChain([props, 'access',
|
|
6508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { margin: "0px", fontSize: "16px", lineHeight: "19.2px", fontFamily: props.fontFamily, fontWeight: 400, height: "60px" }, children: _optionalChain([props, 'access',
|
|
6505
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { margin: "0px", fontSize: "28px", fontWeight: 500, padding: "0px", marginBottom: "16px", fontFamily: props.fontFamily }, children: _optionalChain([props, 'access', _25 => _25.textObj, 'optionalAccess', _26 => _26.title]) }),
|
|
6506
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: { margin: "0px", fontSize: "16px", lineHeight: "19.2px", fontFamily: props.fontFamily, fontWeight: 400, height: "60px" }, children: _optionalChain([props, 'access', _27 => _27.textObj, 'optionalAccess', _28 => _28.dialog]) }),
|
|
6509
6507
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
|
|
6510
6508
|
props.cancelButton,
|
|
6511
6509
|
props.submitButton
|
|
@@ -6526,11 +6524,11 @@ function WavelengthContentModal(props) {
|
|
|
6526
6524
|
};
|
|
6527
6525
|
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", children: [
|
|
6528
6526
|
/* @__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: [
|
|
6529
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access',
|
|
6527
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _29 => _29.textObj, 'optionalAccess', _30 => _30.title]) }),
|
|
6530
6528
|
/* @__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, {}) }) })
|
|
6531
6529
|
] }) }),
|
|
6532
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access',
|
|
6533
|
-
/* @__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',
|
|
6530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _31 => _31.textObj, 'optionalAccess', _32 => _32.dialog]) }) }),
|
|
6531
|
+
/* @__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', _33 => _33.textObj, 'optionalAccess', _34 => _34.purpose]) }) })
|
|
6534
6532
|
] });
|
|
6535
6533
|
}
|
|
6536
6534
|
|
|
@@ -6744,7 +6742,7 @@ function WavelengthDropdown({
|
|
|
6744
6742
|
borderBottomRightRadius: "8px",
|
|
6745
6743
|
borderTopRightRadius: "0px",
|
|
6746
6744
|
borderTopLeftRadius: "0px",
|
|
6747
|
-
boxShadow: _optionalChain([menuSx, 'optionalAccess',
|
|
6745
|
+
boxShadow: _optionalChain([menuSx, 'optionalAccess', _35 => _35.boxShadow]),
|
|
6748
6746
|
width: myMenusx.width,
|
|
6749
6747
|
backgroundColor: `${myMenusx.backgroundColor}`
|
|
6750
6748
|
},
|
|
@@ -7494,7 +7492,7 @@ var WavelengthInput2 = _react.forwardRef.call(void 0,
|
|
|
7494
7492
|
const internalRef = _react.useRef.call(void 0, null);
|
|
7495
7493
|
_react.useImperativeHandle.call(void 0, ref, () => ({
|
|
7496
7494
|
...internalRef.current,
|
|
7497
|
-
validate: () => _optionalChain([internalRef, 'access',
|
|
7495
|
+
validate: () => _optionalChain([internalRef, 'access', _36 => _36.current, 'optionalAccess', _37 => _37.validate, 'optionalCall', _38 => _38(true)])
|
|
7498
7496
|
}));
|
|
7499
7497
|
_react.useEffect.call(void 0, () => {
|
|
7500
7498
|
const el = internalRef.current;
|
|
@@ -7570,7 +7568,7 @@ var WavelengthInput2 = _react.forwardRef.call(void 0,
|
|
|
7570
7568
|
const el = internalRef.current;
|
|
7571
7569
|
if (!el || !onChange) return;
|
|
7572
7570
|
const handler = (e) => {
|
|
7573
|
-
const input = _optionalChain([el, 'access',
|
|
7571
|
+
const input = _optionalChain([el, 'access', _39 => _39.shadowRoot, 'optionalAccess', _40 => _40.querySelector, 'call', _41 => _41("input")]);
|
|
7574
7572
|
if (input) {
|
|
7575
7573
|
const synthetic = {
|
|
7576
7574
|
...e,
|
|
@@ -7770,7 +7768,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
|
|
|
7770
7768
|
const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
|
|
7771
7769
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
7772
7770
|
const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
|
|
7773
|
-
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access',
|
|
7771
|
+
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _42 => _42[0], 'optionalAccess', _43 => _43.key]) || "");
|
|
7774
7772
|
const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
|
|
7775
7773
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7776
7774
|
const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
|
|
@@ -7924,7 +7922,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
|
|
|
7924
7922
|
] }, index)
|
|
7925
7923
|
] }, `headCell-${index}`);
|
|
7926
7924
|
});
|
|
7927
|
-
const rows = !_optionalChain([currentPageData, 'optionalAccess',
|
|
7925
|
+
const rows = !_optionalChain([currentPageData, 'optionalAccess', _44 => _44.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', _45 => _45.map, 'call', _46 => _46((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
|
|
7928
7926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7929
7927
|
StyledInput,
|
|
7930
7928
|
{
|
|
@@ -8169,7 +8167,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
8169
8167
|
}
|
|
8170
8168
|
if (sortSubOrder) {
|
|
8171
8169
|
result.map(
|
|
8172
|
-
(item) => _optionalChain([item, 'access',
|
|
8170
|
+
(item) => _optionalChain([item, 'access', _47 => _47.Details, 'optionalAccess', _48 => _48.fileObjects, 'access', _49 => _49.sort, 'call', _50 => _50((c, d) => {
|
|
8173
8171
|
const valueC = c[sortSubKey];
|
|
8174
8172
|
const valueD = d[sortSubKey];
|
|
8175
8173
|
if (typeof valueC === "string" && typeof valueD === "string") {
|
|
@@ -8230,24 +8228,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
8230
8228
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
8231
8229
|
});
|
|
8232
8230
|
const subDataRows = (itemId) => {
|
|
8233
|
-
return processedRowData.filter((item) => _optionalChain([item, 'access',
|
|
8231
|
+
return processedRowData.filter((item) => _optionalChain([item, 'access', _51 => _51.Details, 'optionalAccess', _52 => _52.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _53 => _53.Details, 'optionalAccess', _54 => _54.fileObjects, 'access', _55 => _55.map, 'call', _56 => _56((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
|
|
8234
8232
|
/* @__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,
|
|
8235
8233
|
"path",
|
|
8236
8234
|
{
|
|
8237
8235
|
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",
|
|
8238
8236
|
fill: "#1C1B1F"
|
|
8239
8237
|
}
|
|
8240
|
-
) }) }) }, `td-${_optionalChain([item, 'access',
|
|
8238
|
+
) }) }) }, `td-${_optionalChain([item, 'access', _57 => _57.Details, 'optionalAccess', _58 => _58.relationId])}-${fileItem.id}`),
|
|
8241
8239
|
SubDataColumns.map((column) => {
|
|
8242
8240
|
const columnKey = trimBeforePeriod2(column.key);
|
|
8243
8241
|
const value = fileItem[columnKey];
|
|
8244
8242
|
if (value !== void 0) {
|
|
8245
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access',
|
|
8243
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _59 => _59.Details, 'optionalAccess', _60 => _60.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _61 => _61.Details, 'optionalAccess', _62 => _62.relationId])}-${fileItem.id}-${index}-${column.title}`);
|
|
8246
8244
|
}
|
|
8247
8245
|
})
|
|
8248
|
-
] }, `${item}-${_optionalChain([item, 'access',
|
|
8246
|
+
] }, `${item}-${_optionalChain([item, 'access', _63 => _63.Details, 'optionalAccess', _64 => _64.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _65 => _65.Details, 'optionalAccess', _66 => _66.relationId])}`));
|
|
8249
8247
|
};
|
|
8250
|
-
const dataRows = _optionalChain([processedRowData, 'optionalAccess',
|
|
8248
|
+
const dataRows = _optionalChain([processedRowData, 'optionalAccess', _67 => _67.map, 'call', _68 => _68((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
|
|
8251
8249
|
/* @__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}`)) }),
|
|
8252
8250
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
|
|
8253
8251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
@@ -8366,9 +8364,9 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
8366
8364
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
8367
8365
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
8368
8366
|
});
|
|
8369
|
-
const subDataRows = !_optionalChain([data, 'optionalAccess',
|
|
8367
|
+
const subDataRows = !_optionalChain([data, 'optionalAccess', _69 => _69.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) => {
|
|
8370
8368
|
const columnKey = trimBeforePeriod(column.key);
|
|
8371
|
-
const value = _optionalChain([item, 'access',
|
|
8369
|
+
const value = _optionalChain([item, 'access', _70 => _70.Details, 'optionalAccess', _71 => _71[columnKey]]);
|
|
8372
8370
|
console.log("value: ", value);
|
|
8373
8371
|
if (value !== void 0) {
|
|
8374
8372
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -8378,7 +8376,7 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
8378
8376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
8379
8377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
8380
8378
|
] });
|
|
8381
|
-
const rows = !_optionalChain([data, 'optionalAccess',
|
|
8379
|
+
const rows = !_optionalChain([data, 'optionalAccess', _72 => _72.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', _73 => _73.map, 'call', _74 => _74((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8382
8380
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
8383
8381
|
/* @__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" }) }),
|
|
8384
8382
|
HeadColumns.map((column, index2) => {
|