@wavelengthusaf/components 4.7.0 → 4.9.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 +514 -383
- package/dist/cjs/index.d.cts +51 -18
- package/dist/esm/index.d.ts +51 -18
- package/dist/esm/index.js +673 -542
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -6217,6 +6217,435 @@ var WavelengthDropdown = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
6217
6217
|
});
|
|
6218
6218
|
WavelengthDropdown.displayName = "WavelengthDropdown";
|
|
6219
6219
|
|
|
6220
|
+
// src/components/modals/WavelengthMenu.tsx
|
|
6221
|
+
|
|
6222
|
+
|
|
6223
|
+
var WavelengthMenu = ({
|
|
6224
|
+
backgroundColor: backgroundColor2,
|
|
6225
|
+
textColor,
|
|
6226
|
+
font,
|
|
6227
|
+
fontSize,
|
|
6228
|
+
border: border2,
|
|
6229
|
+
padding: padding2,
|
|
6230
|
+
borderRadius: borderRadius2,
|
|
6231
|
+
selectedColor,
|
|
6232
|
+
disabledColor,
|
|
6233
|
+
items,
|
|
6234
|
+
WavelengthMenuSelect,
|
|
6235
|
+
...rest
|
|
6236
|
+
// This rest operator includes className, style, onClick, etc.
|
|
6237
|
+
}) => {
|
|
6238
|
+
const ref = _react.useRef.call(void 0, null);
|
|
6239
|
+
const syncAttribute = (attribute, value) => {
|
|
6240
|
+
const el = ref.current;
|
|
6241
|
+
if (!el) return;
|
|
6242
|
+
el.setAttribute(attribute, value);
|
|
6243
|
+
};
|
|
6244
|
+
_react.useEffect.call(void 0, () => {
|
|
6245
|
+
const el = ref.current;
|
|
6246
|
+
if (!el) return;
|
|
6247
|
+
syncAttribute("background-color", backgroundColor2 || "");
|
|
6248
|
+
syncAttribute("text-color", textColor || "");
|
|
6249
|
+
syncAttribute("font", font || "");
|
|
6250
|
+
syncAttribute("font-size", fontSize || "");
|
|
6251
|
+
syncAttribute("border", border2 || "");
|
|
6252
|
+
syncAttribute("padding", padding2 || "");
|
|
6253
|
+
syncAttribute("border-radius", borderRadius2 || "");
|
|
6254
|
+
syncAttribute("selected-color", selectedColor || "");
|
|
6255
|
+
syncAttribute("disabled-color", disabledColor || "");
|
|
6256
|
+
syncAttribute("items", JSON.stringify(items) || "");
|
|
6257
|
+
const handleSelect = (event) => {
|
|
6258
|
+
if (WavelengthMenuSelect) WavelengthMenuSelect(event.detail);
|
|
6259
|
+
};
|
|
6260
|
+
el.addEventListener("wavelength-menu-select", handleSelect);
|
|
6261
|
+
return () => {
|
|
6262
|
+
el.removeEventListener("wavelength-menu-select", handleSelect);
|
|
6263
|
+
};
|
|
6264
|
+
}, [backgroundColor2, textColor, font, fontSize, border2, padding2, borderRadius2, selectedColor, disabledColor, items, WavelengthMenuSelect]);
|
|
6265
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6266
|
+
"wavelength-menu",
|
|
6267
|
+
{
|
|
6268
|
+
ref,
|
|
6269
|
+
"background-color": backgroundColor2,
|
|
6270
|
+
"text-color": textColor,
|
|
6271
|
+
font,
|
|
6272
|
+
"font-size": fontSize,
|
|
6273
|
+
border: border2,
|
|
6274
|
+
padding: padding2,
|
|
6275
|
+
"border-radius": borderRadius2,
|
|
6276
|
+
"selected-color": selectedColor,
|
|
6277
|
+
"disabled-color": disabledColor,
|
|
6278
|
+
items: JSON.stringify(items),
|
|
6279
|
+
...rest
|
|
6280
|
+
}
|
|
6281
|
+
);
|
|
6282
|
+
};
|
|
6283
|
+
WavelengthMenu.displayName = "WavelengthMenu";
|
|
6284
|
+
|
|
6285
|
+
// src/components/modals/WavelengthPagination.tsx
|
|
6286
|
+
|
|
6287
|
+
|
|
6288
|
+
var WavelengthPagination = ({
|
|
6289
|
+
testProp,
|
|
6290
|
+
children,
|
|
6291
|
+
// Style argument
|
|
6292
|
+
customStyle: customStyle2,
|
|
6293
|
+
variant,
|
|
6294
|
+
textColor,
|
|
6295
|
+
font,
|
|
6296
|
+
fontSize,
|
|
6297
|
+
border: border2,
|
|
6298
|
+
borderRadius: borderRadius2,
|
|
6299
|
+
padding: padding2,
|
|
6300
|
+
totalPages,
|
|
6301
|
+
currentPage,
|
|
6302
|
+
activeColor,
|
|
6303
|
+
activeTextColor,
|
|
6304
|
+
backgroundColor: backgroundColor2,
|
|
6305
|
+
disabledColor,
|
|
6306
|
+
onPageChange,
|
|
6307
|
+
...rest
|
|
6308
|
+
// This rest operator includes className, style, onClick, etc.
|
|
6309
|
+
}) => {
|
|
6310
|
+
const ref = _react.useRef.call(void 0, null);
|
|
6311
|
+
const syncAttribute = (attribute, value) => {
|
|
6312
|
+
const el = ref.current;
|
|
6313
|
+
if (!el) return;
|
|
6314
|
+
el.setAttribute(attribute, value);
|
|
6315
|
+
};
|
|
6316
|
+
_react.useEffect.call(void 0, () => {
|
|
6317
|
+
const el = ref.current;
|
|
6318
|
+
if (!el) return;
|
|
6319
|
+
el.customStyles = customStyle2;
|
|
6320
|
+
syncAttribute("variant", variant || "");
|
|
6321
|
+
syncAttribute("text-color", textColor || "");
|
|
6322
|
+
syncAttribute("font", font || "");
|
|
6323
|
+
syncAttribute("font-size", fontSize || "");
|
|
6324
|
+
syncAttribute("border", border2 || "");
|
|
6325
|
+
syncAttribute("border-radius", borderRadius2 || "");
|
|
6326
|
+
syncAttribute("padding", padding2 || "");
|
|
6327
|
+
syncAttribute("active-color", activeColor || "");
|
|
6328
|
+
syncAttribute("active-text-color", activeTextColor || "");
|
|
6329
|
+
syncAttribute("background-color", backgroundColor2 || "");
|
|
6330
|
+
syncAttribute("disabled-color", disabledColor || "");
|
|
6331
|
+
syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _39 => _39.toString, 'call', _40 => _40()]) || "");
|
|
6332
|
+
syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _41 => _41.toString, 'call', _42 => _42()]) || "");
|
|
6333
|
+
const handlePageChange = (e) => {
|
|
6334
|
+
if (onPageChange) {
|
|
6335
|
+
onPageChange(e.detail.page);
|
|
6336
|
+
}
|
|
6337
|
+
};
|
|
6338
|
+
el.addEventListener("page-change", handlePageChange);
|
|
6339
|
+
return () => {
|
|
6340
|
+
el.removeEventListener("page-change", handlePageChange);
|
|
6341
|
+
};
|
|
6342
|
+
}, [testProp, textColor, font, fontSize, border2, borderRadius2, padding2, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor2, disabledColor, onPageChange]);
|
|
6343
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
|
|
6344
|
+
};
|
|
6345
|
+
WavelengthPagination.displayName = "WavelengthPagination";
|
|
6346
|
+
|
|
6347
|
+
// src/index.ts
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
// src/components/pagination/WavelengthDefaultPagination.tsx
|
|
6351
|
+
|
|
6352
|
+
|
|
6353
|
+
// src/components/pagination/WavelengthButtonPagination.tsx
|
|
6354
|
+
|
|
6355
|
+
|
|
6356
|
+
var _ArrowBackIosNew = require('@mui/icons-material/ArrowBackIosNew'); var _ArrowBackIosNew2 = _interopRequireDefault(_ArrowBackIosNew);
|
|
6357
|
+
var _ArrowForwardIos = require('@mui/icons-material/ArrowForwardIos'); var _ArrowForwardIos2 = _interopRequireDefault(_ArrowForwardIos);
|
|
6358
|
+
|
|
6359
|
+
|
|
6360
|
+
var MyDroplistItems = _styledcomponents2.default.call(void 0, "li")`
|
|
6361
|
+
background-color: white;
|
|
6362
|
+
color: #000000;
|
|
6363
|
+
padding: 10px 30px;
|
|
6364
|
+
textdecoration: none;
|
|
6365
|
+
display: block;
|
|
6366
|
+
width: 80px;
|
|
6367
|
+
|
|
6368
|
+
&:hover {
|
|
6369
|
+
background-color: lightgray;
|
|
6370
|
+
}
|
|
6371
|
+
`;
|
|
6372
|
+
function WavelengthButtonPagination({ totalPages, current, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
|
|
6373
|
+
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6374
|
+
const [isSecOpen, setIsSecOpen] = _react.useState.call(void 0, false);
|
|
6375
|
+
const toggleDropdown = (index) => {
|
|
6376
|
+
if (index === 1) {
|
|
6377
|
+
setIsOpen(!isOpen);
|
|
6378
|
+
} else {
|
|
6379
|
+
setIsSecOpen(!isSecOpen);
|
|
6380
|
+
}
|
|
6381
|
+
};
|
|
6382
|
+
const dropstyles = {
|
|
6383
|
+
dropcenter: { position: "relative", left: "-40px", top: "-20px" },
|
|
6384
|
+
mydrop: { position: "absolute", zIndex: "3", maxHeight: "200px", overflow: "scroll" },
|
|
6385
|
+
rangenumbers: { display: "flex" },
|
|
6386
|
+
butPagCompDivStyle: { display: "flex" }
|
|
6387
|
+
};
|
|
6388
|
+
const WLButtonPagStyle = {
|
|
6389
|
+
background: "white",
|
|
6390
|
+
color: "black",
|
|
6391
|
+
border: "none",
|
|
6392
|
+
padding: "1px",
|
|
6393
|
+
fontSize: "16px",
|
|
6394
|
+
height: "55px",
|
|
6395
|
+
width: "40px",
|
|
6396
|
+
boxshadow: "4px 2px 4px darkslategray",
|
|
6397
|
+
borderRadius: "50%",
|
|
6398
|
+
margin: "3px",
|
|
6399
|
+
"&:hover": { background: "#49baf7" },
|
|
6400
|
+
"&:disabled": { background: "rgb(226, 223, 223)" },
|
|
6401
|
+
"&.active": { background: "#8FD8FF" }
|
|
6402
|
+
};
|
|
6403
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: dropstyles.butPagCompDivStyle, id, children: [
|
|
6404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowBackIosNew2.default, {}) }),
|
|
6405
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6406
|
+
(item, index) => item === "..." && index === 1 ? (
|
|
6407
|
+
//first half ellipse with first half dropdown
|
|
6408
|
+
// dropdown
|
|
6409
|
+
// eslint-disable-next-line react/jsx-key
|
|
6410
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6411
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
6412
|
+
isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6413
|
+
MyDroplistItems,
|
|
6414
|
+
{
|
|
6415
|
+
onClick: () => {
|
|
6416
|
+
handleChangePage(item2), setIsOpen(false);
|
|
6417
|
+
},
|
|
6418
|
+
children: item2
|
|
6419
|
+
},
|
|
6420
|
+
item2
|
|
6421
|
+
)) }) })
|
|
6422
|
+
] })
|
|
6423
|
+
) : item === "..." && index === 5 ? (
|
|
6424
|
+
//second half ellipse with second half dropdown
|
|
6425
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6426
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
6427
|
+
isSecOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6428
|
+
MyDroplistItems,
|
|
6429
|
+
{
|
|
6430
|
+
onClick: () => {
|
|
6431
|
+
handleChangePage(item2), setIsOpen(false);
|
|
6432
|
+
},
|
|
6433
|
+
children: item2
|
|
6434
|
+
},
|
|
6435
|
+
item2
|
|
6436
|
+
)) }) })
|
|
6437
|
+
] })
|
|
6438
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
|
|
6439
|
+
) }),
|
|
6440
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowForwardIos2.default, {}) })
|
|
6441
|
+
] });
|
|
6442
|
+
}
|
|
6443
|
+
WavelengthButtonPagination.displayName = "WavelengthButtonPagination";
|
|
6444
|
+
var WavelengthButtonPagination_default = WavelengthButtonPagination;
|
|
6445
|
+
|
|
6446
|
+
// src/components/pagination/WavelengthVariationPagination.tsx
|
|
6447
|
+
|
|
6448
|
+
|
|
6449
|
+
|
|
6450
|
+
|
|
6451
|
+
|
|
6452
|
+
|
|
6453
|
+
function WavelengthVariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
|
|
6454
|
+
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6455
|
+
const [isSecOpen, setIsSecOpen] = _react.useState.call(void 0, false);
|
|
6456
|
+
const MyDroplistItems2 = _styledcomponents2.default.call(void 0, "li")`
|
|
6457
|
+
background-color: white;
|
|
6458
|
+
color: #000000;
|
|
6459
|
+
padding: 10px 30px;
|
|
6460
|
+
textdecoration: none;
|
|
6461
|
+
display: block;
|
|
6462
|
+
width: 80px;
|
|
6463
|
+
|
|
6464
|
+
&:hover {
|
|
6465
|
+
background-color: lightgray;
|
|
6466
|
+
}
|
|
6467
|
+
`;
|
|
6468
|
+
const dropstyles = {
|
|
6469
|
+
pagination: {
|
|
6470
|
+
display: "flex"
|
|
6471
|
+
},
|
|
6472
|
+
dropcenter: {
|
|
6473
|
+
position: "relative",
|
|
6474
|
+
left: "-40px",
|
|
6475
|
+
top: "-20px"
|
|
6476
|
+
},
|
|
6477
|
+
mydrop: {
|
|
6478
|
+
position: "absolute",
|
|
6479
|
+
zIndex: "3",
|
|
6480
|
+
maxHeight: "200px",
|
|
6481
|
+
overflow: "scroll"
|
|
6482
|
+
},
|
|
6483
|
+
rangenumbers: {
|
|
6484
|
+
display: "flex"
|
|
6485
|
+
}
|
|
6486
|
+
};
|
|
6487
|
+
const toggleDropdown = (index) => {
|
|
6488
|
+
if (index === 1) {
|
|
6489
|
+
setIsOpen(!isOpen);
|
|
6490
|
+
} else {
|
|
6491
|
+
setIsSecOpen(!isSecOpen);
|
|
6492
|
+
}
|
|
6493
|
+
};
|
|
6494
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: dropstyles.pagination, id, children: [
|
|
6495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowBackIosNew2.default, {}) }),
|
|
6496
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6497
|
+
(item, index) => item === "..." && index === 1 ? (
|
|
6498
|
+
//first half ellipse with first half dropdown
|
|
6499
|
+
// eslint-disable-next-line react/jsx-key
|
|
6500
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6501
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6502
|
+
isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6503
|
+
MyDroplistItems2,
|
|
6504
|
+
{
|
|
6505
|
+
style: dropstyles.mydroplist,
|
|
6506
|
+
onClick: () => {
|
|
6507
|
+
handleChangePage(item2), setIsOpen(false);
|
|
6508
|
+
},
|
|
6509
|
+
children: item2
|
|
6510
|
+
},
|
|
6511
|
+
item2
|
|
6512
|
+
)) }) })
|
|
6513
|
+
] })
|
|
6514
|
+
) : item === "..." && index === 5 ? (
|
|
6515
|
+
//second half ellipse with second half dropdown
|
|
6516
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6517
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6518
|
+
isSecOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6519
|
+
MyDroplistItems2,
|
|
6520
|
+
{
|
|
6521
|
+
style: dropstyles.mydroplist,
|
|
6522
|
+
onClick: () => {
|
|
6523
|
+
handleChangePage(item2), setIsOpen(false);
|
|
6524
|
+
},
|
|
6525
|
+
children: item2
|
|
6526
|
+
},
|
|
6527
|
+
item2
|
|
6528
|
+
)) }) })
|
|
6529
|
+
] })
|
|
6530
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
|
|
6531
|
+
) }),
|
|
6532
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowForwardIos2.default, {}) })
|
|
6533
|
+
] });
|
|
6534
|
+
}
|
|
6535
|
+
WavelengthVariationPagination.displayName = "WavelengthVariationPagination";
|
|
6536
|
+
var WavelengthVariationPagination_default = WavelengthVariationPagination;
|
|
6537
|
+
|
|
6538
|
+
// src/components/pagination/WavelengthDefaultPagination.tsx
|
|
6539
|
+
|
|
6540
|
+
var range = (start, end) => {
|
|
6541
|
+
const length = end - start + 1;
|
|
6542
|
+
return Array.from({ length }, (_, i) => start + i);
|
|
6543
|
+
};
|
|
6544
|
+
function ascendingRange(start, end) {
|
|
6545
|
+
const result = [];
|
|
6546
|
+
for (let i = start; i < end; i++) {
|
|
6547
|
+
if (i !== start) {
|
|
6548
|
+
result.push(i);
|
|
6549
|
+
}
|
|
6550
|
+
}
|
|
6551
|
+
return result;
|
|
6552
|
+
}
|
|
6553
|
+
function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, boundaryCount = 1, style: style3, onPageChange, id }) {
|
|
6554
|
+
const [current, setCurrent] = _react.useState.call(void 0, currentPageNumber);
|
|
6555
|
+
const startPages = range(1, Math.min(boundaryCount, totalPages));
|
|
6556
|
+
const endPages = range(Math.max(totalPages - boundaryCount + 1, boundaryCount + 1), totalPages);
|
|
6557
|
+
const siblingsStart = Math.max(Math.min(current - siblingCount, totalPages - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
|
|
6558
|
+
const siblingsEnd = Math.min(Math.max(current + siblingCount, boundaryCount + siblingCount * 2 + 2), endPages.length > 0 ? endPages[0] - 2 : totalPages - 1);
|
|
6559
|
+
const firstEllipseList = ascendingRange(1, siblingsStart);
|
|
6560
|
+
const secondEllipseList = ascendingRange(siblingsEnd, totalPages);
|
|
6561
|
+
const itemList = _react.useMemo.call(void 0, () => {
|
|
6562
|
+
return [
|
|
6563
|
+
...startPages,
|
|
6564
|
+
...siblingsStart > boundaryCount + 2 ? ["..."] : boundaryCount + 1 < totalPages - boundaryCount ? [boundaryCount + 1] : [],
|
|
6565
|
+
...range(siblingsStart, siblingsEnd),
|
|
6566
|
+
...siblingsEnd < totalPages - boundaryCount - 1 ? ["..."] : totalPages - boundaryCount > boundaryCount ? [totalPages - boundaryCount] : [],
|
|
6567
|
+
...endPages
|
|
6568
|
+
];
|
|
6569
|
+
}, [current, totalPages, boundaryCount, siblingCount, id]);
|
|
6570
|
+
const handleChangePage = (value) => {
|
|
6571
|
+
if (typeof value === "number") {
|
|
6572
|
+
setCurrent(value);
|
|
6573
|
+
onPageChange(value);
|
|
6574
|
+
}
|
|
6575
|
+
};
|
|
6576
|
+
if (style3 === "circular") {
|
|
6577
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6578
|
+
WavelengthButtonPagination_default,
|
|
6579
|
+
{
|
|
6580
|
+
id,
|
|
6581
|
+
totalPages,
|
|
6582
|
+
current,
|
|
6583
|
+
handleChangePage,
|
|
6584
|
+
itemList,
|
|
6585
|
+
firstEllipseList,
|
|
6586
|
+
secondEllipseList
|
|
6587
|
+
}
|
|
6588
|
+
);
|
|
6589
|
+
} else if (style3 === "text") {
|
|
6590
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6591
|
+
WavelengthVariationPagination_default,
|
|
6592
|
+
{
|
|
6593
|
+
id,
|
|
6594
|
+
totalPages,
|
|
6595
|
+
current,
|
|
6596
|
+
variant: "text",
|
|
6597
|
+
handleChangePage,
|
|
6598
|
+
itemList,
|
|
6599
|
+
firstEllipseList,
|
|
6600
|
+
secondEllipseList
|
|
6601
|
+
}
|
|
6602
|
+
);
|
|
6603
|
+
} else if (style3 === "outlined") {
|
|
6604
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6605
|
+
WavelengthVariationPagination_default,
|
|
6606
|
+
{
|
|
6607
|
+
id,
|
|
6608
|
+
totalPages,
|
|
6609
|
+
current,
|
|
6610
|
+
variant: "outlined",
|
|
6611
|
+
handleChangePage,
|
|
6612
|
+
itemList,
|
|
6613
|
+
firstEllipseList,
|
|
6614
|
+
secondEllipseList
|
|
6615
|
+
}
|
|
6616
|
+
);
|
|
6617
|
+
} else if (style3 === "contained") {
|
|
6618
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6619
|
+
WavelengthVariationPagination_default,
|
|
6620
|
+
{
|
|
6621
|
+
id,
|
|
6622
|
+
totalPages,
|
|
6623
|
+
current,
|
|
6624
|
+
variant: "contained",
|
|
6625
|
+
handleChangePage,
|
|
6626
|
+
itemList,
|
|
6627
|
+
firstEllipseList,
|
|
6628
|
+
secondEllipseList
|
|
6629
|
+
}
|
|
6630
|
+
);
|
|
6631
|
+
} else {
|
|
6632
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6633
|
+
WavelengthVariationPagination_default,
|
|
6634
|
+
{
|
|
6635
|
+
id,
|
|
6636
|
+
totalPages,
|
|
6637
|
+
current,
|
|
6638
|
+
handleChangePage,
|
|
6639
|
+
itemList,
|
|
6640
|
+
firstEllipseList,
|
|
6641
|
+
secondEllipseList
|
|
6642
|
+
}
|
|
6643
|
+
);
|
|
6644
|
+
}
|
|
6645
|
+
}
|
|
6646
|
+
WavelengthDefaultPagination.displayName = "WavelengthDefaultPagination";
|
|
6647
|
+
var WavelengthDefaultPagination_default = WavelengthDefaultPagination;
|
|
6648
|
+
|
|
6220
6649
|
// src/components/snackbars/WavelengthSnackbar.tsx
|
|
6221
6650
|
var _Snackbar = require('@mui/material/Snackbar'); var _Snackbar2 = _interopRequireDefault(_Snackbar);
|
|
6222
6651
|
var _SnackbarContent = require('@mui/material/SnackbarContent'); var _SnackbarContent2 = _interopRequireDefault(_SnackbarContent);
|
|
@@ -6496,380 +6925,81 @@ DefaultCarousel.displayName = "DefaultCarousel";
|
|
|
6496
6925
|
|
|
6497
6926
|
|
|
6498
6927
|
|
|
6499
|
-
var delay = 2500;
|
|
6500
|
-
var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
|
|
6501
|
-
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
6502
|
-
const [isHovered, setIsHovered] = _react.useState.call(void 0, false);
|
|
6503
|
-
_react.useEffect.call(void 0, () => {
|
|
6504
|
-
setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
|
|
6505
|
-
return () => {
|
|
6506
|
-
};
|
|
6507
|
-
}, [index]);
|
|
6508
|
-
const carouselCardWidth = items.length > 0 ? `calc(35% * ${items.length})` : "200%";
|
|
6509
|
-
const adjustContHeight = contHeight !== void 0 ? contHeight : "100%";
|
|
6510
|
-
const adjustContWidth = contWidth !== void 0 ? contWidth : "200%";
|
|
6511
|
-
const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 120;
|
|
6512
|
-
const adjustCardWith = cardWidth !== void 0 ? cardWidth : 310;
|
|
6513
|
-
const styles = {
|
|
6514
|
-
carouselcontainer: {
|
|
6515
|
-
overflow: "hidden",
|
|
6516
|
-
position: "relative",
|
|
6517
|
-
borderColor: "#4b5563",
|
|
6518
|
-
height: adjustContHeight,
|
|
6519
|
-
width: adjustContWidth,
|
|
6520
|
-
minHeight: "280px",
|
|
6521
|
-
minWidth: "640px",
|
|
6522
|
-
borderRadius: "10px"
|
|
6523
|
-
},
|
|
6524
|
-
carouselTrackStyle: {
|
|
6525
|
-
display: "flex",
|
|
6526
|
-
position: "relative",
|
|
6527
|
-
justifyContent: "center",
|
|
6528
|
-
left: "0",
|
|
6529
|
-
alignItems: "center",
|
|
6530
|
-
gap: "5px",
|
|
6531
|
-
width: carouselCardWidth,
|
|
6532
|
-
height: "100%",
|
|
6533
|
-
transition: "background-color 0.5s ease-in-out"
|
|
6534
|
-
},
|
|
6535
|
-
carouselCard: {
|
|
6536
|
-
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
|
6537
|
-
transform: isHovered ? "scale(0.9)" : "scale(1)",
|
|
6538
|
-
boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
|
|
6539
|
-
}
|
|
6540
|
-
};
|
|
6541
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: styles.carouselcontainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6542
|
-
_Grid2.default,
|
|
6543
|
-
{
|
|
6544
|
-
sx: {
|
|
6545
|
-
display: "flex",
|
|
6546
|
-
justifyContent: "center",
|
|
6547
|
-
alignItems: "center"
|
|
6548
|
-
},
|
|
6549
|
-
container: true,
|
|
6550
|
-
spacing: 0.5,
|
|
6551
|
-
children: items.map((card) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6552
|
-
_Card2.default,
|
|
6553
|
-
{
|
|
6554
|
-
sx: {
|
|
6555
|
-
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
|
6556
|
-
transform: isHovered ? "scale(0.9)" : "scale(1)",
|
|
6557
|
-
boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
|
|
6558
|
-
},
|
|
6559
|
-
onMouseEnter: () => setIsHovered(true),
|
|
6560
|
-
onMouseLeave: () => setIsHovered(false),
|
|
6561
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardActionArea2.default, { href: card.path, children: [
|
|
6562
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CardMedia2.default, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
|
|
6563
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardContent2.default, { children: [
|
|
6564
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { children: card.title }),
|
|
6565
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { children: card.description })
|
|
6566
|
-
] })
|
|
6567
|
-
] })
|
|
6568
|
-
}
|
|
6569
|
-
) }, card.title))
|
|
6570
|
-
}
|
|
6571
|
-
) }) });
|
|
6572
|
-
};
|
|
6573
|
-
SliderCardCarousel.displayName = "SliderCardCarousel";
|
|
6574
|
-
|
|
6575
|
-
// src/components/pagination/WavelengthDefaultPagination.tsx
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
// src/components/pagination/WavelengthButtonPagination.tsx
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
var _ArrowBackIosNew = require('@mui/icons-material/ArrowBackIosNew'); var _ArrowBackIosNew2 = _interopRequireDefault(_ArrowBackIosNew);
|
|
6582
|
-
var _ArrowForwardIos = require('@mui/icons-material/ArrowForwardIos'); var _ArrowForwardIos2 = _interopRequireDefault(_ArrowForwardIos);
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
var MyDroplistItems = _styledcomponents2.default.call(void 0, "li")`
|
|
6586
|
-
background-color: white;
|
|
6587
|
-
color: #000000;
|
|
6588
|
-
padding: 10px 30px;
|
|
6589
|
-
textdecoration: none;
|
|
6590
|
-
display: block;
|
|
6591
|
-
width: 80px;
|
|
6592
|
-
|
|
6593
|
-
&:hover {
|
|
6594
|
-
background-color: lightgray;
|
|
6595
|
-
}
|
|
6596
|
-
`;
|
|
6597
|
-
function WavelengthButtonPagination({ totalPages, current, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
|
|
6598
|
-
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6599
|
-
const [isSecOpen, setIsSecOpen] = _react.useState.call(void 0, false);
|
|
6600
|
-
const toggleDropdown = (index) => {
|
|
6601
|
-
if (index === 1) {
|
|
6602
|
-
setIsOpen(!isOpen);
|
|
6603
|
-
} else {
|
|
6604
|
-
setIsSecOpen(!isSecOpen);
|
|
6605
|
-
}
|
|
6606
|
-
};
|
|
6607
|
-
const dropstyles = {
|
|
6608
|
-
dropcenter: { position: "relative", left: "-40px", top: "-20px" },
|
|
6609
|
-
mydrop: { position: "absolute", zIndex: "3", maxHeight: "200px", overflow: "scroll" },
|
|
6610
|
-
rangenumbers: { display: "flex" },
|
|
6611
|
-
butPagCompDivStyle: { display: "flex" }
|
|
6612
|
-
};
|
|
6613
|
-
const WLButtonPagStyle = {
|
|
6614
|
-
background: "white",
|
|
6615
|
-
color: "black",
|
|
6616
|
-
border: "none",
|
|
6617
|
-
padding: "1px",
|
|
6618
|
-
fontSize: "16px",
|
|
6619
|
-
height: "55px",
|
|
6620
|
-
width: "40px",
|
|
6621
|
-
boxshadow: "4px 2px 4px darkslategray",
|
|
6622
|
-
borderRadius: "50%",
|
|
6623
|
-
margin: "3px",
|
|
6624
|
-
"&:hover": { background: "#49baf7" },
|
|
6625
|
-
"&:disabled": { background: "rgb(226, 223, 223)" },
|
|
6626
|
-
"&.active": { background: "#8FD8FF" }
|
|
6627
|
-
};
|
|
6628
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: dropstyles.butPagCompDivStyle, id, children: [
|
|
6629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowBackIosNew2.default, {}) }),
|
|
6630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6631
|
-
(item, index) => item === "..." && index === 1 ? (
|
|
6632
|
-
//first half ellipse with first half dropdown
|
|
6633
|
-
// dropdown
|
|
6634
|
-
// eslint-disable-next-line react/jsx-key
|
|
6635
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
6637
|
-
isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6638
|
-
MyDroplistItems,
|
|
6639
|
-
{
|
|
6640
|
-
onClick: () => {
|
|
6641
|
-
handleChangePage(item2), setIsOpen(false);
|
|
6642
|
-
},
|
|
6643
|
-
children: item2
|
|
6644
|
-
},
|
|
6645
|
-
item2
|
|
6646
|
-
)) }) })
|
|
6647
|
-
] })
|
|
6648
|
-
) : item === "..." && index === 5 ? (
|
|
6649
|
-
//second half ellipse with second half dropdown
|
|
6650
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6651
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
|
|
6652
|
-
isSecOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6653
|
-
MyDroplistItems,
|
|
6654
|
-
{
|
|
6655
|
-
onClick: () => {
|
|
6656
|
-
handleChangePage(item2), setIsOpen(false);
|
|
6657
|
-
},
|
|
6658
|
-
children: item2
|
|
6659
|
-
},
|
|
6660
|
-
item2
|
|
6661
|
-
)) }) })
|
|
6662
|
-
] })
|
|
6663
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
|
|
6664
|
-
) }),
|
|
6665
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowForwardIos2.default, {}) })
|
|
6666
|
-
] });
|
|
6667
|
-
}
|
|
6668
|
-
WavelengthButtonPagination.displayName = "WavelengthButtonPagination";
|
|
6669
|
-
var WavelengthButtonPagination_default = WavelengthButtonPagination;
|
|
6670
|
-
|
|
6671
|
-
// src/components/pagination/WavelengthVariationPagination.tsx
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
function WavelengthVariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList, id }) {
|
|
6679
|
-
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
6680
|
-
const [isSecOpen, setIsSecOpen] = _react.useState.call(void 0, false);
|
|
6681
|
-
const MyDroplistItems2 = _styledcomponents2.default.call(void 0, "li")`
|
|
6682
|
-
background-color: white;
|
|
6683
|
-
color: #000000;
|
|
6684
|
-
padding: 10px 30px;
|
|
6685
|
-
textdecoration: none;
|
|
6686
|
-
display: block;
|
|
6687
|
-
width: 80px;
|
|
6688
|
-
|
|
6689
|
-
&:hover {
|
|
6690
|
-
background-color: lightgray;
|
|
6691
|
-
}
|
|
6692
|
-
`;
|
|
6693
|
-
const dropstyles = {
|
|
6694
|
-
pagination: {
|
|
6695
|
-
display: "flex"
|
|
6696
|
-
},
|
|
6697
|
-
dropcenter: {
|
|
6928
|
+
var delay = 2500;
|
|
6929
|
+
var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth }) => {
|
|
6930
|
+
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
6931
|
+
const [isHovered, setIsHovered] = _react.useState.call(void 0, false);
|
|
6932
|
+
_react.useEffect.call(void 0, () => {
|
|
6933
|
+
setTimeout(() => setIndex((prevIndex) => prevIndex === items.length - 1 ? 0 : prevIndex + 1), delay);
|
|
6934
|
+
return () => {
|
|
6935
|
+
};
|
|
6936
|
+
}, [index]);
|
|
6937
|
+
const carouselCardWidth = items.length > 0 ? `calc(35% * ${items.length})` : "200%";
|
|
6938
|
+
const adjustContHeight = contHeight !== void 0 ? contHeight : "100%";
|
|
6939
|
+
const adjustContWidth = contWidth !== void 0 ? contWidth : "200%";
|
|
6940
|
+
const adjustCardHeight = cardHeight !== void 0 ? cardHeight : 120;
|
|
6941
|
+
const adjustCardWith = cardWidth !== void 0 ? cardWidth : 310;
|
|
6942
|
+
const styles = {
|
|
6943
|
+
carouselcontainer: {
|
|
6944
|
+
overflow: "hidden",
|
|
6698
6945
|
position: "relative",
|
|
6699
|
-
|
|
6700
|
-
|
|
6946
|
+
borderColor: "#4b5563",
|
|
6947
|
+
height: adjustContHeight,
|
|
6948
|
+
width: adjustContWidth,
|
|
6949
|
+
minHeight: "280px",
|
|
6950
|
+
minWidth: "640px",
|
|
6951
|
+
borderRadius: "10px"
|
|
6701
6952
|
},
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6953
|
+
carouselTrackStyle: {
|
|
6954
|
+
display: "flex",
|
|
6955
|
+
position: "relative",
|
|
6956
|
+
justifyContent: "center",
|
|
6957
|
+
left: "0",
|
|
6958
|
+
alignItems: "center",
|
|
6959
|
+
gap: "5px",
|
|
6960
|
+
width: carouselCardWidth,
|
|
6961
|
+
height: "100%",
|
|
6962
|
+
transition: "background-color 0.5s ease-in-out"
|
|
6707
6963
|
},
|
|
6708
|
-
|
|
6709
|
-
|
|
6964
|
+
carouselCard: {
|
|
6965
|
+
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
|
6966
|
+
transform: isHovered ? "scale(0.9)" : "scale(1)",
|
|
6967
|
+
boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
|
|
6710
6968
|
}
|
|
6711
6969
|
};
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6970
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: styles.carouselcontainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-animation", style: styles.carouselTrackStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6971
|
+
_Grid2.default,
|
|
6972
|
+
{
|
|
6973
|
+
sx: {
|
|
6974
|
+
display: "flex",
|
|
6975
|
+
justifyContent: "center",
|
|
6976
|
+
alignItems: "center"
|
|
6977
|
+
},
|
|
6978
|
+
container: true,
|
|
6979
|
+
spacing: 0.5,
|
|
6980
|
+
children: items.map((card) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6981
|
+
_Card2.default,
|
|
6982
|
+
{
|
|
6983
|
+
sx: {
|
|
6984
|
+
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
|
6985
|
+
transform: isHovered ? "scale(0.9)" : "scale(1)",
|
|
6986
|
+
boxShadow: isHovered ? "5px 5px 8px rgba(222, 222, 222, 0.362), 10px 10px 8px rgba(152, 133, 133, 0.392), 15px 15px 8px rgba(139, 154, 139, 0.303)" : "none"
|
|
6987
|
+
},
|
|
6988
|
+
onMouseEnter: () => setIsHovered(true),
|
|
6989
|
+
onMouseLeave: () => setIsHovered(false),
|
|
6990
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardActionArea2.default, { href: card.path, children: [
|
|
6991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CardMedia2.default, { sx: { height: adjustCardHeight, width: adjustCardWith }, image: card.image }),
|
|
6992
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CardContent2.default, { children: [
|
|
6993
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { children: card.title }),
|
|
6994
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { children: card.description })
|
|
6995
|
+
] })
|
|
6996
|
+
] })
|
|
6997
|
+
}
|
|
6998
|
+
) }, card.title))
|
|
6717
6999
|
}
|
|
6718
|
-
};
|
|
6719
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: dropstyles.pagination, id, children: [
|
|
6720
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowBackIosNew2.default, {}) }),
|
|
6721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { style: dropstyles.rangenumbers, children: itemList.map(
|
|
6722
|
-
(item, index) => item === "..." && index === 1 ? (
|
|
6723
|
-
//first half ellipse with first half dropdown
|
|
6724
|
-
// eslint-disable-next-line react/jsx-key
|
|
6725
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6726
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6727
|
-
isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6728
|
-
MyDroplistItems2,
|
|
6729
|
-
{
|
|
6730
|
-
style: dropstyles.mydroplist,
|
|
6731
|
-
onClick: () => {
|
|
6732
|
-
handleChangePage(item2), setIsOpen(false);
|
|
6733
|
-
},
|
|
6734
|
-
children: item2
|
|
6735
|
-
},
|
|
6736
|
-
item2
|
|
6737
|
-
)) }) })
|
|
6738
|
-
] })
|
|
6739
|
-
) : item === "..." && index === 5 ? (
|
|
6740
|
-
//second half ellipse with second half dropdown
|
|
6741
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
6742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
|
|
6743
|
-
isSecOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6744
|
-
MyDroplistItems2,
|
|
6745
|
-
{
|
|
6746
|
-
style: dropstyles.mydroplist,
|
|
6747
|
-
onClick: () => {
|
|
6748
|
-
handleChangePage(item2), setIsOpen(false);
|
|
6749
|
-
},
|
|
6750
|
-
children: item2
|
|
6751
|
-
},
|
|
6752
|
-
item2
|
|
6753
|
-
)) }) })
|
|
6754
|
-
] })
|
|
6755
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
|
|
6756
|
-
) }),
|
|
6757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowForwardIos2.default, {}) })
|
|
6758
|
-
] });
|
|
6759
|
-
}
|
|
6760
|
-
WavelengthVariationPagination.displayName = "WavelengthVariationPagination";
|
|
6761
|
-
var WavelengthVariationPagination_default = WavelengthVariationPagination;
|
|
6762
|
-
|
|
6763
|
-
// src/components/pagination/WavelengthDefaultPagination.tsx
|
|
6764
|
-
|
|
6765
|
-
var range = (start, end) => {
|
|
6766
|
-
const length = end - start + 1;
|
|
6767
|
-
return Array.from({ length }, (_, i) => start + i);
|
|
7000
|
+
) }) });
|
|
6768
7001
|
};
|
|
6769
|
-
|
|
6770
|
-
const result = [];
|
|
6771
|
-
for (let i = start; i < end; i++) {
|
|
6772
|
-
if (i !== start) {
|
|
6773
|
-
result.push(i);
|
|
6774
|
-
}
|
|
6775
|
-
}
|
|
6776
|
-
return result;
|
|
6777
|
-
}
|
|
6778
|
-
function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, boundaryCount = 1, style: style3, onPageChange, id }) {
|
|
6779
|
-
const [current, setCurrent] = _react.useState.call(void 0, currentPageNumber);
|
|
6780
|
-
const startPages = range(1, Math.min(boundaryCount, totalPages));
|
|
6781
|
-
const endPages = range(Math.max(totalPages - boundaryCount + 1, boundaryCount + 1), totalPages);
|
|
6782
|
-
const siblingsStart = Math.max(Math.min(current - siblingCount, totalPages - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
|
|
6783
|
-
const siblingsEnd = Math.min(Math.max(current + siblingCount, boundaryCount + siblingCount * 2 + 2), endPages.length > 0 ? endPages[0] - 2 : totalPages - 1);
|
|
6784
|
-
const firstEllipseList = ascendingRange(1, siblingsStart);
|
|
6785
|
-
const secondEllipseList = ascendingRange(siblingsEnd, totalPages);
|
|
6786
|
-
const itemList = _react.useMemo.call(void 0, () => {
|
|
6787
|
-
return [
|
|
6788
|
-
...startPages,
|
|
6789
|
-
...siblingsStart > boundaryCount + 2 ? ["..."] : boundaryCount + 1 < totalPages - boundaryCount ? [boundaryCount + 1] : [],
|
|
6790
|
-
...range(siblingsStart, siblingsEnd),
|
|
6791
|
-
...siblingsEnd < totalPages - boundaryCount - 1 ? ["..."] : totalPages - boundaryCount > boundaryCount ? [totalPages - boundaryCount] : [],
|
|
6792
|
-
...endPages
|
|
6793
|
-
];
|
|
6794
|
-
}, [current, totalPages, boundaryCount, siblingCount, id]);
|
|
6795
|
-
const handleChangePage = (value) => {
|
|
6796
|
-
if (typeof value === "number") {
|
|
6797
|
-
setCurrent(value);
|
|
6798
|
-
onPageChange(value);
|
|
6799
|
-
}
|
|
6800
|
-
};
|
|
6801
|
-
if (style3 === "circular") {
|
|
6802
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6803
|
-
WavelengthButtonPagination_default,
|
|
6804
|
-
{
|
|
6805
|
-
id,
|
|
6806
|
-
totalPages,
|
|
6807
|
-
current,
|
|
6808
|
-
handleChangePage,
|
|
6809
|
-
itemList,
|
|
6810
|
-
firstEllipseList,
|
|
6811
|
-
secondEllipseList
|
|
6812
|
-
}
|
|
6813
|
-
);
|
|
6814
|
-
} else if (style3 === "text") {
|
|
6815
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6816
|
-
WavelengthVariationPagination_default,
|
|
6817
|
-
{
|
|
6818
|
-
id,
|
|
6819
|
-
totalPages,
|
|
6820
|
-
current,
|
|
6821
|
-
variant: "text",
|
|
6822
|
-
handleChangePage,
|
|
6823
|
-
itemList,
|
|
6824
|
-
firstEllipseList,
|
|
6825
|
-
secondEllipseList
|
|
6826
|
-
}
|
|
6827
|
-
);
|
|
6828
|
-
} else if (style3 === "outlined") {
|
|
6829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6830
|
-
WavelengthVariationPagination_default,
|
|
6831
|
-
{
|
|
6832
|
-
id,
|
|
6833
|
-
totalPages,
|
|
6834
|
-
current,
|
|
6835
|
-
variant: "outlined",
|
|
6836
|
-
handleChangePage,
|
|
6837
|
-
itemList,
|
|
6838
|
-
firstEllipseList,
|
|
6839
|
-
secondEllipseList
|
|
6840
|
-
}
|
|
6841
|
-
);
|
|
6842
|
-
} else if (style3 === "contained") {
|
|
6843
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6844
|
-
WavelengthVariationPagination_default,
|
|
6845
|
-
{
|
|
6846
|
-
id,
|
|
6847
|
-
totalPages,
|
|
6848
|
-
current,
|
|
6849
|
-
variant: "contained",
|
|
6850
|
-
handleChangePage,
|
|
6851
|
-
itemList,
|
|
6852
|
-
firstEllipseList,
|
|
6853
|
-
secondEllipseList
|
|
6854
|
-
}
|
|
6855
|
-
);
|
|
6856
|
-
} else {
|
|
6857
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6858
|
-
WavelengthVariationPagination_default,
|
|
6859
|
-
{
|
|
6860
|
-
id,
|
|
6861
|
-
totalPages,
|
|
6862
|
-
current,
|
|
6863
|
-
handleChangePage,
|
|
6864
|
-
itemList,
|
|
6865
|
-
firstEllipseList,
|
|
6866
|
-
secondEllipseList
|
|
6867
|
-
}
|
|
6868
|
-
);
|
|
6869
|
-
}
|
|
6870
|
-
}
|
|
6871
|
-
WavelengthDefaultPagination.displayName = "WavelengthDefaultPagination";
|
|
6872
|
-
var WavelengthDefaultPagination_default = WavelengthDefaultPagination;
|
|
7002
|
+
SliderCardCarousel.displayName = "SliderCardCarousel";
|
|
6873
7003
|
|
|
6874
7004
|
// src/components/TextField/WavelengthInput.tsx
|
|
6875
7005
|
|
|
@@ -6914,7 +7044,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6914
7044
|
const internalRef = _react.useRef.call(void 0, null);
|
|
6915
7045
|
_react.useImperativeHandle.call(void 0, ref, () => ({
|
|
6916
7046
|
...internalRef.current,
|
|
6917
|
-
validate: () => _optionalChain([internalRef, 'access',
|
|
7047
|
+
validate: () => _optionalChain([internalRef, 'access', _43 => _43.current, 'optionalAccess', _44 => _44.validate, 'optionalCall', _45 => _45(true)])
|
|
6918
7048
|
}));
|
|
6919
7049
|
_react.useEffect.call(void 0, () => {
|
|
6920
7050
|
const el = internalRef.current;
|
|
@@ -6991,7 +7121,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
6991
7121
|
const el = internalRef.current;
|
|
6992
7122
|
if (!el || !onBlurCallback) return;
|
|
6993
7123
|
const handler = (e) => {
|
|
6994
|
-
const input = _optionalChain([el, 'access',
|
|
7124
|
+
const input = _optionalChain([el, 'access', _46 => _46.shadowRoot, 'optionalAccess', _47 => _47.querySelector, 'call', _48 => _48("input")]);
|
|
6995
7125
|
if (input) {
|
|
6996
7126
|
onBlurCallback();
|
|
6997
7127
|
}
|
|
@@ -7003,7 +7133,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
|
|
|
7003
7133
|
const el = internalRef.current;
|
|
7004
7134
|
if (!el || !onChange) return;
|
|
7005
7135
|
const handler = (e) => {
|
|
7006
|
-
const input = _optionalChain([el, 'access',
|
|
7136
|
+
const input = _optionalChain([el, 'access', _49 => _49.shadowRoot, 'optionalAccess', _50 => _50.querySelector, 'call', _51 => _51("input")]);
|
|
7007
7137
|
if (input) {
|
|
7008
7138
|
const synthetic = {
|
|
7009
7139
|
...e,
|
|
@@ -7206,7 +7336,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7206
7336
|
const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
|
|
7207
7337
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
7208
7338
|
const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
|
|
7209
|
-
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access',
|
|
7339
|
+
const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _52 => _52[0], 'optionalAccess', _53 => _53.key]) || "");
|
|
7210
7340
|
const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
|
|
7211
7341
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7212
7342
|
const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
|
|
@@ -7360,7 +7490,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
7360
7490
|
] }, index)
|
|
7361
7491
|
] }, `headCell-${index}`);
|
|
7362
7492
|
});
|
|
7363
|
-
const rows = !_optionalChain([currentPageData, 'optionalAccess',
|
|
7493
|
+
const rows = !_optionalChain([currentPageData, 'optionalAccess', _54 => _54.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', _55 => _55.map, 'call', _56 => _56((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
|
|
7364
7494
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7365
7495
|
StyledInput,
|
|
7366
7496
|
{
|
|
@@ -7606,7 +7736,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7606
7736
|
}
|
|
7607
7737
|
if (sortSubOrder) {
|
|
7608
7738
|
result.map(
|
|
7609
|
-
(item) => _optionalChain([item, 'access',
|
|
7739
|
+
(item) => _optionalChain([item, 'access', _57 => _57.Details, 'optionalAccess', _58 => _58.fileObjects, 'access', _59 => _59.sort, 'call', _60 => _60((c, d) => {
|
|
7610
7740
|
const valueC = c[sortSubKey];
|
|
7611
7741
|
const valueD = d[sortSubKey];
|
|
7612
7742
|
if (typeof valueC === "string" && typeof valueD === "string") {
|
|
@@ -7667,24 +7797,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
7667
7797
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
7668
7798
|
});
|
|
7669
7799
|
const subDataRows = (itemId) => {
|
|
7670
|
-
return processedRowData.filter((item) => _optionalChain([item, 'access',
|
|
7800
|
+
return processedRowData.filter((item) => _optionalChain([item, 'access', _61 => _61.Details, 'optionalAccess', _62 => _62.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _63 => _63.Details, 'optionalAccess', _64 => _64.fileObjects, 'access', _65 => _65.map, 'call', _66 => _66((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
|
|
7671
7801
|
/* @__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,
|
|
7672
7802
|
"path",
|
|
7673
7803
|
{
|
|
7674
7804
|
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",
|
|
7675
7805
|
fill: "#1C1B1F"
|
|
7676
7806
|
}
|
|
7677
|
-
) }) }) }, `td-${_optionalChain([item, 'access',
|
|
7807
|
+
) }) }) }, `td-${_optionalChain([item, 'access', _67 => _67.Details, 'optionalAccess', _68 => _68.relationId])}-${fileItem.id}`),
|
|
7678
7808
|
SubDataColumns.map((column) => {
|
|
7679
7809
|
const columnKey = trimBeforePeriod2(column.key);
|
|
7680
7810
|
const value = fileItem[columnKey];
|
|
7681
7811
|
if (value !== void 0) {
|
|
7682
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access',
|
|
7812
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _69 => _69.Details, 'optionalAccess', _70 => _70.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _71 => _71.Details, 'optionalAccess', _72 => _72.relationId])}-${fileItem.id}-${index}-${column.title}`);
|
|
7683
7813
|
}
|
|
7684
7814
|
})
|
|
7685
|
-
] }, `${item}-${_optionalChain([item, 'access',
|
|
7815
|
+
] }, `${item}-${_optionalChain([item, 'access', _73 => _73.Details, 'optionalAccess', _74 => _74.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _75 => _75.Details, 'optionalAccess', _76 => _76.relationId])}`));
|
|
7686
7816
|
};
|
|
7687
|
-
const dataRows = _optionalChain([processedRowData, 'optionalAccess',
|
|
7817
|
+
const dataRows = _optionalChain([processedRowData, 'optionalAccess', _77 => _77.map, 'call', _78 => _78((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
|
|
7688
7818
|
/* @__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}`)) }),
|
|
7689
7819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
|
|
7690
7820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
@@ -7738,7 +7868,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
7738
7868
|
root = _client.createRoot.call(void 0, container);
|
|
7739
7869
|
reactDropdownRoots.current.set(container, root);
|
|
7740
7870
|
}
|
|
7741
|
-
const item = _optionalChain([data, 'optionalAccess',
|
|
7871
|
+
const item = _optionalChain([data, 'optionalAccess', _79 => _79.find, 'call', _80 => _80((item2) => String(item2.id) === String(itemId))]);
|
|
7742
7872
|
if (item && item.dropdown && root) {
|
|
7743
7873
|
root.render(item.dropdown);
|
|
7744
7874
|
}
|
|
@@ -7865,9 +7995,9 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7865
7995
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
7866
7996
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
|
|
7867
7997
|
});
|
|
7868
|
-
const subDataRows = !_optionalChain([data, 'optionalAccess',
|
|
7998
|
+
const subDataRows = !_optionalChain([data, 'optionalAccess', _81 => _81.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) => {
|
|
7869
7999
|
const columnKey = trimBeforePeriod(column.key);
|
|
7870
|
-
const value = _optionalChain([item, 'access',
|
|
8000
|
+
const value = _optionalChain([item, 'access', _82 => _82.Details, 'optionalAccess', _83 => _83[columnKey]]);
|
|
7871
8001
|
console.log("value: ", value);
|
|
7872
8002
|
if (value !== void 0) {
|
|
7873
8003
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
@@ -7877,7 +8007,7 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
7877
8007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
|
|
7878
8008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
|
|
7879
8009
|
] });
|
|
7880
|
-
const rows = !_optionalChain([data, 'optionalAccess',
|
|
8010
|
+
const rows = !_optionalChain([data, 'optionalAccess', _84 => _84.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', _85 => _85.map, 'call', _86 => _86((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7881
8011
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
|
|
7882
8012
|
/* @__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" }) }),
|
|
7883
8013
|
HeadColumns.map((column, index2) => {
|
|
@@ -8543,7 +8673,8 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8543
8673
|
|
|
8544
8674
|
|
|
8545
8675
|
|
|
8546
|
-
|
|
8676
|
+
|
|
8677
|
+
exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.DefaultCarousel = DefaultCarousel; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.SliderCardCarousel = SliderCardCarousel; exports.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDefaultPagination = WavelengthDefaultPagination; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFileDropZone = WavelengthFileDropZone; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMenu = WavelengthMenu; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthNotificationPanel = WavelengthNotificationPanel; exports.WavelengthPagination = WavelengthPagination; exports.WavelengthPaginationElement = _webcomponents.WavelengthPagination; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; exports.WavelengthProgressBarElement = _webcomponents.WavelengthProgressBar; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSearchTextField = WavelengthSearchTextField; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
|
|
8547
8678
|
/*! Bundled license information:
|
|
8548
8679
|
|
|
8549
8680
|
react-is/cjs/react-is.production.min.js:
|