@wavelengthusaf/components 4.16.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +169 -184
- package/dist/cjs/index.d.cts +30 -54
- package/dist/esm/index.d.ts +30 -54
- package/dist/esm/index.js +454 -469
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -4297,75 +4297,21 @@ WavelengthNotAvailablePage.displayName = "WavelengthNotAvailablePage";
|
|
|
4297
4297
|
|
|
4298
4298
|
// src/components/PageComponents/WavelengthSideBar.tsx
|
|
4299
4299
|
|
|
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
4300
|
|
|
4307
|
-
|
|
4308
|
-
const
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
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
|
-
}
|
|
4301
|
+
var WavelengthSideBar = ({ children, customStyle, sections = "[]", onItemClick, ...rest }) => {
|
|
4302
|
+
const ref = _react.useRef.call(void 0, null);
|
|
4303
|
+
_react.useEffect.call(void 0, () => {
|
|
4304
|
+
const el = ref.current;
|
|
4305
|
+
if (!el) return;
|
|
4306
|
+
if (customStyle) el.customStyles = customStyle;
|
|
4307
|
+
el.setAttribute("sections", sections);
|
|
4308
|
+
if (onItemClick) {
|
|
4309
|
+
el.addEventListener("wavelength-sidebar-item-click", onItemClick);
|
|
4310
|
+
return () => el.removeEventListener("wavelength-sidebar-item-click", onItemClick);
|
|
4311
|
+
}
|
|
4312
|
+
}, [customStyle, sections, onItemClick]);
|
|
4313
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-sidebar", { ref, ...rest, children });
|
|
4314
|
+
};
|
|
4369
4315
|
WavelengthSideBar.displayName = "WavelengthSideBar";
|
|
4370
4316
|
|
|
4371
4317
|
// src/components/PageComponents/WavelengthNavBar.tsx
|
|
@@ -4453,7 +4399,7 @@ var WavelengthFileDropZone = ({
|
|
|
4453
4399
|
else el.removeAttribute("multiple");
|
|
4454
4400
|
const handleFilesSelected = (event) => {
|
|
4455
4401
|
const customEvent = event;
|
|
4456
|
-
_optionalChain([onFilesSelected, 'optionalCall',
|
|
4402
|
+
_optionalChain([onFilesSelected, 'optionalCall', _2 => _2(customEvent.detail.files)]);
|
|
4457
4403
|
};
|
|
4458
4404
|
el.addEventListener("files-selected", handleFilesSelected);
|
|
4459
4405
|
return () => {
|
|
@@ -4741,65 +4687,6 @@ WavelengthProgressBar.displayName = "WavelengthProgressBar";
|
|
|
4741
4687
|
// src/index.ts
|
|
4742
4688
|
|
|
4743
4689
|
|
|
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
4690
|
// src/components/PageComponents/WavelengthPermissionAlert.tsx
|
|
4804
4691
|
|
|
4805
4692
|
function WavelengthPermissionAlert({
|
|
@@ -5192,7 +5079,7 @@ var WavelengthBadge = ({
|
|
|
5192
5079
|
updateAttribute("text-box-border-radius", textBoxBorderRadius);
|
|
5193
5080
|
updateAttribute("text-box-hover-border-color", textBoxHoverBorderColor);
|
|
5194
5081
|
updateAttribute("badge-font", badgeFont);
|
|
5195
|
-
updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess',
|
|
5082
|
+
updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
|
|
5196
5083
|
updateAttribute("badge-size", badgeSize);
|
|
5197
5084
|
}, [
|
|
5198
5085
|
variant,
|
|
@@ -5222,6 +5109,62 @@ var WavelengthBadge = ({
|
|
|
5222
5109
|
};
|
|
5223
5110
|
WavelengthBadge.displayName = "WavelengthBadge";
|
|
5224
5111
|
|
|
5112
|
+
// src/components/PageComponents/WavelengthCommentDisplay.tsx
|
|
5113
|
+
|
|
5114
|
+
|
|
5115
|
+
var WavelengthCommentDisplay = ({
|
|
5116
|
+
children,
|
|
5117
|
+
customStyle,
|
|
5118
|
+
author,
|
|
5119
|
+
comment,
|
|
5120
|
+
date,
|
|
5121
|
+
width: width2,
|
|
5122
|
+
height: height2,
|
|
5123
|
+
txtColor,
|
|
5124
|
+
bgColor,
|
|
5125
|
+
border: border2,
|
|
5126
|
+
iconSelectedColor,
|
|
5127
|
+
selected,
|
|
5128
|
+
...rest
|
|
5129
|
+
}) => {
|
|
5130
|
+
const ref = _react.useRef.call(void 0, null);
|
|
5131
|
+
const syncAttribute = (attribute, value) => {
|
|
5132
|
+
const el = ref.current;
|
|
5133
|
+
if (!el) return;
|
|
5134
|
+
if (value) {
|
|
5135
|
+
el.setAttribute(attribute, value);
|
|
5136
|
+
} else {
|
|
5137
|
+
el.removeAttribute(attribute);
|
|
5138
|
+
}
|
|
5139
|
+
};
|
|
5140
|
+
const syncBooleanAttribute = (attribute, value) => {
|
|
5141
|
+
const el = ref.current;
|
|
5142
|
+
if (!el) return;
|
|
5143
|
+
if (value) {
|
|
5144
|
+
el.setAttribute(attribute, "");
|
|
5145
|
+
} else {
|
|
5146
|
+
el.removeAttribute(attribute);
|
|
5147
|
+
}
|
|
5148
|
+
};
|
|
5149
|
+
_react.useEffect.call(void 0, () => {
|
|
5150
|
+
const el = ref.current;
|
|
5151
|
+
if (!el) return;
|
|
5152
|
+
el.customStyles = customStyle;
|
|
5153
|
+
syncAttribute("author", author);
|
|
5154
|
+
syncAttribute("comment", comment);
|
|
5155
|
+
syncAttribute("date", date);
|
|
5156
|
+
syncAttribute("width", width2);
|
|
5157
|
+
syncAttribute("height", height2);
|
|
5158
|
+
syncAttribute("txt-color", txtColor);
|
|
5159
|
+
syncAttribute("bg-color", bgColor);
|
|
5160
|
+
syncAttribute("border", border2);
|
|
5161
|
+
syncAttribute("icon-selected-color", iconSelectedColor);
|
|
5162
|
+
syncBooleanAttribute("selected", selected);
|
|
5163
|
+
}, [customStyle, author, comment, date, width2, height2, txtColor, bgColor, border2, iconSelectedColor, selected]);
|
|
5164
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-comment-display", { ref, ...rest, children });
|
|
5165
|
+
};
|
|
5166
|
+
WavelengthCommentDisplay.displayName = "WavelengthCommentDisplay";
|
|
5167
|
+
|
|
5225
5168
|
// src/components/footers/WavelengthFooter/WavelengthFooter.tsx
|
|
5226
5169
|
|
|
5227
5170
|
var _Box = require('@mui/material/Box'); var _Box2 = _interopRequireDefault(_Box);
|
|
@@ -5283,7 +5226,7 @@ function useStableCallback(fn) {
|
|
|
5283
5226
|
_react.useEffect.call(void 0, () => {
|
|
5284
5227
|
fnRef.current = fn;
|
|
5285
5228
|
}, [fn]);
|
|
5286
|
-
return (...args) => _optionalChain([fnRef, 'access',
|
|
5229
|
+
return (...args) => _optionalChain([fnRef, 'access', _5 => _5.current, 'optionalCall', _6 => _6(...args)]);
|
|
5287
5230
|
}
|
|
5288
5231
|
function WavelengthFormInner(props, ref) {
|
|
5289
5232
|
const {
|
|
@@ -5323,7 +5266,7 @@ function WavelengthFormInner(props, ref) {
|
|
|
5323
5266
|
if (!el) return;
|
|
5324
5267
|
let finalSchema = schema;
|
|
5325
5268
|
if (placeholders) {
|
|
5326
|
-
const shape2 = _optionalChain([schema, 'optionalAccess',
|
|
5269
|
+
const shape2 = _optionalChain([schema, 'optionalAccess', _7 => _7.shape]);
|
|
5327
5270
|
if (shape2) {
|
|
5328
5271
|
const overrides = {};
|
|
5329
5272
|
for (const [key, ph] of Object.entries(placeholders)) {
|
|
@@ -5356,15 +5299,15 @@ function WavelengthFormInner(props, ref) {
|
|
|
5356
5299
|
if (!el) return;
|
|
5357
5300
|
const handleChange = (e) => {
|
|
5358
5301
|
const detail = e.detail;
|
|
5359
|
-
_optionalChain([onChangeStable, 'optionalCall',
|
|
5302
|
+
_optionalChain([onChangeStable, 'optionalCall', _8 => _8(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _9 => _9.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _10 => _10.issues]), () => ( [])))]);
|
|
5360
5303
|
};
|
|
5361
5304
|
const handleValid = (e) => {
|
|
5362
5305
|
const detail = e.detail;
|
|
5363
|
-
_optionalChain([onValidStable, 'optionalCall',
|
|
5306
|
+
_optionalChain([onValidStable, 'optionalCall', _11 => _11(_optionalChain([detail, 'optionalAccess', _12 => _12.value]), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _13 => _13.issues]), () => ( [])))]);
|
|
5364
5307
|
};
|
|
5365
5308
|
const handleInvalid = (e) => {
|
|
5366
5309
|
const detail = e.detail;
|
|
5367
|
-
_optionalChain([onInvalidStable, 'optionalCall',
|
|
5310
|
+
_optionalChain([onInvalidStable, 'optionalCall', _14 => _14(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _15 => _15.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _16 => _16.issues]), () => ( [])))]);
|
|
5368
5311
|
};
|
|
5369
5312
|
el.addEventListener("form-change", handleChange);
|
|
5370
5313
|
el.addEventListener("form-valid", handleValid);
|
|
@@ -5386,8 +5329,8 @@ function WavelengthFormInner(props, ref) {
|
|
|
5386
5329
|
_react.useImperativeHandle.call(void 0,
|
|
5387
5330
|
ref,
|
|
5388
5331
|
() => ({
|
|
5389
|
-
validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access',
|
|
5390
|
-
getValue: () => _optionalChain([hostRef, 'access',
|
|
5332
|
+
validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access', _17 => _17.current, 'optionalAccess', _18 => _18.validate, 'optionalCall', _19 => _19()]), () => ( false)),
|
|
5333
|
+
getValue: () => _optionalChain([hostRef, 'access', _20 => _20.current, 'optionalAccess', _21 => _21.value]),
|
|
5391
5334
|
setValue: (v) => {
|
|
5392
5335
|
if (hostRef.current) hostRef.current.value = v;
|
|
5393
5336
|
}
|
|
@@ -5583,8 +5526,8 @@ function WavelengthConfirmationModal(props) {
|
|
|
5583
5526
|
"font-family": props.fontFamily,
|
|
5584
5527
|
"text-color": props.textColor,
|
|
5585
5528
|
"background-color": props.backgroundColor,
|
|
5586
|
-
"title-text": _optionalChain([props, 'access',
|
|
5587
|
-
"dialog-text": _optionalChain([props, 'access',
|
|
5529
|
+
"title-text": _optionalChain([props, 'access', _22 => _22.textObj, 'optionalAccess', _23 => _23.title]),
|
|
5530
|
+
"dialog-text": _optionalChain([props, 'access', _24 => _24.textObj, 'optionalAccess', _25 => _25.dialog]),
|
|
5588
5531
|
children: [
|
|
5589
5532
|
props.cancelButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
|
|
5590
5533
|
props.submitButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
|
|
@@ -5605,11 +5548,11 @@ function WavelengthContentModal(props) {
|
|
|
5605
5548
|
};
|
|
5606
5549
|
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
5550
|
/* @__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',
|
|
5551
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { flexGrow: 1, children: _optionalChain([props, 'access', _26 => _26.textObj, 'optionalAccess', _27 => _27.title]) }),
|
|
5609
5552
|
/* @__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
5553
|
] }) }),
|
|
5611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access',
|
|
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',
|
|
5554
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { align: "center", children: _optionalChain([props, 'access', _28 => _28.textObj, 'optionalAccess', _29 => _29.dialog]) }) }),
|
|
5555
|
+
/* @__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', _30 => _30.textObj, 'optionalAccess', _31 => _31.purpose]) }) })
|
|
5613
5556
|
] });
|
|
5614
5557
|
}
|
|
5615
5558
|
WavelengthContentModal.displayName = "WavelengthContentModal";
|
|
@@ -5864,8 +5807,8 @@ var WavelengthDialog = ({
|
|
|
5864
5807
|
_react.useEffect.call(void 0, () => {
|
|
5865
5808
|
const el = ref.current;
|
|
5866
5809
|
if (!el) return;
|
|
5867
|
-
const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall',
|
|
5868
|
-
const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall',
|
|
5810
|
+
const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall', _32 => _32(e)]);
|
|
5811
|
+
const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall', _33 => _33(e)]);
|
|
5869
5812
|
el.addEventListener("wl-left-btn-click", handleLeft);
|
|
5870
5813
|
el.addEventListener("wl-right-btn-click", handleRight);
|
|
5871
5814
|
return () => {
|
|
@@ -5963,8 +5906,8 @@ var WavelengthPagination = ({
|
|
|
5963
5906
|
syncAttribute("active-text-color", activeTextColor || "");
|
|
5964
5907
|
syncAttribute("background-color", backgroundColor2 || "");
|
|
5965
5908
|
syncAttribute("disabled-color", disabledColor || "");
|
|
5966
|
-
syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess',
|
|
5967
|
-
syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess',
|
|
5909
|
+
syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _34 => _34.toString, 'call', _35 => _35()]) || "");
|
|
5910
|
+
syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _36 => _36.toString, 'call', _37 => _37()]) || "");
|
|
5968
5911
|
const handlePageChange = (e) => {
|
|
5969
5912
|
if (onPageChange) {
|
|
5970
5913
|
onPageChange(e.detail.page);
|
|
@@ -6500,7 +6443,7 @@ WavelengthSlider.displayName = "WavelengthSlider";
|
|
|
6500
6443
|
var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);
|
|
6501
6444
|
var _NavigateBefore = require('@mui/icons-material/NavigateBefore'); var _NavigateBefore2 = _interopRequireDefault(_NavigateBefore);
|
|
6502
6445
|
var _NavigateNext = require('@mui/icons-material/NavigateNext'); var _NavigateNext2 = _interopRequireDefault(_NavigateNext);
|
|
6503
|
-
|
|
6446
|
+
var _Typography = require('@mui/material/Typography'); var _Typography2 = _interopRequireDefault(_Typography);
|
|
6504
6447
|
|
|
6505
6448
|
var _Card = require('@mui/material/Card'); var _Card2 = _interopRequireDefault(_Card);
|
|
6506
6449
|
var _CardContent = require('@mui/material/CardContent'); var _CardContent2 = _interopRequireDefault(_CardContent);
|
|
@@ -6684,7 +6627,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6684
6627
|
const internalRef = _react.useRef.call(void 0, null);
|
|
6685
6628
|
_react.useImperativeHandle.call(void 0, ref, () => ({
|
|
6686
6629
|
...internalRef.current,
|
|
6687
|
-
validate: () => _optionalChain([internalRef, 'access',
|
|
6630
|
+
validate: () => _optionalChain([internalRef, 'access', _38 => _38.current, 'optionalAccess', _39 => _39.validate, 'optionalCall', _40 => _40(true)])
|
|
6688
6631
|
}));
|
|
6689
6632
|
_react.useEffect.call(void 0, () => {
|
|
6690
6633
|
const el = internalRef.current;
|
|
@@ -6763,7 +6706,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6763
6706
|
const el = internalRef.current;
|
|
6764
6707
|
if (!el || !onBlurCallback) return;
|
|
6765
6708
|
const handler = (e) => {
|
|
6766
|
-
const input = _optionalChain([el, 'access',
|
|
6709
|
+
const input = _optionalChain([el, 'access', _41 => _41.shadowRoot, 'optionalAccess', _42 => _42.querySelector, 'call', _43 => _43("input, textarea")]);
|
|
6767
6710
|
if (input) {
|
|
6768
6711
|
onBlurCallback();
|
|
6769
6712
|
}
|
|
@@ -6775,7 +6718,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6775
6718
|
const el = internalRef.current;
|
|
6776
6719
|
if (!el || !onChange) return;
|
|
6777
6720
|
const handler = (e) => {
|
|
6778
|
-
const input = _optionalChain([el, 'access',
|
|
6721
|
+
const input = _optionalChain([el, 'access', _44 => _44.shadowRoot, 'optionalAccess', _45 => _45.querySelector, 'call', _46 => _46("input, textarea")]);
|
|
6779
6722
|
if (input) {
|
|
6780
6723
|
const synthetic = {
|
|
6781
6724
|
...e,
|
|
@@ -6978,7 +6921,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
6978
6921
|
const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
|
|
6979
6922
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
6980
6923
|
const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
|
|
6981
|
-
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access',
|
|
6924
|
+
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _47 => _47[0], 'optionalAccess', _48 => _48.key]) || "");
|
|
6982
6925
|
const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
|
|
6983
6926
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6984
6927
|
const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
|
|
@@ -7132,7 +7075,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7132
7075
|
] }, index)
|
|
7133
7076
|
] }, `headCell-${index}`);
|
|
7134
7077
|
});
|
|
7135
|
-
const rows = !_optionalChain([currentPageData, 'optionalAccess',
|
|
7078
|
+
const rows = !_optionalChain([currentPageData, 'optionalAccess', _49 => _49.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', _50 => _50.map, 'call', _51 => _51((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
|
|
7136
7079
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7137
7080
|
StyledInput,
|
|
7138
7081
|
{
|
|
@@ -7378,7 +7321,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7378
7321
|
}
|
|
7379
7322
|
if (sortSubOrder) {
|
|
7380
7323
|
result.map(
|
|
7381
|
-
(item) => _optionalChain([item, 'access',
|
|
7324
|
+
(item) => _optionalChain([item, 'access', _52 => _52.Details, 'optionalAccess', _53 => _53.fileObjects, 'access', _54 => _54.sort, 'call', _55 => _55((c, d) => {
|
|
7382
7325
|
const valueC = c[sortSubKey];
|
|
7383
7326
|
const valueD = d[sortSubKey];
|
|
7384
7327
|
if (typeof valueC === "string" && typeof valueD === "string") {
|
|
@@ -7439,24 +7382,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7439
7382
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
7440
7383
|
});
|
|
7441
7384
|
const subDataRows = (itemId) => {
|
|
7442
|
-
return processedRowData.filter((item) => _optionalChain([item, 'access',
|
|
7385
|
+
return processedRowData.filter((item) => _optionalChain([item, 'access', _56 => _56.Details, 'optionalAccess', _57 => _57.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _58 => _58.Details, 'optionalAccess', _59 => _59.fileObjects, 'access', _60 => _60.map, 'call', _61 => _61((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
|
|
7443
7386
|
/* @__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
7387
|
"path",
|
|
7445
7388
|
{
|
|
7446
7389
|
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
7390
|
fill: "#1C1B1F"
|
|
7448
7391
|
}
|
|
7449
|
-
) }) }) }, `td-${_optionalChain([item, 'access',
|
|
7392
|
+
) }) }) }, `td-${_optionalChain([item, 'access', _62 => _62.Details, 'optionalAccess', _63 => _63.relationId])}-${fileItem.id}`),
|
|
7450
7393
|
SubDataColumns.map((column) => {
|
|
7451
7394
|
const columnKey = trimBeforePeriod2(column.key);
|
|
7452
7395
|
const value = fileItem[columnKey];
|
|
7453
7396
|
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',
|
|
7397
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _64 => _64.Details, 'optionalAccess', _65 => _65.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _66 => _66.Details, 'optionalAccess', _67 => _67.relationId])}-${fileItem.id}-${index}-${column.title}`);
|
|
7455
7398
|
}
|
|
7456
7399
|
})
|
|
7457
|
-
] }, `${item}-${_optionalChain([item, 'access',
|
|
7400
|
+
] }, `${item}-${_optionalChain([item, 'access', _68 => _68.Details, 'optionalAccess', _69 => _69.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _70 => _70.Details, 'optionalAccess', _71 => _71.relationId])}`));
|
|
7458
7401
|
};
|
|
7459
|
-
const dataRows = _optionalChain([processedRowData, 'optionalAccess',
|
|
7402
|
+
const dataRows = _optionalChain([processedRowData, 'optionalAccess', _72 => _72.map, 'call', _73 => _73((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
|
|
7460
7403
|
/* @__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
7404
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
|
|
7462
7405
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
@@ -7483,58 +7426,100 @@ ChildDataTable.displayName = "ChildDataTable";
|
|
|
7483
7426
|
|
|
7484
7427
|
// src/components/DataTable/SubRowTable/ChildDataTable.tsx
|
|
7485
7428
|
|
|
7486
|
-
|
|
7487
7429
|
var _client = require('react-dom/client');
|
|
7488
7430
|
|
|
7489
|
-
|
|
7431
|
+
|
|
7432
|
+
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, externalSort, sortKey, sortOrder, onAction, ...rest }) => {
|
|
7490
7433
|
const tableRef = _react.useRef.call(void 0, null);
|
|
7491
|
-
const
|
|
7434
|
+
const cellRoots = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
7435
|
+
const dropdownRoots = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
7436
|
+
const renderReactToDOM = (element) => {
|
|
7437
|
+
const container = document.createElement("div");
|
|
7438
|
+
container.style.display = "contents";
|
|
7439
|
+
const root = _client.createRoot.call(void 0, container);
|
|
7440
|
+
cellRoots.current.set(container, root);
|
|
7441
|
+
root.render(element);
|
|
7442
|
+
return container;
|
|
7443
|
+
};
|
|
7444
|
+
const processedColumns = _react.useMemo.call(void 0, () => {
|
|
7445
|
+
if (!Array.isArray(columns)) return columns;
|
|
7446
|
+
return columns.map((col) => {
|
|
7447
|
+
if (typeof col.renderCell === "function") {
|
|
7448
|
+
const originalRender = col.renderCell;
|
|
7449
|
+
return {
|
|
7450
|
+
...col,
|
|
7451
|
+
renderCell: (item) => {
|
|
7452
|
+
const content = originalRender(item);
|
|
7453
|
+
if (content !== null && typeof content === "object" && !(content instanceof HTMLElement)) {
|
|
7454
|
+
return renderReactToDOM(content);
|
|
7455
|
+
}
|
|
7456
|
+
return content;
|
|
7457
|
+
}
|
|
7458
|
+
};
|
|
7459
|
+
}
|
|
7460
|
+
return col;
|
|
7461
|
+
});
|
|
7462
|
+
}, [columns]);
|
|
7492
7463
|
_react.useEffect.call(void 0, () => {
|
|
7493
|
-
const
|
|
7494
|
-
if (!
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7464
|
+
const el = tableRef.current;
|
|
7465
|
+
if (!el) return;
|
|
7466
|
+
const resolveNodeToDOM = (node) => {
|
|
7467
|
+
if (node !== null && typeof node === "object" && !(node instanceof HTMLElement)) {
|
|
7468
|
+
return renderReactToDOM(node);
|
|
7469
|
+
}
|
|
7470
|
+
return node;
|
|
7471
|
+
};
|
|
7472
|
+
if (processedColumns !== void 0) el.setColumns = processedColumns;
|
|
7473
|
+
if (data !== void 0) el.setData = data;
|
|
7474
|
+
if (dropdownArrowLocation !== void 0) el.setDropdownArrowLocation = dropdownArrowLocation;
|
|
7475
|
+
if (sortIcon !== void 0) el.setSortIcon = resolveNodeToDOM(sortIcon);
|
|
7476
|
+
if (dropdownButtonIcon !== void 0) el.setDropdownButtonIcon = resolveNodeToDOM(dropdownButtonIcon);
|
|
7477
|
+
if (externalSort !== void 0) el.setExternalSort = externalSort;
|
|
7478
|
+
if (sortKey !== void 0) el.setSortKey = sortKey;
|
|
7479
|
+
if (sortOrder !== void 0) el.setSortOrder = sortOrder;
|
|
7480
|
+
}, [processedColumns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, externalSort, sortKey, sortOrder]);
|
|
7501
7481
|
_react.useEffect.call(void 0, () => {
|
|
7502
7482
|
const el = tableRef.current;
|
|
7503
7483
|
if (!el) return;
|
|
7484
|
+
const handleAction = (event) => {
|
|
7485
|
+
if (onAction) onAction(event);
|
|
7486
|
+
};
|
|
7504
7487
|
const handleReactDropdown = (event) => {
|
|
7505
7488
|
const customEvent = event;
|
|
7506
7489
|
event.stopPropagation();
|
|
7507
7490
|
const { container, itemId } = customEvent.detail;
|
|
7508
|
-
let root =
|
|
7491
|
+
let root = dropdownRoots.current.get(container);
|
|
7509
7492
|
if (!root) {
|
|
7510
7493
|
root = _client.createRoot.call(void 0, container);
|
|
7511
|
-
|
|
7494
|
+
dropdownRoots.current.set(container, root);
|
|
7512
7495
|
}
|
|
7513
|
-
const item = _optionalChain([data, 'optionalAccess',
|
|
7514
|
-
if (item
|
|
7496
|
+
const item = _optionalChain([data, 'optionalAccess', _74 => _74.find, 'call', _75 => _75((i) => String(i.id) === String(itemId))]);
|
|
7497
|
+
if (_optionalChain([item, 'optionalAccess', _76 => _76.dropdown]) && root) {
|
|
7515
7498
|
root.render(item.dropdown);
|
|
7516
7499
|
}
|
|
7517
|
-
const dropdown = container.querySelector(".dropdown");
|
|
7518
|
-
if (dropdown) {
|
|
7519
|
-
dropdown.hidden = false;
|
|
7520
|
-
}
|
|
7521
7500
|
};
|
|
7522
7501
|
const handleCleanupDropdown = (event) => {
|
|
7523
7502
|
event.stopPropagation();
|
|
7524
7503
|
const { container } = event.detail;
|
|
7525
|
-
const root =
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7504
|
+
const root = dropdownRoots.current.get(container);
|
|
7505
|
+
if (root) {
|
|
7506
|
+
root.unmount();
|
|
7507
|
+
dropdownRoots.current.delete(container);
|
|
7529
7508
|
}
|
|
7530
7509
|
};
|
|
7510
|
+
el.addEventListener("action", handleAction);
|
|
7531
7511
|
el.addEventListener("getReactDropdown", handleReactDropdown);
|
|
7532
7512
|
el.addEventListener("cleanupDropdown", handleCleanupDropdown);
|
|
7533
7513
|
return () => {
|
|
7514
|
+
el.removeEventListener("action", handleAction);
|
|
7534
7515
|
el.removeEventListener("getReactDropdown", handleReactDropdown);
|
|
7535
7516
|
el.removeEventListener("cleanupDropdown", handleCleanupDropdown);
|
|
7517
|
+
cellRoots.current.forEach((root) => root.unmount());
|
|
7518
|
+
cellRoots.current.clear();
|
|
7519
|
+
dropdownRoots.current.forEach((root) => root.unmount());
|
|
7520
|
+
dropdownRoots.current.clear();
|
|
7536
7521
|
};
|
|
7537
|
-
}, [data]);
|
|
7522
|
+
}, [data, onAction]);
|
|
7538
7523
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-child-data-table", { ref: tableRef, ...rest });
|
|
7539
7524
|
};
|
|
7540
7525
|
ChildDataTable2.displayName = "ChildDataTable";
|
|
@@ -7637,9 +7622,9 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7637
7622
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7638
7623
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
7639
7624
|
});
|
|
7640
|
-
const subDataRows = !_optionalChain([data, 'optionalAccess',
|
|
7625
|
+
const subDataRows = !_optionalChain([data, 'optionalAccess', _77 => _77.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) => {
|
|
7641
7626
|
const columnKey = trimBeforePeriod(column.key);
|
|
7642
|
-
const value = _optionalChain([item, 'access',
|
|
7627
|
+
const value = _optionalChain([item, 'access', _78 => _78.Details, 'optionalAccess', _79 => _79[columnKey]]);
|
|
7643
7628
|
console.log("value: ", value);
|
|
7644
7629
|
if (value !== void 0) {
|
|
7645
7630
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -7649,7 +7634,7 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7649
7634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
7650
7635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
7651
7636
|
] });
|
|
7652
|
-
const rows = !_optionalChain([data, 'optionalAccess',
|
|
7637
|
+
const rows = !_optionalChain([data, 'optionalAccess', _80 => _80.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', _81 => _81.map, 'call', _82 => _82((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7653
7638
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
7654
7639
|
/* @__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" }) }),
|
|
7655
7640
|
HeadColumns.map((column, index2) => {
|