@wavelengthusaf/components 3.3.4 → 3.3.6
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 +10 -0
- package/dist/cjs/index.cjs +76 -49
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +4 -1
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +53 -26
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,16 @@ npm install @wavelengthusaf/components
|
|
|
14
14
|
|
|
15
15
|
## Release Notes
|
|
16
16
|
|
|
17
|
+
### 3.3.6
|
|
18
|
+
|
|
19
|
+
- 8/11/2025
|
|
20
|
+
- Updated `WLAutoComplete` to have the outline styling refactored, the component also features a `id` and `name` prop for form handling. Fixed dropdown visibility issues.
|
|
21
|
+
|
|
22
|
+
### 3.3.5
|
|
23
|
+
|
|
24
|
+
- 8/08/2025
|
|
25
|
+
- Fixed two bugs for `WavelengthButton`. One was causing the button to remain clickable when disabled, and the other was causing it to double-click.
|
|
26
|
+
|
|
17
27
|
### 3.3.4
|
|
18
28
|
|
|
19
29
|
- 8/07/2025
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1421,10 +1421,12 @@ var WavelengthButton = class extends HTMLElement {
|
|
|
1421
1421
|
shadow.appendChild(buttonTemplate.content.cloneNode(true));
|
|
1422
1422
|
this.button = shadow.querySelector("button");
|
|
1423
1423
|
this.button.addEventListener("click", (event) => {
|
|
1424
|
-
this.
|
|
1425
|
-
|
|
1426
|
-
|
|
1424
|
+
if (this.button.disabled || this.hasAttribute("disabled")) {
|
|
1425
|
+
event.preventDefault();
|
|
1426
|
+
event.stopImmediatePropagation();
|
|
1427
|
+
return;
|
|
1427
1428
|
}
|
|
1429
|
+
this.handleRipple(event);
|
|
1428
1430
|
});
|
|
1429
1431
|
}
|
|
1430
1432
|
static get observedAttributes() {
|
|
@@ -2412,16 +2414,22 @@ var WavelengthButton2 = ({
|
|
|
2412
2414
|
...rest
|
|
2413
2415
|
}) => {
|
|
2414
2416
|
const ref = _react.useRef.call(void 0, null);
|
|
2417
|
+
const latestOnClick = _react.useRef.call(void 0, );
|
|
2418
|
+
_react.useEffect.call(void 0, () => {
|
|
2419
|
+
latestOnClick.current = onClick;
|
|
2420
|
+
}, [onClick]);
|
|
2415
2421
|
_react.useEffect.call(void 0, () => {
|
|
2416
2422
|
const el = ref.current;
|
|
2417
2423
|
if (!el) return;
|
|
2418
2424
|
const setAttr = (name, value) => {
|
|
2419
|
-
if (value
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
+
if (value === void 0 || value === null || value === false) {
|
|
2426
|
+
el.removeAttribute(name);
|
|
2427
|
+
return;
|
|
2428
|
+
}
|
|
2429
|
+
if (typeof value === "boolean") {
|
|
2430
|
+
el.setAttribute(name, "");
|
|
2431
|
+
} else {
|
|
2432
|
+
el.setAttribute(name, value);
|
|
2425
2433
|
}
|
|
2426
2434
|
};
|
|
2427
2435
|
setAttr("variant", variant);
|
|
@@ -2439,12 +2447,22 @@ var WavelengthButton2 = ({
|
|
|
2439
2447
|
setAttr("box-shadow", boxShadow);
|
|
2440
2448
|
if (disabled) el.setAttribute("disabled", "");
|
|
2441
2449
|
else el.removeAttribute("disabled");
|
|
2450
|
+
}, [variant, size, height2, width2, margin2, padding2, colorOne, colorTwo, fontSize, borderRadius2, disabled, href, target, boxShadow]);
|
|
2451
|
+
_react.useEffect.call(void 0, () => {
|
|
2452
|
+
const el = ref.current;
|
|
2453
|
+
if (!el) return;
|
|
2442
2454
|
const handleClick = (e) => {
|
|
2443
|
-
|
|
2455
|
+
if (el.hasAttribute("disabled")) return;
|
|
2456
|
+
const fn = latestOnClick.current;
|
|
2457
|
+
if (fn) {
|
|
2458
|
+
fn(e);
|
|
2459
|
+
}
|
|
2444
2460
|
};
|
|
2445
2461
|
el.addEventListener("click", handleClick);
|
|
2446
|
-
return () =>
|
|
2447
|
-
|
|
2462
|
+
return () => {
|
|
2463
|
+
el.removeEventListener("click", handleClick);
|
|
2464
|
+
};
|
|
2465
|
+
}, []);
|
|
2448
2466
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-button", { ref, className, style: style3, ...rest, children });
|
|
2449
2467
|
};
|
|
2450
2468
|
|
|
@@ -5688,7 +5706,7 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
5688
5706
|
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 } }),
|
|
5689
5707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Typography2.default, { variant: "h6", sx: { fontSize: 16, color: txtColor ? txtColor : palette2.secondary }, children: section.title })
|
|
5690
5708
|
] }),
|
|
5691
|
-
_optionalChain([section, 'access',
|
|
5709
|
+
_optionalChain([section, 'access', _25 => _25.subsections, 'optionalAccess', _26 => _26.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: [
|
|
5692
5710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5693
5711
|
_Typography2.default,
|
|
5694
5712
|
{
|
|
@@ -5699,7 +5717,7 @@ function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor
|
|
|
5699
5717
|
paddingLeft: 0.75,
|
|
5700
5718
|
color: labelColor ? labelColor : palette2.secondary
|
|
5701
5719
|
},
|
|
5702
|
-
children: _optionalChain([subsection, 'access',
|
|
5720
|
+
children: _optionalChain([subsection, 'access', _27 => _27.title, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()])
|
|
5703
5721
|
}
|
|
5704
5722
|
),
|
|
5705
5723
|
subsection.items && subsection.items.map((item, itemIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5929,7 +5947,7 @@ function WavelengthCommentDisplay(props) {
|
|
|
5929
5947
|
{
|
|
5930
5948
|
onClick: (e) => {
|
|
5931
5949
|
setSelected(!selected);
|
|
5932
|
-
_optionalChain([props, 'access',
|
|
5950
|
+
_optionalChain([props, 'access', _30 => _30.onClick, 'optionalCall', _31 => _31(e)]);
|
|
5933
5951
|
},
|
|
5934
5952
|
style: { padding: "0px" },
|
|
5935
5953
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircleOutline2.default, { fontSize: "small" })
|
|
@@ -5940,7 +5958,7 @@ function WavelengthCommentDisplay(props) {
|
|
|
5940
5958
|
{
|
|
5941
5959
|
onClick: (e) => {
|
|
5942
5960
|
setSelected(!selected);
|
|
5943
|
-
_optionalChain([props, 'access',
|
|
5961
|
+
_optionalChain([props, 'access', _32 => _32.onClick, 'optionalCall', _33 => _33(e)]);
|
|
5944
5962
|
},
|
|
5945
5963
|
style: { padding: "0px" },
|
|
5946
5964
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CheckCircle2.default, { fontSize: "small", sx: { color: props.iconSelectedColor || "rgba(209, 106, 47, 1)" } })
|
|
@@ -6483,8 +6501,8 @@ function WavelengthConfirmationModal(props) {
|
|
|
6483
6501
|
overflow: "scroll"
|
|
6484
6502
|
},
|
|
6485
6503
|
children: [
|
|
6486
|
-
/* @__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',
|
|
6487
|
-
/* @__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',
|
|
6504
|
+
/* @__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', _34 => _34.textObj, 'optionalAccess', _35 => _35.title]) }),
|
|
6505
|
+
/* @__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', _36 => _36.textObj, 'optionalAccess', _37 => _37.dialog]) }),
|
|
6488
6506
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", flexDirection: "row", justifyContent: "flex-end", marginTop: "40px", gap: "8px" }, children: [
|
|
6489
6507
|
props.cancelButton,
|
|
6490
6508
|
props.submitButton
|
|
@@ -6505,11 +6523,11 @@ function WavelengthContentModal(props) {
|
|
|
6505
6523
|
};
|
|
6506
6524
|
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: [
|
|
6507
6525
|
/* @__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: [
|
|
6508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access',
|
|
6526
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _38 => _38.textObj, 'optionalAccess', _39 => _39.title]) }),
|
|
6509
6527
|
/* @__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, {}) }) })
|
|
6510
6528
|
] }) }),
|
|
6511
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access',
|
|
6512
|
-
/* @__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',
|
|
6529
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _40 => _40.textObj, 'optionalAccess', _41 => _41.dialog]) }) }),
|
|
6530
|
+
/* @__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', _42 => _42.textObj, 'optionalAccess', _43 => _43.purpose]) }) })
|
|
6513
6531
|
] });
|
|
6514
6532
|
}
|
|
6515
6533
|
|
|
@@ -6723,7 +6741,7 @@ function WavelengthDropdown({
|
|
|
6723
6741
|
borderBottomRightRadius: "8px",
|
|
6724
6742
|
borderTopRightRadius: "0px",
|
|
6725
6743
|
borderTopLeftRadius: "0px",
|
|
6726
|
-
boxShadow: _optionalChain([menuSx, 'optionalAccess',
|
|
6744
|
+
boxShadow: _optionalChain([menuSx, 'optionalAccess', _44 => _44.boxShadow]),
|
|
6727
6745
|
width: myMenusx.width,
|
|
6728
6746
|
backgroundColor: `${myMenusx.backgroundColor}`
|
|
6729
6747
|
},
|
|
@@ -7473,7 +7491,7 @@ var WavelengthInput2 = _react.forwardRef.call(void 0,
|
|
|
7473
7491
|
const internalRef = _react.useRef.call(void 0, null);
|
|
7474
7492
|
_react.useImperativeHandle.call(void 0, ref, () => ({
|
|
7475
7493
|
...internalRef.current,
|
|
7476
|
-
validate: () => _optionalChain([internalRef, 'access',
|
|
7494
|
+
validate: () => _optionalChain([internalRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.validate, 'optionalCall', _47 => _47(true)])
|
|
7477
7495
|
}));
|
|
7478
7496
|
_react.useEffect.call(void 0, () => {
|
|
7479
7497
|
const el = internalRef.current;
|
|
@@ -7549,7 +7567,7 @@ var WavelengthInput2 = _react.forwardRef.call(void 0,
|
|
|
7549
7567
|
const el = internalRef.current;
|
|
7550
7568
|
if (!el || !onChange) return;
|
|
7551
7569
|
const handler = (e) => {
|
|
7552
|
-
const input = _optionalChain([el, 'access',
|
|
7570
|
+
const input = _optionalChain([el, 'access', _48 => _48.shadowRoot, 'optionalAccess', _49 => _49.querySelector, 'call', _50 => _50("input")]);
|
|
7553
7571
|
if (input) {
|
|
7554
7572
|
const synthetic = {
|
|
7555
7573
|
...e,
|
|
@@ -7749,7 +7767,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
|
|
|
7749
7767
|
const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
|
|
7750
7768
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
7751
7769
|
const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
|
|
7752
|
-
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access',
|
|
7770
|
+
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _51 => _51[0], 'optionalAccess', _52 => _52.key]) || "");
|
|
7753
7771
|
const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
|
|
7754
7772
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7755
7773
|
const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
|
|
@@ -7903,7 +7921,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages }) => {
|
|
|
7903
7921
|
] }, index)
|
|
7904
7922
|
] }, `headCell-${index}`);
|
|
7905
7923
|
});
|
|
7906
|
-
const rows = !_optionalChain([currentPageData, 'optionalAccess',
|
|
7924
|
+
const rows = !_optionalChain([currentPageData, 'optionalAccess', _53 => _53.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', _54 => _54.map, 'call', _55 => _55((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
|
|
7907
7925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7908
7926
|
StyledInput,
|
|
7909
7927
|
{
|
|
@@ -8148,7 +8166,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
8148
8166
|
}
|
|
8149
8167
|
if (sortSubOrder) {
|
|
8150
8168
|
result.map(
|
|
8151
|
-
(item) => _optionalChain([item, 'access',
|
|
8169
|
+
(item) => _optionalChain([item, 'access', _56 => _56.Details, 'optionalAccess', _57 => _57.fileObjects, 'access', _58 => _58.sort, 'call', _59 => _59((c, d) => {
|
|
8152
8170
|
const valueC = c[sortSubKey];
|
|
8153
8171
|
const valueD = d[sortSubKey];
|
|
8154
8172
|
if (typeof valueC === "string" && typeof valueD === "string") {
|
|
@@ -8209,24 +8227,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
8209
8227
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
8210
8228
|
});
|
|
8211
8229
|
const subDataRows = (itemId) => {
|
|
8212
|
-
return processedRowData.filter((item) => _optionalChain([item, 'access',
|
|
8230
|
+
return processedRowData.filter((item) => _optionalChain([item, 'access', _60 => _60.Details, 'optionalAccess', _61 => _61.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _62 => _62.Details, 'optionalAccess', _63 => _63.fileObjects, 'access', _64 => _64.map, 'call', _65 => _65((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
|
|
8213
8231
|
/* @__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,
|
|
8214
8232
|
"path",
|
|
8215
8233
|
{
|
|
8216
8234
|
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",
|
|
8217
8235
|
fill: "#1C1B1F"
|
|
8218
8236
|
}
|
|
8219
|
-
) }) }) }, `td-${_optionalChain([item, 'access',
|
|
8237
|
+
) }) }) }, `td-${_optionalChain([item, 'access', _66 => _66.Details, 'optionalAccess', _67 => _67.relationId])}-${fileItem.id}`),
|
|
8220
8238
|
SubDataColumns.map((column) => {
|
|
8221
8239
|
const columnKey = trimBeforePeriod2(column.key);
|
|
8222
8240
|
const value = fileItem[columnKey];
|
|
8223
8241
|
if (value !== void 0) {
|
|
8224
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access',
|
|
8242
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _68 => _68.Details, 'optionalAccess', _69 => _69.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _70 => _70.Details, 'optionalAccess', _71 => _71.relationId])}-${fileItem.id}-${index}-${column.title}`);
|
|
8225
8243
|
}
|
|
8226
8244
|
})
|
|
8227
|
-
] }, `${item}-${_optionalChain([item, 'access',
|
|
8245
|
+
] }, `${item}-${_optionalChain([item, 'access', _72 => _72.Details, 'optionalAccess', _73 => _73.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _74 => _74.Details, 'optionalAccess', _75 => _75.relationId])}`));
|
|
8228
8246
|
};
|
|
8229
|
-
const dataRows = _optionalChain([processedRowData, 'optionalAccess',
|
|
8247
|
+
const dataRows = _optionalChain([processedRowData, 'optionalAccess', _76 => _76.map, 'call', _77 => _77((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
|
|
8230
8248
|
/* @__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}`)) }),
|
|
8231
8249
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
|
|
8232
8250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
@@ -8345,9 +8363,9 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
8345
8363
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
8346
8364
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
8347
8365
|
});
|
|
8348
|
-
const subDataRows = !_optionalChain([data, 'optionalAccess',
|
|
8366
|
+
const subDataRows = !_optionalChain([data, 'optionalAccess', _78 => _78.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) => {
|
|
8349
8367
|
const columnKey = trimBeforePeriod(column.key);
|
|
8350
|
-
const value = _optionalChain([item, 'access',
|
|
8368
|
+
const value = _optionalChain([item, 'access', _79 => _79.Details, 'optionalAccess', _80 => _80[columnKey]]);
|
|
8351
8369
|
console.log("value: ", value);
|
|
8352
8370
|
if (value !== void 0) {
|
|
8353
8371
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -8357,7 +8375,7 @@ var NestedDataTable = ({ data, columns }) => {
|
|
|
8357
8375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
8358
8376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
8359
8377
|
] });
|
|
8360
|
-
const rows = !_optionalChain([data, 'optionalAccess',
|
|
8378
|
+
const rows = !_optionalChain([data, 'optionalAccess', _81 => _81.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', _82 => _82.map, 'call', _83 => _83((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8361
8379
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
8362
8380
|
/* @__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" }) }),
|
|
8363
8381
|
HeadColumns.map((column, index2) => {
|
|
@@ -8384,9 +8402,6 @@ var OuterContainer = _styledcomponents2.default.div`
|
|
|
8384
8402
|
align-items: center;
|
|
8385
8403
|
justify-content: center;
|
|
8386
8404
|
border-radius: 5px;
|
|
8387
|
-
background-color: ${(props) => props.$primary || "#FFFFFF"};
|
|
8388
|
-
height: calc(${(props) => props.$inputheight || "51px"} * 1.45);
|
|
8389
|
-
width: calc(${(props) => props.$inputwidth || "320px"} * 1.07);
|
|
8390
8405
|
`;
|
|
8391
8406
|
var AutoContainer = _styledcomponents2.default.div`
|
|
8392
8407
|
position: absolute;
|
|
@@ -8402,7 +8417,6 @@ var Label = _styledcomponents2.default.label`
|
|
|
8402
8417
|
top: 50%;
|
|
8403
8418
|
left: 10px;
|
|
8404
8419
|
transform: translateY(-50%);
|
|
8405
|
-
color: ${(props) => props.$primary || "#ccc"};
|
|
8406
8420
|
font-size: 16px;
|
|
8407
8421
|
pointer-events: none;
|
|
8408
8422
|
transition: 0.3s ease all;
|
|
@@ -8435,7 +8449,8 @@ var Input = _styledcomponents2.default.input`
|
|
|
8435
8449
|
&:focus + ${Label}, &:not(:placeholder-shown) + ${Label} {
|
|
8436
8450
|
top: 0;
|
|
8437
8451
|
left: 10px;
|
|
8438
|
-
|
|
8452
|
+
|
|
8453
|
+
padding: 0 5px;
|
|
8439
8454
|
color: ${(props) => {
|
|
8440
8455
|
const { $focusedLabelColor, $dropDownVisible, $suggestBoolean } = props;
|
|
8441
8456
|
if (!$focusedLabelColor) return "#4a90e2";
|
|
@@ -8443,7 +8458,12 @@ var Input = _styledcomponents2.default.input`
|
|
|
8443
8458
|
if (!$suggestBoolean) return "#FF0000";
|
|
8444
8459
|
return $focusedLabelColor;
|
|
8445
8460
|
}};
|
|
8446
|
-
|
|
8461
|
+
transform: translate(0%, -50%) scale(0.8);
|
|
8462
|
+
background: linear-gradient(to bottom, transparent 50%, white 0%);
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8465
|
+
&:not(:focus) + ${Label} {
|
|
8466
|
+
color: ${(props) => props.$defaultLabelColor || "#ccc"};
|
|
8447
8467
|
}
|
|
8448
8468
|
`;
|
|
8449
8469
|
var DropDownList = _styledcomponents2.default.ul`
|
|
@@ -8460,8 +8480,9 @@ var DropDownList = _styledcomponents2.default.ul`
|
|
|
8460
8480
|
max-height: 390px; //neccesary for limiting scroll options, limit to 10 per view
|
|
8461
8481
|
`;
|
|
8462
8482
|
var ActiveListItem = _styledcomponents2.default.li`
|
|
8483
|
+
position: relative;
|
|
8484
|
+
z-index: 9999;
|
|
8463
8485
|
padding: 10px;
|
|
8464
|
-
cursor: pointer;
|
|
8465
8486
|
border-radius: 8px;
|
|
8466
8487
|
background-color: ${(props) => props.$highlighted ? "#eee" : "white"};
|
|
8467
8488
|
cursor: pointer;
|
|
@@ -8475,6 +8496,8 @@ var ActiveListItem = _styledcomponents2.default.li`
|
|
|
8475
8496
|
}
|
|
8476
8497
|
`;
|
|
8477
8498
|
var NoHoverListItem = _styledcomponents2.default.li`
|
|
8499
|
+
position: relative;
|
|
8500
|
+
z-index: 9999;
|
|
8478
8501
|
padding: 10px;
|
|
8479
8502
|
cursor: pointer;
|
|
8480
8503
|
background-color: white;
|
|
@@ -8500,7 +8523,8 @@ var WLAutoComplete = ({
|
|
|
8500
8523
|
autoBackGroundColor,
|
|
8501
8524
|
labelColor,
|
|
8502
8525
|
FocusedlabelColor,
|
|
8503
|
-
id
|
|
8526
|
+
id,
|
|
8527
|
+
name
|
|
8504
8528
|
}) => {
|
|
8505
8529
|
const inputRef = _react.useRef.call(void 0, null);
|
|
8506
8530
|
const listRef = _react.useRef.call(void 0, null);
|
|
@@ -8587,12 +8611,13 @@ var WLAutoComplete = ({
|
|
|
8587
8611
|
break;
|
|
8588
8612
|
}
|
|
8589
8613
|
};
|
|
8590
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8591
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputWrapper, { id: `${idName}-inputwrapper`, $
|
|
8614
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OuterContainer, { id: `${idName}-outercontain`, $primary: autoBackGroundColor, $inputheight: height2, $inputwidth: width2, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AutoContainer, { id: `${idName}-autocontain`, $primary: autoBackGroundColor, children: [
|
|
8615
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputWrapper, { id: `${idName}-inputwrapper`, $inputheight: height2, $inputwidth: width2, children: [
|
|
8592
8616
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8593
8617
|
Input,
|
|
8594
8618
|
{
|
|
8595
|
-
id:
|
|
8619
|
+
id: idName,
|
|
8620
|
+
name,
|
|
8596
8621
|
"data-testid": "InputSearchBar",
|
|
8597
8622
|
type: "text",
|
|
8598
8623
|
$primary: autoBackGroundColor,
|
|
@@ -8601,16 +8626,18 @@ var WLAutoComplete = ({
|
|
|
8601
8626
|
$suggestBoolean: suggestHasItems,
|
|
8602
8627
|
$dropDownVisible: isDropdownVisible,
|
|
8603
8628
|
$focusedLabelColor: FocusedlabelColor,
|
|
8629
|
+
$defaultLabelColor: labelColor,
|
|
8604
8630
|
value: inputValue,
|
|
8605
8631
|
ref: inputRef,
|
|
8606
8632
|
onClick: handleInputClick,
|
|
8607
8633
|
onInput: handleChange,
|
|
8608
8634
|
onKeyDown: handleKeyDown,
|
|
8609
8635
|
onBlur: handleBlur,
|
|
8610
|
-
placeholder: ""
|
|
8636
|
+
placeholder: "",
|
|
8637
|
+
autoComplete: "off"
|
|
8611
8638
|
}
|
|
8612
8639
|
),
|
|
8613
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { id: `${idName}-label`,
|
|
8640
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
8614
8641
|
] }),
|
|
8615
8642
|
isDropdownVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropDownList, { id: `${idName}-droplist`, ref: listRef, $inputwidth: width2, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
|
|
8616
8643
|
//suggestions length controls showing the suggestions
|
|
@@ -8628,7 +8655,7 @@ var WLAutoComplete = ({
|
|
|
8628
8655
|
`ActivelistItem-${item}-${index}`
|
|
8629
8656
|
))
|
|
8630
8657
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
|
|
8631
|
-
] }) }) })
|
|
8658
|
+
] }) }) });
|
|
8632
8659
|
};
|
|
8633
8660
|
|
|
8634
8661
|
// src/components/inputs/WavelengthInputDatePicketer.tsx
|