@wavelengthusaf/components 5.0.2 → 5.0.5

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.
@@ -92,6 +92,423 @@ WavelengthButton.displayName = "WavelengthButton";
92
92
  // src/index.ts
93
93
 
94
94
 
95
+ // src/components/buttons/WavelengthButton/WavelengthStyledButton.tsx
96
+ var _styledcomponents = require('styled-components'); var _styledcomponents2 = _interopRequireDefault(_styledcomponents);
97
+
98
+ var ButtonPresets = {
99
+ default: {
100
+ width: "130px",
101
+ height: "45px",
102
+ display: "flex",
103
+ flexDirection: "row",
104
+ alignItems: "center",
105
+ justifyContent: "center",
106
+ borderRadius: "8px",
107
+ border: "none",
108
+ fontSize: "",
109
+ fontWeight: 600,
110
+ color: "",
111
+ margin: "",
112
+ padding: "",
113
+ backgroundColor: "",
114
+ hover: {
115
+ backgroundColor: "",
116
+ color: "",
117
+ cursor: "pointer",
118
+ width: "",
119
+ height: "",
120
+ border: "",
121
+ fontSize: ""
122
+ },
123
+ disabled: {
124
+ cursor: "",
125
+ opacity: ""
126
+ },
127
+ active: {
128
+ backgroundColor: "",
129
+ boxShadow: "",
130
+ transition: "",
131
+ border: ""
132
+ }
133
+ },
134
+ ewdms_primary: {
135
+ width: "130px",
136
+ height: "45px",
137
+ display: "flex",
138
+ flexDirection: "row",
139
+ alignItems: "center",
140
+ justifyContent: "center",
141
+ borderRadius: "8px",
142
+ border: "none",
143
+ fontSize: "16px",
144
+ fontWeight: 600,
145
+ color: "white",
146
+ margin: "",
147
+ padding: "12px 32px",
148
+ backgroundColor: "rgba(26, 128, 131, 1)",
149
+ hover: {
150
+ backgroundColor: "rgba(38, 186, 190, 1)",
151
+ color: "rgba(247, 247, 249, 1)",
152
+ cursor: "pointer",
153
+ width: "",
154
+ height: "",
155
+ border: "",
156
+ fontSize: ""
157
+ },
158
+ disabled: {
159
+ cursor: "not-allowed",
160
+ opacity: "0.4"
161
+ },
162
+ active: {
163
+ backgroundColor: "#67a8aa",
164
+ boxShadow: "",
165
+ transition: "background-color 0.2s ease-in",
166
+ border: ""
167
+ }
168
+ },
169
+ ewdms_secondary: {
170
+ width: "130px",
171
+ height: "45px",
172
+ display: "flex",
173
+ flexDirection: "row",
174
+ alignItems: "center",
175
+ justifyContent: "center",
176
+ borderRadius: "8px",
177
+ border: "1px solid rgba(26, 128, 131, 1)",
178
+ fontSize: "16px",
179
+ fontWeight: 600,
180
+ margin: "",
181
+ color: "rgba(26, 128, 131, 1)",
182
+ padding: "12px 32px",
183
+ backgroundColor: "transparent",
184
+ hover: {
185
+ backgroundColor: "rgba(26, 128, 131, 0.1)",
186
+ color: "rgba(26, 128, 131, 1)",
187
+ cursor: "pointer",
188
+ width: "",
189
+ height: "",
190
+ border: "",
191
+ fontSize: ""
192
+ },
193
+ disabled: {
194
+ cursor: "not-allowed",
195
+ opacity: "0.4"
196
+ },
197
+ active: {
198
+ backgroundColor: "#bad7da",
199
+ boxShadow: "",
200
+ transition: "background-color 0.2s ease-in",
201
+ border: ""
202
+ }
203
+ },
204
+ ewdms_tertiary: {
205
+ width: "130px",
206
+ height: "45px",
207
+ display: "flex",
208
+ margin: "",
209
+ flexDirection: "row",
210
+ alignItems: "center",
211
+ justifyContent: "center",
212
+ borderRadius: "8px",
213
+ border: "none",
214
+ fontSize: "16px",
215
+ fontWeight: 600,
216
+ color: "rgba(26, 128, 131, 1)",
217
+ padding: "12px 32px",
218
+ backgroundColor: "transparent",
219
+ hover: {
220
+ backgroundColor: "rgba(26, 128, 131, 0.1)",
221
+ color: "rgba(26, 128, 131, 1)",
222
+ cursor: "pointer",
223
+ width: "",
224
+ height: "",
225
+ border: "",
226
+ fontSize: ""
227
+ },
228
+ disabled: {
229
+ cursor: "not-allowed",
230
+ opacity: "0.4"
231
+ },
232
+ active: {
233
+ backgroundColor: "#445C71",
234
+ boxShadow: "",
235
+ transition: "background-color 0.2s ease-in",
236
+ border: ""
237
+ }
238
+ },
239
+ channel_one_launch: {
240
+ width: "62px",
241
+ height: "24px",
242
+ display: "flex",
243
+ margin: "",
244
+ flexDirection: "row",
245
+ alignItems: "center",
246
+ justifyContent: "center",
247
+ borderRadius: "20px",
248
+ border: "none",
249
+ fontSize: "10px",
250
+ fontWeight: 700,
251
+ color: "white",
252
+ padding: "0px 0px",
253
+ backgroundColor: "#24A818",
254
+ hover: {
255
+ height: "28px",
256
+ border: "0.5px solid white",
257
+ fontSize: "12px",
258
+ width: "72px",
259
+ backgroundColor: "",
260
+ color: "",
261
+ cursor: "pointer"
262
+ },
263
+ disabled: {
264
+ cursor: "not-allowed",
265
+ opacity: "0.4"
266
+ },
267
+ active: {
268
+ backgroundColor: "#6FC36E",
269
+ boxShadow: "",
270
+ transition: "background-color 0.2s ease-in",
271
+ border: ""
272
+ }
273
+ },
274
+ channel_one_request: {
275
+ width: "100px",
276
+ height: "24px",
277
+ display: "flex",
278
+ flexDirection: "row",
279
+ alignItems: "center",
280
+ margin: "",
281
+ justifyContent: "center",
282
+ borderRadius: "20px",
283
+ border: "none",
284
+ fontSize: "10px",
285
+ fontWeight: 700,
286
+ color: "white",
287
+ padding: "0px 0px",
288
+ backgroundColor: "#1D31E4",
289
+ hover: {
290
+ height: "28px",
291
+ border: "0.5px solid white",
292
+ fontSize: "12px",
293
+ width: "110px",
294
+ backgroundColor: "",
295
+ color: "",
296
+ cursor: "pointer"
297
+ },
298
+ disabled: {
299
+ cursor: "not-allowed",
300
+ opacity: "0.4"
301
+ },
302
+ active: {
303
+ backgroundColor: "#5D78ED",
304
+ boxShadow: "",
305
+ transition: "background-color 0.2s ease-in",
306
+ border: ""
307
+ }
308
+ },
309
+ channel_one_pending: {
310
+ width: "62px",
311
+ height: "24px",
312
+ display: "flex",
313
+ flexDirection: "row",
314
+ alignItems: "center",
315
+ justifyContent: "center",
316
+ borderRadius: "20px",
317
+ border: "none",
318
+ fontSize: "10px",
319
+ fontWeight: 700,
320
+ color: "white",
321
+ padding: "0px 0px",
322
+ margin: "",
323
+ backgroundColor: "#F88805",
324
+ hover: {
325
+ height: "28px",
326
+ border: "0.5px solid white",
327
+ fontSize: "12px",
328
+ width: "72px",
329
+ backgroundColor: "",
330
+ color: "",
331
+ cursor: "pointer"
332
+ },
333
+ disabled: {
334
+ cursor: "not-allowed",
335
+ opacity: "0.4"
336
+ },
337
+ active: {
338
+ backgroundColor: "#FAAD68",
339
+ boxShadow: "",
340
+ transition: "background-color 0.2s ease-in",
341
+ border: ""
342
+ }
343
+ },
344
+ channel_one_disabled: {
345
+ width: "100px",
346
+ height: "24px",
347
+ display: "flex",
348
+ margin: "",
349
+ flexDirection: "row",
350
+ alignItems: "center",
351
+ justifyContent: "center",
352
+ borderRadius: "20px",
353
+ border: "none",
354
+ fontSize: "10px",
355
+ fontWeight: 700,
356
+ color: "white",
357
+ padding: "0px 0px",
358
+ backgroundColor: "#9E9E9E",
359
+ hover: {
360
+ height: "",
361
+ border: "",
362
+ fontSize: "",
363
+ width: "",
364
+ backgroundColor: "",
365
+ color: "",
366
+ cursor: ""
367
+ },
368
+ disabled: {
369
+ cursor: "not-allowed",
370
+ opacity: "0.4"
371
+ },
372
+ active: {
373
+ backgroundColor: "",
374
+ boxShadow: "",
375
+ transition: "",
376
+ border: ""
377
+ }
378
+ },
379
+ channel_one_transparent: {
380
+ width: "70px",
381
+ height: "25px",
382
+ display: "flex",
383
+ flexDirection: "row",
384
+ alignItems: "center",
385
+ margin: "",
386
+ justifyContent: "center",
387
+ borderRadius: "6px",
388
+ border: "1px solid white",
389
+ fontSize: "10px",
390
+ fontWeight: 500,
391
+ color: "white",
392
+ padding: "0px !important",
393
+ backgroundColor: "transparent",
394
+ hover: {
395
+ height: "",
396
+ border: "",
397
+ fontSize: "",
398
+ width: "",
399
+ backgroundColor: "",
400
+ color: "",
401
+ cursor: "pointer"
402
+ },
403
+ disabled: {
404
+ cursor: "",
405
+ opacity: ""
406
+ },
407
+ active: {
408
+ backgroundColor: "rgba(255, 255, 255, 0.22)",
409
+ boxShadow: "",
410
+ transition: "background-color 0.2s ease-in",
411
+ border: ""
412
+ }
413
+ },
414
+ brewery: {
415
+ width: "138px",
416
+ height: "44px",
417
+ display: "flex",
418
+ flexDirection: "row",
419
+ alignItems: "center",
420
+ justifyContent: "center",
421
+ borderRadius: "6px",
422
+ border: "none",
423
+ fontSize: "16px",
424
+ margin: "",
425
+ fontWeight: 500,
426
+ color: "white",
427
+ padding: "12px 16px",
428
+ backgroundColor: "#D16A2F",
429
+ hover: {
430
+ height: "",
431
+ border: "",
432
+ fontSize: "",
433
+ width: "",
434
+ backgroundColor: "#D16A2F",
435
+ color: "",
436
+ cursor: "pointer"
437
+ },
438
+ disabled: {
439
+ cursor: "not-allowed",
440
+ opacity: "0.4"
441
+ },
442
+ active: {
443
+ backgroundColor: "",
444
+ boxShadow: "0 0 5px black",
445
+ transition: "",
446
+ border: ""
447
+ }
448
+ }
449
+ };
450
+ var Button = _styledcomponents2.default.button`
451
+ ${({ type }) => {
452
+ const preset = ButtonPresets[type];
453
+ return `
454
+ width: ${preset.width};
455
+ height: ${preset.height};
456
+ display: ${preset.display};
457
+ flex-direction: ${preset.flexDirection};
458
+ align-items: ${preset.alignItems};
459
+ justify-content: ${preset.justifyContent};
460
+ border-radius: ${preset.borderRadius};
461
+ border: ${preset.border};
462
+ font-size: ${preset.fontSize};
463
+ font-weight: ${preset.fontWeight};
464
+ color: ${preset.color};
465
+ padding: ${preset.padding};
466
+ background-color: ${preset.backgroundColor};
467
+ margin: ${preset.margin};
468
+
469
+ &:hover {
470
+ background-color: ${preset.hover.backgroundColor};
471
+ color: ${preset.hover.color};
472
+ cursor: ${preset.hover.cursor};
473
+ width:${preset.hover.width};
474
+ height:${preset.hover.height};
475
+ border:${preset.hover.border};
476
+ font-size:${preset.hover.fontSize};
477
+ }
478
+
479
+ &:disabled {
480
+ cursor: ${preset.disabled.cursor};
481
+ opacity: ${preset.disabled.opacity};
482
+ }
483
+ &:active {
484
+ background-color: ${preset.active.backgroundColor};
485
+ box-shadow: ${preset.active.boxShadow};
486
+ border: ${preset.active.border};
487
+ transition: ${preset.active.transition};
488
+ }
489
+
490
+ `;
491
+ }}
492
+
493
+ ${({ styles }) => styles && { ...styles }}
494
+ ${({ hoverstyles }) => hoverstyles && {
495
+ "&:hover": { ...hoverstyles }
496
+ }}
497
+ ${({ activestyles }) => activestyles && {
498
+ "&:active": { ...activestyles }
499
+ }}
500
+ ${({ disabledstyles }) => disabledstyles && {
501
+ "&:disabled": { ...disabledstyles }
502
+ }}
503
+ `;
504
+ function WavelengthStyledButton({ type = "default", styles, children, disabled = false, hoverstyles, icon, onClick, disabledstyles, activestyles, id, name }) {
505
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { type, styles, hoverstyles, disabledstyles, disabled, activestyles, onClick, children: [
506
+ icon,
507
+ children
508
+ ] });
509
+ }
510
+ WavelengthStyledButton.displayName = "WavelengthStyledButton";
511
+
95
512
  // src/themes/WavelengthAppTheme.tsx
96
513
 
97
514
  var WavelengthAppTheme = _react.createContext.call(void 0, {});
@@ -826,121 +1243,175 @@ var WavelengthNavBar = ({ items, bgColor, txtColor, hoverColor, height, padding,
826
1243
 
827
1244
 
828
1245
 
829
- var WavelengthFileDropZone = ({
830
- acceptedTypes,
831
- maxSize,
832
- multiple,
833
- dragText,
834
- iconSrc,
835
- onFilesSelected,
836
- hostDisplay,
837
- hostWidth,
838
- inputDisplay,
839
- borderWidth,
840
- borderStyle,
841
- borderColor,
842
- borderRadius,
843
- padding,
844
- textAlign,
845
- backgroundColor,
846
- cursor,
847
- transition,
848
- display,
849
- flexDirection,
850
- alignItems,
851
- gap,
852
- borderHoverColor,
853
- backgroundHoverColor,
854
- borderActiveColor,
855
- backgroundActiveColor,
856
- contentDisplay,
857
- contentFlexDirection,
858
- contentAlignItems,
859
- contentGap,
860
- textColor,
861
- fontFamily,
862
- fontStyle,
863
- fontSize,
864
- lineHeight,
865
- letterSpacing,
866
- iconSize,
867
- errorColor,
868
- errorFontFamily,
869
- errorFontSize,
870
- errorMarginTop,
871
- style,
872
- children,
873
- ...rest
874
- }) => {
875
- const ref = _react.useRef.call(void 0, null);
876
- _react.useEffect.call(void 0, () => {
877
- const el = ref.current;
878
- if (!el) return;
879
- if (acceptedTypes !== void 0) el.setAttribute("accepted-types", acceptedTypes);
880
- else el.removeAttribute("accepted-types");
881
- if (maxSize !== void 0) el.setAttribute("max-size", String(maxSize));
882
- else el.removeAttribute("max-size");
883
- if (dragText !== void 0) el.setAttribute("drag-text", dragText);
884
- else el.removeAttribute("drag-text");
885
- if (iconSrc !== void 0) el.setAttribute("icon-src", iconSrc);
886
- else el.removeAttribute("icon-src");
887
- if (multiple) el.setAttribute("multiple", "");
888
- else el.removeAttribute("multiple");
889
- const handleFilesSelected = (event) => {
890
- const customEvent = event;
891
- _optionalChain([onFilesSelected, 'optionalCall', _2 => _2(customEvent.detail.files)]);
892
- };
893
- el.addEventListener("files-selected", handleFilesSelected);
894
- return () => {
895
- el.removeEventListener("files-selected", handleFilesSelected);
896
- };
897
- }, [acceptedTypes, maxSize, multiple, dragText, iconSrc, onFilesSelected]);
898
- const mergedStyle = {
899
- ...style,
900
- "--hostDisplay": hostDisplay,
901
- "--hostWidth": hostWidth,
902
- "--inputDisplay": inputDisplay,
903
- "--borderWidth": borderWidth,
904
- "--borderStyle": borderStyle,
905
- "--borderColor": borderColor,
906
- "--borderRadius": borderRadius,
907
- "--padding": padding,
908
- "--textAlign": textAlign,
909
- "--backgroundColor": backgroundColor,
910
- "--cursor": cursor,
911
- "--transition": transition,
912
- "--display": display,
913
- "--flexDirection": flexDirection,
914
- "--alignItems": alignItems,
915
- "--gap": gap,
916
- "--borderHoverColor": borderHoverColor,
917
- "--backgroundHoverColor": backgroundHoverColor,
918
- "--borderActiveColor": borderActiveColor,
919
- "--backgroundActiveColor": backgroundActiveColor,
920
- "--contentDisplay": contentDisplay,
921
- "--contentFlexDirection": contentFlexDirection,
922
- "--contentAlignItems": contentAlignItems,
923
- "--contentGap": contentGap,
924
- "--textColor": textColor,
925
- "--fontFamily": fontFamily,
926
- "--fontStyle": fontStyle,
927
- "--fontSize": fontSize,
928
- "--lineHeight": lineHeight,
929
- "--letterSpacing": letterSpacing,
930
- "--iconSize": iconSize,
931
- "--errorColor": errorColor,
932
- "--errorFontFamily": errorFontFamily,
933
- "--errorFontSize": errorFontSize,
934
- "--errorMarginTop": errorMarginTop
935
- };
936
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-file-drop-zone", { ref, style: mergedStyle, ...rest, children });
1246
+ var setAttribute = (element, attribute, value) => {
1247
+ if (value === void 0 || value === null) {
1248
+ element.removeAttribute(attribute);
1249
+ return;
1250
+ }
1251
+ element.setAttribute(attribute, String(value));
937
1252
  };
1253
+ var WavelengthFileDropZone = _react.forwardRef.call(void 0,
1254
+ ({
1255
+ acceptedTypes,
1256
+ maxSize,
1257
+ multiple,
1258
+ dragText,
1259
+ iconSrc,
1260
+ width,
1261
+ onFilesSelected,
1262
+ hostDisplay,
1263
+ hostWidth,
1264
+ inputDisplay,
1265
+ borderWidth,
1266
+ borderStyle,
1267
+ borderColor,
1268
+ borderRadius,
1269
+ padding,
1270
+ textAlign,
1271
+ backgroundColor,
1272
+ cursor,
1273
+ transition,
1274
+ display,
1275
+ flexDirection,
1276
+ alignItems,
1277
+ gap,
1278
+ borderHoverColor,
1279
+ backgroundHoverColor,
1280
+ borderActiveColor,
1281
+ backgroundActiveColor,
1282
+ contentDisplay,
1283
+ contentFlexDirection,
1284
+ contentAlignItems,
1285
+ contentGap,
1286
+ textColor,
1287
+ fontFamily,
1288
+ fontStyle,
1289
+ fontSize,
1290
+ lineHeight,
1291
+ letterSpacing,
1292
+ iconSize,
1293
+ errorColor,
1294
+ errorFontFamily,
1295
+ errorFontSize,
1296
+ errorMarginTop,
1297
+ style,
1298
+ children,
1299
+ ...rest
1300
+ }, ref) => {
1301
+ const elementRef = _react.useRef.call(void 0, null);
1302
+ _react.useImperativeHandle.call(void 0, ref, () => elementRef.current);
1303
+ _react.useEffect.call(void 0, () => {
1304
+ const element = elementRef.current;
1305
+ if (!element) return;
1306
+ setAttribute(element, "accepted-types", acceptedTypes);
1307
+ setAttribute(element, "max-size", maxSize);
1308
+ setAttribute(element, "drag-text", dragText);
1309
+ setAttribute(element, "icon-src", iconSrc);
1310
+ if (multiple) {
1311
+ element.setAttribute("multiple", "");
1312
+ } else {
1313
+ element.removeAttribute("multiple");
1314
+ }
1315
+ }, [acceptedTypes, maxSize, multiple, dragText, iconSrc]);
1316
+ _react.useEffect.call(void 0, () => {
1317
+ const element = elementRef.current;
1318
+ if (!element || !onFilesSelected) return;
1319
+ const handleFilesSelected = (event) => {
1320
+ const customEvent = event;
1321
+ onFilesSelected(customEvent.detail.files);
1322
+ };
1323
+ element.addEventListener("files-selected", handleFilesSelected);
1324
+ return () => element.removeEventListener("files-selected", handleFilesSelected);
1325
+ }, [onFilesSelected]);
1326
+ const mergedStyle = _react.useMemo.call(void 0,
1327
+ () => ({
1328
+ ...style,
1329
+ "--hostDisplay": hostDisplay,
1330
+ "--hostWidth": _nullishCoalesce(hostWidth, () => ( width)),
1331
+ "--inputDisplay": inputDisplay,
1332
+ "--borderWidth": borderWidth,
1333
+ "--borderStyle": borderStyle,
1334
+ "--borderColor": borderColor,
1335
+ "--borderRadius": borderRadius,
1336
+ "--padding": padding,
1337
+ "--textAlign": textAlign,
1338
+ "--backgroundColor": backgroundColor,
1339
+ "--cursor": cursor,
1340
+ "--transition": transition,
1341
+ "--display": display,
1342
+ "--flexDirection": flexDirection,
1343
+ "--alignItems": alignItems,
1344
+ "--gap": gap,
1345
+ "--borderHoverColor": borderHoverColor,
1346
+ "--backgroundHoverColor": backgroundHoverColor,
1347
+ "--borderActiveColor": borderActiveColor,
1348
+ "--backgroundActiveColor": backgroundActiveColor,
1349
+ "--contentDisplay": contentDisplay,
1350
+ "--contentFlexDirection": contentFlexDirection,
1351
+ "--contentAlignItems": contentAlignItems,
1352
+ "--contentGap": contentGap,
1353
+ "--textColor": textColor,
1354
+ "--fontFamily": fontFamily,
1355
+ "--fontStyle": fontStyle,
1356
+ "--fontSize": fontSize,
1357
+ "--lineHeight": lineHeight,
1358
+ "--letterSpacing": letterSpacing,
1359
+ "--iconSize": iconSize,
1360
+ "--errorColor": errorColor,
1361
+ "--errorFontFamily": errorFontFamily,
1362
+ "--errorFontSize": errorFontSize,
1363
+ "--errorMarginTop": errorMarginTop
1364
+ }),
1365
+ [
1366
+ style,
1367
+ hostDisplay,
1368
+ hostWidth,
1369
+ width,
1370
+ inputDisplay,
1371
+ borderWidth,
1372
+ borderStyle,
1373
+ borderColor,
1374
+ borderRadius,
1375
+ padding,
1376
+ textAlign,
1377
+ backgroundColor,
1378
+ cursor,
1379
+ transition,
1380
+ display,
1381
+ flexDirection,
1382
+ alignItems,
1383
+ gap,
1384
+ borderHoverColor,
1385
+ backgroundHoverColor,
1386
+ borderActiveColor,
1387
+ backgroundActiveColor,
1388
+ contentDisplay,
1389
+ contentFlexDirection,
1390
+ contentAlignItems,
1391
+ contentGap,
1392
+ textColor,
1393
+ fontFamily,
1394
+ fontStyle,
1395
+ fontSize,
1396
+ lineHeight,
1397
+ letterSpacing,
1398
+ iconSize,
1399
+ errorColor,
1400
+ errorFontFamily,
1401
+ errorFontSize,
1402
+ errorMarginTop
1403
+ ]
1404
+ );
1405
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-file-drop-zone", { ref: elementRef, style: mergedStyle, ...rest, children });
1406
+ }
1407
+ );
1408
+ WavelengthFileDropZone.displayName = "WavelengthFileDropZone";
938
1409
 
939
- // src/components/SnackBar/WavelengthWebSnackbar.tsx
1410
+ // src/components/SnackBar/WavelengthSnackbar.tsx
940
1411
 
941
1412
 
942
1413
 
943
- var WavelengthWebSnackbar = ({
1414
+ var WavelengthSnackbar = ({
944
1415
  message,
945
1416
  duration,
946
1417
  backgroundColor,
@@ -1107,6 +1578,75 @@ function WavelengthPermissionAlert({
1107
1578
  }
1108
1579
  WavelengthPermissionAlert.displayName = "WavelengthPermissionAlert";
1109
1580
 
1581
+ // src/components/PageComponents/WavelengthDragAndDrop.tsx
1582
+
1583
+ function WavelengthDragAndDrop({
1584
+ width = "550px",
1585
+ height = "230px",
1586
+ onFilesSelected,
1587
+ border,
1588
+ textColor,
1589
+ fontSize = "12px",
1590
+ allowedFileMIME,
1591
+ allowedFileExtensions,
1592
+ backgroundColor = "transparent",
1593
+ dataTestId,
1594
+ id
1595
+ }) {
1596
+ const handleFileChange = (event) => {
1597
+ const selectedFiles = event.target.files;
1598
+ if (selectedFiles && selectedFiles.length > 0) {
1599
+ const newFiles = Array.from(selectedFiles);
1600
+ onFilesSelected(newFiles);
1601
+ }
1602
+ };
1603
+ const handleDrop = (event) => {
1604
+ event.preventDefault();
1605
+ const droppedFiles = event.dataTransfer.files;
1606
+ if (droppedFiles.length > 0) {
1607
+ const newFiles = Array.from(droppedFiles);
1608
+ const allowedTypes = allowedFileMIME ? allowedFileMIME : "*/*";
1609
+ const validFiles = newFiles.filter((file) => allowedTypes === "*/*" || allowedTypes.includes(file.type));
1610
+ if (validFiles.length > 0) {
1611
+ onFilesSelected(validFiles);
1612
+ } else {
1613
+ alert(`Invalid file type`);
1614
+ }
1615
+ }
1616
+ };
1617
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1618
+ "div",
1619
+ {
1620
+ id,
1621
+ "data-testid": dataTestId,
1622
+ style: {
1623
+ backgroundColor,
1624
+ border: border ? border : "1px dashed rgba(14, 178, 178, 1)",
1625
+ borderRadius: "8px",
1626
+ paddingTop: "10px",
1627
+ boxSizing: "border-box",
1628
+ width,
1629
+ height,
1630
+ cursor: "pointer",
1631
+ display: "flex",
1632
+ flexDirection: "column",
1633
+ justifyContent: "center",
1634
+ alignItems: "center",
1635
+ overflow: "scroll"
1636
+ },
1637
+ onDrop: handleDrop,
1638
+ onDragOver: (event) => event.preventDefault(),
1639
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { fontSize, color: textColor }, children: [
1640
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "file", hidden: true, multiple: true, id: "browse", onChange: handleFileChange, accept: allowedFileExtensions }),
1641
+ "Drag File here or",
1642
+ " ",
1643
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "browse", style: { textDecoration: "underline", cursor: "pointer" }, children: "select from files" })
1644
+ ] })
1645
+ }
1646
+ );
1647
+ }
1648
+ WavelengthDragAndDrop.displayName = "WavelengthDragAndDrop";
1649
+
1110
1650
  // src/components/PageComponents/WavelengthToolTip.tsx
1111
1651
 
1112
1652
 
@@ -1181,7 +1721,7 @@ var WavelengthBadge = ({
1181
1721
  updateAttribute("text-box-border-radius", textBoxBorderRadius);
1182
1722
  updateAttribute("text-box-hover-border-color", textBoxHoverBorderColor);
1183
1723
  updateAttribute("badge-font", badgeFont);
1184
- updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
1724
+ updateAttribute("badge-content", _optionalChain([badgeContent, 'optionalAccess', _2 => _2.toString, 'call', _3 => _3()]));
1185
1725
  updateAttribute("badge-size", badgeSize);
1186
1726
  }, [
1187
1727
  variant,
@@ -1276,7 +1816,7 @@ function useStableCallback(fn) {
1276
1816
  _react.useEffect.call(void 0, () => {
1277
1817
  fnRef.current = fn;
1278
1818
  }, [fn]);
1279
- return (...args) => _optionalChain([fnRef, 'access', _5 => _5.current, 'optionalCall', _6 => _6(...args)]);
1819
+ return (...args) => _optionalChain([fnRef, 'access', _4 => _4.current, 'optionalCall', _5 => _5(...args)]);
1280
1820
  }
1281
1821
  function WavelengthFormInner(props, ref) {
1282
1822
  const {
@@ -1316,7 +1856,7 @@ function WavelengthFormInner(props, ref) {
1316
1856
  if (!el) return;
1317
1857
  let finalSchema = schema;
1318
1858
  if (placeholders) {
1319
- const shape = _optionalChain([schema, 'optionalAccess', _7 => _7.shape]);
1859
+ const shape = _optionalChain([schema, 'optionalAccess', _6 => _6.shape]);
1320
1860
  if (shape) {
1321
1861
  const overrides = {};
1322
1862
  for (const [key, ph] of Object.entries(placeholders)) {
@@ -1349,15 +1889,15 @@ function WavelengthFormInner(props, ref) {
1349
1889
  if (!el) return;
1350
1890
  const handleChange = (e) => {
1351
1891
  const detail = e.detail;
1352
- _optionalChain([onChangeStable, 'optionalCall', _8 => _8(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _9 => _9.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _10 => _10.issues]), () => ( [])))]);
1892
+ _optionalChain([onChangeStable, 'optionalCall', _7 => _7(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _8 => _8.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _9 => _9.issues]), () => ( [])))]);
1353
1893
  };
1354
1894
  const handleValid = (e) => {
1355
1895
  const detail = e.detail;
1356
- _optionalChain([onValidStable, 'optionalCall', _11 => _11(_optionalChain([detail, 'optionalAccess', _12 => _12.value]), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _13 => _13.issues]), () => ( [])))]);
1896
+ _optionalChain([onValidStable, 'optionalCall', _10 => _10(_optionalChain([detail, 'optionalAccess', _11 => _11.value]), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _12 => _12.issues]), () => ( [])))]);
1357
1897
  };
1358
1898
  const handleInvalid = (e) => {
1359
1899
  const detail = e.detail;
1360
- _optionalChain([onInvalidStable, 'optionalCall', _14 => _14(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _15 => _15.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _16 => _16.issues]), () => ( [])))]);
1900
+ _optionalChain([onInvalidStable, 'optionalCall', _13 => _13(_nullishCoalesce(_optionalChain([detail, 'optionalAccess', _14 => _14.value]), () => ( {})), _nullishCoalesce(_optionalChain([detail, 'optionalAccess', _15 => _15.issues]), () => ( [])))]);
1361
1901
  };
1362
1902
  el.addEventListener("form-change", handleChange);
1363
1903
  el.addEventListener("form-valid", handleValid);
@@ -1379,8 +1919,8 @@ function WavelengthFormInner(props, ref) {
1379
1919
  _react.useImperativeHandle.call(void 0,
1380
1920
  ref,
1381
1921
  () => ({
1382
- validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access', _17 => _17.current, 'optionalAccess', _18 => _18.validate, 'optionalCall', _19 => _19()]), () => ( false)),
1383
- getValue: () => _optionalChain([hostRef, 'access', _20 => _20.current, 'optionalAccess', _21 => _21.value]),
1922
+ validate: () => _nullishCoalesce(_optionalChain([hostRef, 'access', _16 => _16.current, 'optionalAccess', _17 => _17.validate, 'optionalCall', _18 => _18()]), () => ( false)),
1923
+ getValue: () => _optionalChain([hostRef, 'access', _19 => _19.current, 'optionalAccess', _20 => _20.value]),
1384
1924
  setValue: (v) => {
1385
1925
  if (hostRef.current) hostRef.current.value = v;
1386
1926
  }
@@ -1505,7 +2045,7 @@ var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color
1505
2045
  el.spaced = spaced;
1506
2046
  }
1507
2047
  }, [numberOfPlanes, trailDir, opacity, color, gradient, spaced]);
1508
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-manyplanes", { ref, trailDir, opacity, color, gradient, spaced: _optionalChain([spaced, 'optionalAccess', _22 => _22.toString, 'call', _23 => _23()]), ...rest, children });
2048
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-manyplanes", { ref, trailDir, opacity, color, gradient, spaced: _optionalChain([spaced, 'optionalAccess', _21 => _21.toString, 'call', _22 => _22()]), ...rest, children });
1509
2049
  };
1510
2050
  WavelengthManyPlanes.displayName = "WavelengthManyPlanes";
1511
2051
 
@@ -1576,8 +2116,8 @@ function WavelengthConfirmationModal(props) {
1576
2116
  "font-family": props.fontFamily,
1577
2117
  "text-color": props.textColor,
1578
2118
  "background-color": props.backgroundColor,
1579
- "title-text": _optionalChain([props, 'access', _24 => _24.textObj, 'optionalAccess', _25 => _25.title]),
1580
- "dialog-text": _optionalChain([props, 'access', _26 => _26.textObj, 'optionalAccess', _27 => _27.dialog]),
2119
+ "title-text": _optionalChain([props, 'access', _23 => _23.textObj, 'optionalAccess', _24 => _24.title]),
2120
+ "dialog-text": _optionalChain([props, 'access', _25 => _25.textObj, 'optionalAccess', _26 => _26.dialog]),
1581
2121
  children: [
1582
2122
  props.cancelButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
1583
2123
  props.submitButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
@@ -1837,8 +2377,8 @@ var WavelengthDialog = ({
1837
2377
  _react.useEffect.call(void 0, () => {
1838
2378
  const el = ref.current;
1839
2379
  if (!el) return;
1840
- const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall', _28 => _28(e)]);
1841
- const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall', _29 => _29(e)]);
2380
+ const handleLeft = (e) => _optionalChain([onWlLeftBtnClick, 'optionalCall', _27 => _27(e)]);
2381
+ const handleRight = (e) => _optionalChain([onWlRightBtnClick, 'optionalCall', _28 => _28(e)]);
1842
2382
  el.addEventListener("wl-left-btn-click", handleLeft);
1843
2383
  el.addEventListener("wl-right-btn-click", handleRight);
1844
2384
  return () => {
@@ -1936,8 +2476,8 @@ var WavelengthPagination = ({
1936
2476
  syncAttribute("active-text-color", activeTextColor || "");
1937
2477
  syncAttribute("background-color", backgroundColor || "");
1938
2478
  syncAttribute("disabled-color", disabledColor || "");
1939
- syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _30 => _30.toString, 'call', _31 => _31()]) || "");
1940
- syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _32 => _32.toString, 'call', _33 => _33()]) || "");
2479
+ syncAttribute("total-pages", _optionalChain([totalPages, 'optionalAccess', _29 => _29.toString, 'call', _30 => _30()]) || "");
2480
+ syncAttribute("current-page", _optionalChain([currentPage, 'optionalAccess', _31 => _31.toString, 'call', _32 => _32()]) || "");
1941
2481
  const handlePageChange = (e) => {
1942
2482
  if (onPageChange) {
1943
2483
  onPageChange(e.detail.page);
@@ -2033,7 +2573,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
2033
2573
  const internalRef = _react.useRef.call(void 0, null);
2034
2574
  _react.useImperativeHandle.call(void 0, ref, () => ({
2035
2575
  ...internalRef.current,
2036
- validate: () => _optionalChain([internalRef, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.validate, 'optionalCall', _36 => _36(true)])
2576
+ validate: () => _optionalChain([internalRef, 'access', _33 => _33.current, 'optionalAccess', _34 => _34.validate, 'optionalCall', _35 => _35(true)])
2037
2577
  }));
2038
2578
  _react.useEffect.call(void 0, () => {
2039
2579
  const el = internalRef.current;
@@ -2112,7 +2652,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
2112
2652
  const el = internalRef.current;
2113
2653
  if (!el || !onBlurCallback) return;
2114
2654
  const handler = (e) => {
2115
- const input = _optionalChain([el, 'access', _37 => _37.shadowRoot, 'optionalAccess', _38 => _38.querySelector, 'call', _39 => _39("input, textarea")]);
2655
+ const input = _optionalChain([el, 'access', _36 => _36.shadowRoot, 'optionalAccess', _37 => _37.querySelector, 'call', _38 => _38("input, textarea")]);
2116
2656
  if (input) {
2117
2657
  onBlurCallback();
2118
2658
  }
@@ -2124,7 +2664,7 @@ var WavelengthInput = _react.forwardRef.call(void 0,
2124
2664
  const el = internalRef.current;
2125
2665
  if (!el || !onChange) return;
2126
2666
  const handler = (e) => {
2127
- const input = _optionalChain([el, 'access', _40 => _40.shadowRoot, 'optionalAccess', _41 => _41.querySelector, 'call', _42 => _42("input, textarea")]);
2667
+ const input = _optionalChain([el, 'access', _39 => _39.shadowRoot, 'optionalAccess', _40 => _40.querySelector, 'call', _41 => _41("input, textarea")]);
2128
2668
  if (input) {
2129
2669
  const synthetic = {
2130
2670
  ...e,
@@ -2151,7 +2691,7 @@ WavelengthInput.displayName = "WavelengthInput";
2151
2691
 
2152
2692
  // src/components/DataTable/WavelengthDataTable.tsx
2153
2693
 
2154
- var _styledcomponents = require('styled-components'); var _styledcomponents2 = _interopRequireDefault(_styledcomponents);
2694
+
2155
2695
 
2156
2696
  var ModalInputDiv = _styledcomponents2.default.div`
2157
2697
  display: flex;
@@ -2327,7 +2867,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
2327
2867
  const [noRowsOpen, setNoRowsOpen] = _react.useState.call(void 0, false);
2328
2868
  const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
2329
2869
  const [searchItem, setSearchItem] = _react.useState.call(void 0, "");
2330
- const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _43 => _43[0], 'optionalAccess', _44 => _44.key]) || "");
2870
+ const [selectedValue, setSelectedValue] = _react.useState.call(void 0, _optionalChain([columns, 'access', _42 => _42[0], 'optionalAccess', _43 => _43.key]) || "");
2331
2871
  const [currentPage, setCurrentPage] = _react.useState.call(void 0, 1);
2332
2872
  const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
2333
2873
  const [editingMenuKey, setEditingMenuKey] = _react.useState.call(void 0, null);
@@ -2481,7 +3021,7 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
2481
3021
  ] }, index)
2482
3022
  ] }, `headCell-${index}`);
2483
3023
  });
2484
- const rows = !_optionalChain([currentPageData, 'optionalAccess', _45 => _45.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', _46 => _46.map, 'call', _47 => _47((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
3024
+ const rows = !_optionalChain([currentPageData, 'optionalAccess', _44 => _44.length]) || noRowsOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : _optionalChain([currentPageData, 'optionalAccess', _45 => _45.map, 'call', _46 => _46((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: columns.map((column, index2) => {
2485
3025
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2486
3026
  StyledInput,
2487
3027
  {
@@ -2757,7 +3297,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
2757
3297
  }
2758
3298
  if (sortSubOrder) {
2759
3299
  result.map(
2760
- (item) => _optionalChain([item, 'access', _48 => _48.Details, 'optionalAccess', _49 => _49.fileObjects, 'access', _50 => _50.sort, 'call', _51 => _51((c, d) => {
3300
+ (item) => _optionalChain([item, 'access', _47 => _47.Details, 'optionalAccess', _48 => _48.fileObjects, 'access', _49 => _49.sort, 'call', _50 => _50((c, d) => {
2761
3301
  const valueC = c[sortSubKey];
2762
3302
  const valueD = d[sortSubKey];
2763
3303
  if (typeof valueC === "string" && typeof valueD === "string") {
@@ -2818,24 +3358,24 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
2818
3358
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
2819
3359
  });
2820
3360
  const subDataRows = (itemId) => {
2821
- return processedRowData.filter((item) => _optionalChain([item, 'access', _52 => _52.Details, 'optionalAccess', _53 => _53.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _54 => _54.Details, 'optionalAccess', _55 => _55.fileObjects, 'access', _56 => _56.map, 'call', _57 => _57((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
3361
+ return processedRowData.filter((item) => _optionalChain([item, 'access', _51 => _51.Details, 'optionalAccess', _52 => _52.relationId]) === itemId).map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: _optionalChain([item, 'access', _53 => _53.Details, 'optionalAccess', _54 => _54.fileObjects, 'access', _55 => _55.map, 'call', _56 => _56((fileItem, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SubDataTableBodyRowContainer, { children: [
2822
3362
  /* @__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,
2823
3363
  "path",
2824
3364
  {
2825
3365
  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",
2826
3366
  fill: "#1C1B1F"
2827
3367
  }
2828
- ) }) }) }, `td-${_optionalChain([item, 'access', _58 => _58.Details, 'optionalAccess', _59 => _59.relationId])}-${fileItem.id}`),
3368
+ ) }) }) }, `td-${_optionalChain([item, 'access', _57 => _57.Details, 'optionalAccess', _58 => _58.relationId])}-${fileItem.id}`),
2829
3369
  SubDataColumns.map((column) => {
2830
3370
  const columnKey = trimBeforePeriod2(column.key);
2831
3371
  const value = fileItem[columnKey];
2832
3372
  if (value !== void 0) {
2833
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _60 => _60.Details, 'optionalAccess', _61 => _61.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _62 => _62.Details, 'optionalAccess', _63 => _63.relationId])}-${fileItem.id}-${index}-${column.title}`);
3373
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SubDataTableCell, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }, `span-${_optionalChain([item, 'access', _59 => _59.Details, 'optionalAccess', _60 => _60.relationId])}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${_optionalChain([item, 'access', _61 => _61.Details, 'optionalAccess', _62 => _62.relationId])}-${fileItem.id}-${index}-${column.title}`);
2834
3374
  }
2835
3375
  })
2836
- ] }, `${item}-${_optionalChain([item, 'access', _64 => _64.Details, 'optionalAccess', _65 => _65.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _66 => _66.Details, 'optionalAccess', _67 => _67.relationId])}`));
3376
+ ] }, `${item}-${_optionalChain([item, 'access', _63 => _63.Details, 'optionalAccess', _64 => _64.relationId])}-${fileItem.id}-${index}`))]) }, `SDR-${item.id}-${_optionalChain([item, 'access', _65 => _65.Details, 'optionalAccess', _66 => _66.relationId])}`));
2837
3377
  };
2838
- const dataRows = _optionalChain([processedRowData, 'optionalAccess', _68 => _68.map, 'call', _69 => _69((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
3378
+ const dataRows = _optionalChain([processedRowData, 'optionalAccess', _67 => _67.map, 'call', _68 => _68((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, BodyRowContainer, { children: [
2839
3379
  /* @__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}`)) }),
2840
3380
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ButtonStylingRow, { children: [
2841
3381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
@@ -2929,8 +3469,8 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
2929
3469
  root = _client.createRoot.call(void 0, container);
2930
3470
  dropdownRoots.current.set(container, root);
2931
3471
  }
2932
- const item = _optionalChain([data, 'optionalAccess', _70 => _70.find, 'call', _71 => _71((i) => String(i.id) === String(itemId))]);
2933
- if (_optionalChain([item, 'optionalAccess', _72 => _72.dropdown]) && root) {
3472
+ const item = _optionalChain([data, 'optionalAccess', _69 => _69.find, 'call', _70 => _70((i) => String(i.id) === String(itemId))]);
3473
+ if (_optionalChain([item, 'optionalAccess', _71 => _71.dropdown]) && root) {
2934
3474
  root.render(item.dropdown);
2935
3475
  }
2936
3476
  };
@@ -3062,9 +3602,9 @@ var NestedDataTable = ({ data, columns, id }) => {
3062
3602
  const SubDataHeaders = SubDataColumns.map((column, index) => {
3063
3603
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, `SubHeadCell-${index}`);
3064
3604
  });
3065
- const subDataRows = !_optionalChain([data, 'optionalAccess', _73 => _73.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) => {
3605
+ const subDataRows = !_optionalChain([data, 'optionalAccess', _72 => _72.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) => {
3066
3606
  const columnKey = trimBeforePeriod(column.key);
3067
- const value = _optionalChain([item, 'access', _74 => _74.Details, 'optionalAccess', _75 => _75[columnKey]]);
3607
+ const value = _optionalChain([item, 'access', _73 => _73.Details, 'optionalAccess', _74 => _74[columnKey]]);
3068
3608
  console.log("value: ", value);
3069
3609
  if (value !== void 0) {
3070
3610
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: value }) }, `Span-${item.id}-${colIndex}`);
@@ -3074,7 +3614,7 @@ var NestedDataTable = ({ data, columns, id }) => {
3074
3614
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { children: SubDataHeaders }) }),
3075
3615
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: subDataRows })
3076
3616
  ] });
3077
- const rows = !_optionalChain([data, 'optionalAccess', _76 => _76.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', _77 => _77.map, 'call', _78 => _78((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3617
+ const rows = !_optionalChain([data, 'optionalAccess', _75 => _75.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', _76 => _76.map, 'call', _77 => _77((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3078
3618
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, PrimaryTrRows, { $index: index, children: [
3079
3619
  /* @__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" }) }),
3080
3620
  HeadColumns.map((column, index2) => {
@@ -3604,9 +4144,6 @@ var WavelengthNotificationPanel = ({
3604
4144
  _react.useEffect.call(void 0, () => {
3605
4145
  const el = ref.current;
3606
4146
  if (!el) return;
3607
- if (typeof rest.onSignOut === "function") {
3608
- el.onSignOut = rest.onSignOut;
3609
- }
3610
4147
  if (username !== void 0) {
3611
4148
  el.username = username;
3612
4149
  }
@@ -3671,10 +4208,10 @@ var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children
3671
4208
  if (!el) return;
3672
4209
  function verifyAttribute(attribute, value) {
3673
4210
  if (value === void 0 || value === null) {
3674
- _optionalChain([el, 'optionalAccess', _79 => _79.removeAttribute, 'call', _80 => _80(attribute)]);
4211
+ _optionalChain([el, 'optionalAccess', _78 => _78.removeAttribute, 'call', _79 => _79(attribute)]);
3675
4212
  return;
3676
4213
  }
3677
- _optionalChain([el, 'optionalAccess', _81 => _81.setAttribute, 'call', _82 => _82(attribute, value)]);
4214
+ _optionalChain([el, 'optionalAccess', _80 => _80.setAttribute, 'call', _81 => _81(attribute, value)]);
3678
4215
  }
3679
4216
  verifyAttribute("label", label);
3680
4217
  verifyAttribute("helper-text", helperText);
@@ -3742,5 +4279,7 @@ WavelengthCheckboxList.displayName = "WavelengthCheckboxList";
3742
4279
 
3743
4280
 
3744
4281
 
3745
- exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthBadge = WavelengthBadge; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCard = WavelengthCard; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCheckboxList = WavelengthCheckboxList; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataGrid = WavelengthDataGrid; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDialog = WavelengthDialog; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDropZone = WavelengthFileDropZone; 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.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSwitch = WavelengthSwitch; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.concat = concat; exports.useThemeContext = useThemeContext;
4282
+
4283
+
4284
+ exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthBadge = WavelengthBadge; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCard = WavelengthCard; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCheckboxList = WavelengthCheckboxList; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataGrid = WavelengthDataGrid; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDialog = WavelengthDialog; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDropZone = WavelengthFileDropZone; 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.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthSwitch = WavelengthSwitch; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.add = add; exports.concat = concat; exports.useThemeContext = useThemeContext;
3746
4285
  //# sourceMappingURL=index.cjs.map