@wavelengthusaf/components 3.3.9 → 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 +9 -0
- package/dist/cjs/index.cjs +54 -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 +31 -29
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,15 @@ npm install @wavelengthusaf/components
|
|
|
14
14
|
|
|
15
15
|
## Release Notes
|
|
16
16
|
|
|
17
|
+
### 3.3.11
|
|
18
|
+
- 8/26/2025
|
|
19
|
+
- Updated `WavelengthTitleBar` to control shadow color with prop `shadowColor`.
|
|
20
|
+
|
|
21
|
+
### 3.3.10
|
|
22
|
+
|
|
23
|
+
- 8/20/2025
|
|
24
|
+
- Fix a margin issue with `WavelengthBanner`.
|
|
25
|
+
|
|
17
26
|
### 3.3.9
|
|
18
27
|
|
|
19
28
|
- 8/18/2025
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1246,6 +1246,10 @@ var WavelengthBanner = class extends HTMLElement {
|
|
|
1246
1246
|
font-family: sans-serif;
|
|
1247
1247
|
font-size: 1rem;
|
|
1248
1248
|
}
|
|
1249
|
+
|
|
1250
|
+
p {
|
|
1251
|
+
margin: 0;
|
|
1252
|
+
}
|
|
1249
1253
|
`;
|
|
1250
1254
|
this.container = document.createElement("div");
|
|
1251
1255
|
this.container.classList.add("banner");
|
|
@@ -2300,6 +2304,7 @@ var WavelengthTitleBar = class extends HTMLElement {
|
|
|
2300
2304
|
subtitle.classList.add("subtitle");
|
|
2301
2305
|
subtitle.textContent = this.getAttribute("subtitle-text") || "Default Subtitle";
|
|
2302
2306
|
const textColor = this.getAttribute("text-color") || "#34649b";
|
|
2307
|
+
const shadowColor = this.getAttribute("shadow-color");
|
|
2303
2308
|
const style3 = document.createElement("style");
|
|
2304
2309
|
style3.textContent = `
|
|
2305
2310
|
:host {
|
|
@@ -2312,7 +2317,7 @@ var WavelengthTitleBar = class extends HTMLElement {
|
|
|
2312
2317
|
.title {
|
|
2313
2318
|
font-family: "Goldman", sans-serif;
|
|
2314
2319
|
font-size: 3.75rem;
|
|
2315
|
-
text-shadow: 0.313rem 0.313rem 0.375rem
|
|
2320
|
+
${shadowColor ? `text-shadow: 0.313rem 0.313rem 0.375rem ${shadowColor};` : ""}
|
|
2316
2321
|
-webkit-text-stroke: 1px black;
|
|
2317
2322
|
letter-spacing: 0.07em;
|
|
2318
2323
|
user-select: none;
|
|
@@ -2342,35 +2347,32 @@ var WavelengthTitleBar = class extends HTMLElement {
|
|
|
2342
2347
|
}
|
|
2343
2348
|
}
|
|
2344
2349
|
static get observedAttributes() {
|
|
2345
|
-
return ["title-text", "subtitle-text", "text-color", "
|
|
2350
|
+
return ["title-text", "subtitle-text", "text-color", "shadow-color"];
|
|
2346
2351
|
}
|
|
2347
2352
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
2348
|
-
if (oldValue
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
if (subtitleElement)
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
titleElement.style.color = newValue;
|
|
2364
|
-
}
|
|
2365
|
-
if (subtitleElement) {
|
|
2366
|
-
subtitleElement.style.color = newValue;
|
|
2367
|
-
}
|
|
2368
|
-
} else if (name === "has-shadow") {
|
|
2369
|
-
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":
|
|
2370
2368
|
if (titleElement) {
|
|
2371
|
-
|
|
2369
|
+
if (newValue) {
|
|
2370
|
+
titleElement.style.textShadow = `0.313rem 0.313rem 0.375rem ${newValue}`;
|
|
2371
|
+
} else {
|
|
2372
|
+
titleElement.style.textShadow = "";
|
|
2373
|
+
}
|
|
2372
2374
|
}
|
|
2373
|
-
|
|
2375
|
+
break;
|
|
2374
2376
|
}
|
|
2375
2377
|
}
|
|
2376
2378
|
};
|
|
@@ -5705,7 +5707,7 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
5705
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 } }),
|
|
5706
5708
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "h6", sx: { fontSize: 16, color: txtColor ? txtColor : palette2.secondary }, children: section.title })
|
|
5707
5709
|
] }),
|
|
5708
|
-
_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: [
|
|
5709
5711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5710
5712
|
_Typography2.default,
|
|
5711
5713
|
{
|
|
@@ -5716,7 +5718,7 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
5716
5718
|
paddingLeft: 0.75,
|
|
5717
5719
|
color: labelColor ? labelColor : palette2.secondary
|
|
5718
5720
|
},
|
|
5719
|
-
children: _optionalChain([subsection, 'access',
|
|
5721
|
+
children: _optionalChain([subsection, 'access', _18 => _18.title, 'optionalAccess', _19 => _19.toUpperCase, 'call', _20 => _20()])
|
|
5720
5722
|
}
|
|
5721
5723
|
),
|
|
5722
5724
|
subsection.items && subsection.items.map((item, itemIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5946,7 +5948,7 @@ function WavelengthCommentDisplay(props) {
|
|
|
5946
5948
|
{
|
|
5947
5949
|
onClick: (e) => {
|
|
5948
5950
|
setSelected(!selected);
|
|
5949
|
-
_optionalChain([props, 'access',
|
|
5951
|
+
_optionalChain([props, 'access', _21 => _21.onClick, 'optionalCall', _22 => _22(e)]);
|
|
5950
5952
|
},
|
|
5951
5953
|
style: { padding: "0px" },
|
|
5952
5954
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircleOutline2.default, { fontSize: "small" })
|
|
@@ -5957,7 +5959,7 @@ function WavelengthCommentDisplay(props) {
|
|
|
5957
5959
|
{
|
|
5958
5960
|
onClick: (e) => {
|
|
5959
5961
|
setSelected(!selected);
|
|
5960
|
-
_optionalChain([props, 'access',
|
|
5962
|
+
_optionalChain([props, 'access', _23 => _23.onClick, 'optionalCall', _24 => _24(e)]);
|
|
5961
5963
|
},
|
|
5962
5964
|
style: { padding: "0px" },
|
|
5963
5965
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircle2.default, { fontSize: "small", sx: { color: props.iconSelectedColor || "rgba(209, 106, 47, 1)" } })
|
|
@@ -6334,16 +6336,16 @@ function WavelengthFooter({ text, textColor }) {
|
|
|
6334
6336
|
// src/components/headers/WavelengthTitleBar/WavelengthTitleBar.tsx
|
|
6335
6337
|
|
|
6336
6338
|
|
|
6337
|
-
function WavelengthTitleBar2({ titleText, subtitleText, textColor,
|
|
6339
|
+
function WavelengthTitleBar2({ titleText, subtitleText, textColor, shadowColor }) {
|
|
6338
6340
|
const ref = _react.useRef.call(void 0, null);
|
|
6339
6341
|
_react.useEffect.call(void 0, () => {
|
|
6340
6342
|
if (ref.current) {
|
|
6341
6343
|
ref.current.setAttribute("title-text", titleText || "Default Title");
|
|
6342
6344
|
ref.current.setAttribute("subtitle-text", subtitleText || "Default Subtitle");
|
|
6343
6345
|
ref.current.setAttribute("text-color", textColor || "#34649b");
|
|
6344
|
-
ref.current.setAttribute("
|
|
6346
|
+
ref.current.setAttribute("shadow-color", shadowColor || "");
|
|
6345
6347
|
}
|
|
6346
|
-
}, [titleText, subtitleText, textColor,
|
|
6348
|
+
}, [titleText, subtitleText, textColor, shadowColor]);
|
|
6347
6349
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-title-bar", { ref });
|
|
6348
6350
|
}
|
|
6349
6351
|
|
|
@@ -6500,8 +6502,8 @@ function WavelengthConfirmationModal(props) {
|
|
|
6500
6502
|
overflow: "scroll"
|
|
6501
6503
|
},
|
|
6502
6504
|
children: [
|
|
6503
|
-
/* @__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',
|
|
6504
|
-
/* @__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]) }),
|
|
6505
6507
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
|
|
6506
6508
|
props.cancelButton,
|
|
6507
6509
|
props.submitButton
|
|
@@ -6522,11 +6524,11 @@ function WavelengthContentModal(props) {
|
|
|
6522
6524
|
};
|
|
6523
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: [
|
|
6524
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: [
|
|
6525
|
-
/* @__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]) }),
|
|
6526
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, {}) }) })
|
|
6527
6529
|
] }) }),
|
|
6528
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access',
|
|
6529
|
-
/* @__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]) }) })
|
|
6530
6532
|
] });
|
|
6531
6533
|
}
|
|
6532
6534
|
|
|
@@ -6740,7 +6742,7 @@ function WavelengthDropdown({
|
|
|
6740
6742
|
borderBottomRightRadius: "8px",
|
|
6741
6743
|
borderTopRightRadius: "0px",
|
|
6742
6744
|
borderTopLeftRadius: "0px",
|
|
6743
|
-
boxShadow: _optionalChain([menuSx, 'optionalAccess',
|
|
6745
|
+
boxShadow: _optionalChain([menuSx, 'optionalAccess', _35 => _35.boxShadow]),
|
|
6744
6746
|
width: myMenusx.width,
|
|
6745
6747
|
backgroundColor: `${myMenusx.backgroundColor}`
|
|
6746
6748
|
},
|
|
@@ -7490,7 +7492,7 @@ var WavelengthInput2 = _react.forwardRef.call(void 0,
|
|
|
7490
7492
|
const internalRef = _react.useRef.call(void 0, null);
|
|
7491
7493
|
_react.useImperativeHandle.call(void 0, ref, () => ({
|
|
7492
7494
|
...internalRef.current,
|
|
7493
|
-
validate: () => _optionalChain([internalRef, 'access',
|
|
7495
|
+
validate: () => _optionalChain([internalRef, 'access', _36 => _36.current, 'optionalAccess', _37 => _37.validate, 'optionalCall', _38 => _38(true)])
|
|
7494
7496
|
}));
|
|
7495
7497
|
_react.useEffect.call(void 0, () => {
|
|
7496
7498
|
const el = internalRef.current;
|
|
@@ -7566,7 +7568,7 @@ var WavelengthInput2 = _react.forwardRef.call(void 0,
|
|
|
7566
7568
|
const el = internalRef.current;
|
|
7567
7569
|
if (!el || !onChange) return;
|
|
7568
7570
|
const handler = (e) => {
|
|
7569
|
-
const input = _optionalChain([el, 'access',
|
|
7571
|
+
const input = _optionalChain([el, 'access', _39 => _39.shadowRoot, 'optionalAccess', _40 => _40.querySelector, 'call', _41 => _41("input")]);
|
|
7570
7572
|
if (input) {
|
|
7571
7573
|
const synthetic = {
|
|
7572
7574
|
...e,
|
|
@@ -7766,7 +7768,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
|
|
|
7766
7768
|
const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
|
|
7767
7769
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
7768
7770
|
const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
|
|
7769
|
-
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]) || "");
|
|
7770
7772
|
const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
|
|
7771
7773
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7772
7774
|
const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
|
|
@@ -7920,7 +7922,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
|
|
|
7920
7922
|
] }, index)
|
|
7921
7923
|
] }, `headCell-${index}`);
|
|
7922
7924
|
});
|
|
7923
|
-
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) => {
|
|
7924
7926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7925
7927
|
StyledInput,
|
|
7926
7928
|
{
|
|
@@ -8165,7 +8167,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
8165
8167
|
}
|
|
8166
8168
|
if (sortSubOrder) {
|
|
8167
8169
|
result.map(
|
|
8168
|
-
(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) => {
|
|
8169
8171
|
const valueC = c[sortSubKey];
|
|
8170
8172
|
const valueD = d[sortSubKey];
|
|
8171
8173
|
if (typeof valueC === "string" && typeof valueD === "string") {
|
|
@@ -8226,24 +8228,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
8226
8228
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
8227
8229
|
});
|
|
8228
8230
|
const subDataRows = (itemId) => {
|
|
8229
|
-
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: [
|
|
8230
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,
|
|
8231
8233
|
"path",
|
|
8232
8234
|
{
|
|
8233
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",
|
|
8234
8236
|
fill: "#1C1B1F"
|
|
8235
8237
|
}
|
|
8236
|
-
) }) }) }, `td-${_optionalChain([item, 'access',
|
|
8238
|
+
) }) }) }, `td-${_optionalChain([item, 'access', _57 => _57.Details, 'optionalAccess', _58 => _58.relationId])}-${fileItem.id}`),
|
|
8237
8239
|
SubDataColumns.map((column) => {
|
|
8238
8240
|
const columnKey = trimBeforePeriod2(column.key);
|
|
8239
8241
|
const value = fileItem[columnKey];
|
|
8240
8242
|
if (value !== void 0) {
|
|
8241
|
-
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}`);
|
|
8242
8244
|
}
|
|
8243
8245
|
})
|
|
8244
|
-
] }, `${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])}`));
|
|
8245
8247
|
};
|
|
8246
|
-
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: [
|
|
8247
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}`)) }),
|
|
8248
8250
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
|
|
8249
8251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
@@ -8362,9 +8364,9 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
8362
8364
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
8363
8365
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
8364
8366
|
});
|
|
8365
|
-
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) => {
|
|
8366
8368
|
const columnKey = trimBeforePeriod(column.key);
|
|
8367
|
-
const value = _optionalChain([item, 'access',
|
|
8369
|
+
const value = _optionalChain([item, 'access', _70 => _70.Details, 'optionalAccess', _71 => _71[columnKey]]);
|
|
8368
8370
|
console.log("value: ", value);
|
|
8369
8371
|
if (value !== void 0) {
|
|
8370
8372
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -8374,7 +8376,7 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
8374
8376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
8375
8377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
8376
8378
|
] });
|
|
8377
|
-
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: [
|
|
8378
8380
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
8379
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" }) }),
|
|
8380
8382
|
HeadColumns.map((column, index2) => {
|