@wavelengthusaf/components 5.0.3 → 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.
- package/README.md +113 -0
- package/dist/cjs/index.cjs +492 -7
- package/dist/cjs/index.d.cts +39 -4
- package/dist/esm/index.d.ts +39 -4
- package/dist/esm/index.js +735 -250
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -92,6 +92,423 @@ WavelengthButton.displayName = "WavelengthButton";
|
|
|
92
92
|
// src/index.ts
|
|
93
93
|
import { WavelengthButton as WavelengthButton2 } from "@wavelengthusaf/web-components";
|
|
94
94
|
|
|
95
|
+
// src/components/buttons/WavelengthButton/WavelengthStyledButton.tsx
|
|
96
|
+
import styled from "styled-components";
|
|
97
|
+
import { jsxs } from "react/jsx-runtime";
|
|
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 = styled.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__ */ jsxs(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
|
import { createContext, useContext } from "react";
|
|
97
514
|
var WavelengthAppTheme = createContext({});
|
|
@@ -174,7 +591,7 @@ function WavelengthContentPlaceholder({ type, width, height, txtcolor, bgcolor,
|
|
|
174
591
|
WavelengthContentPlaceholder.displayName = "WavelengthContentPlaceholder";
|
|
175
592
|
|
|
176
593
|
// src/components/example/WavelengthExampleComponent.tsx
|
|
177
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
594
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
178
595
|
function WavelengthExampleComponent({ width = 100, height = 100, id }) {
|
|
179
596
|
const palette = getPalette();
|
|
180
597
|
const divStyle = {
|
|
@@ -183,13 +600,13 @@ function WavelengthExampleComponent({ width = 100, height = 100, id }) {
|
|
|
183
600
|
padding: "5px",
|
|
184
601
|
borderRadius: "5px"
|
|
185
602
|
};
|
|
186
|
-
return /* @__PURE__ */ jsx3("div", { style: divStyle, id, children: /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
603
|
+
return /* @__PURE__ */ jsx3("div", { style: divStyle, id, children: /* @__PURE__ */ jsxs2("svg", { xmlns: "http://www.w3.org/2000/svg", width, height, viewBox: "0 0 96 105", children: [
|
|
604
|
+
/* @__PURE__ */ jsxs2("g", { fill: palette.primary, stroke: palette.secondary, strokeLinejoin: "round", strokeLinecap: "round", children: [
|
|
188
605
|
/* @__PURE__ */ jsx3("path", { d: "M14,40v24M81,40v24M38,68v24M57,68v24M28,42v31h39v-31z", strokeWidth: "12" }),
|
|
189
606
|
/* @__PURE__ */ jsx3("path", { d: "M32,5l5,10M64,5l-6,10 ", strokeWidth: "2" })
|
|
190
607
|
] }),
|
|
191
608
|
/* @__PURE__ */ jsx3("path", { d: "M22,35h51v10h-51zM22,33c0-31,51-31,51,0", fill: palette.primary }),
|
|
192
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ jsxs2("g", { fill: "#FFF", children: [
|
|
193
610
|
/* @__PURE__ */ jsx3("circle", { cx: "36", cy: "22", r: "2" }),
|
|
194
611
|
/* @__PURE__ */ jsx3("circle", { cx: "59", cy: "22", r: "2" })
|
|
195
612
|
] })
|
|
@@ -319,7 +736,7 @@ var WavelengthCard = (props) => {
|
|
|
319
736
|
WavelengthCard.displayName = "WavelengthCard";
|
|
320
737
|
|
|
321
738
|
// src/components/logos/applogo/WavelengthAppLogo.tsx
|
|
322
|
-
import { Fragment, jsx as jsx5, jsxs as
|
|
739
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
323
740
|
function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
324
741
|
let logo;
|
|
325
742
|
{
|
|
@@ -327,7 +744,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
327
744
|
let arg = "";
|
|
328
745
|
if (grayscale) arg = "grayscale(1)";
|
|
329
746
|
if (name.toLowerCase() === "wings") {
|
|
330
|
-
logo = /* @__PURE__ */
|
|
747
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 34 31", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
331
748
|
/* @__PURE__ */ jsx5("path", { d: "M2.36037 0.97998L6.42418 9.35366L0.397217 5.01932L2.36037 0.97998Z", fill: "#DEE8FF" }),
|
|
332
749
|
/* @__PURE__ */ jsx5("path", { d: "M0 5.67743L16.6372 17.6441L15.6441 20.6623L2.7805 11.4036L0 5.67743Z", fill: "#DEE8FF" }),
|
|
333
750
|
/* @__PURE__ */ jsx5("path", { d: "M3.4834 12.8559L6.2639 18.5821L10.2131 21.4263H15.3922L3.4834 12.8559Z", fill: "#DEE8FF" }),
|
|
@@ -348,7 +765,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
348
765
|
";"
|
|
349
766
|
] });
|
|
350
767
|
} else if (name.toLowerCase() === "563rdpatch") {
|
|
351
|
-
logo = /* @__PURE__ */
|
|
768
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 892 925", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
352
769
|
/* @__PURE__ */ jsx5("path", { d: "M442 917C147.5 919.5 7 662 7 662L115.5 591.5L767 596.5L883.5 668C883.5 668 736.5 914.5 442 917Z", fill: "#7BAFD4" }),
|
|
353
770
|
/* @__PURE__ */ jsx5(
|
|
354
771
|
"path",
|
|
@@ -565,7 +982,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
565
982
|
)
|
|
566
983
|
] });
|
|
567
984
|
} else if (name.toLowerCase() === "563rdlabel") {
|
|
568
|
-
logo = /* @__PURE__ */
|
|
985
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 569 155", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
569
986
|
/* @__PURE__ */ jsx5("mask", { id: "mask0_200_42", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "352", y: "30", width: "142", height: "95", children: /* @__PURE__ */ jsx5(
|
|
570
987
|
"path",
|
|
571
988
|
{
|
|
@@ -589,7 +1006,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
589
1006
|
fill: "white"
|
|
590
1007
|
}
|
|
591
1008
|
),
|
|
592
|
-
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs3("linearGradient", { id: "paint0_linear_200_42", x1: "346.209", y1: "61.9323", x2: "504.489", y2: "61.6548", gradientUnits: "userSpaceOnUse", children: [
|
|
593
1010
|
/* @__PURE__ */ jsx5("stop", { offset: "0.0729167", stopColor: "#FF0F16" }),
|
|
594
1011
|
/* @__PURE__ */ jsx5("stop", { offset: "0.234375", stopColor: "#FF8224" }),
|
|
595
1012
|
/* @__PURE__ */ jsx5("stop", { offset: "0.390625", stopColor: "#FFD036" }),
|
|
@@ -600,7 +1017,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
600
1017
|
] }) })
|
|
601
1018
|
] });
|
|
602
1019
|
} else if (name.toLowerCase() === "arrow") {
|
|
603
|
-
logo = /* @__PURE__ */
|
|
1020
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 537 75", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
604
1021
|
/* @__PURE__ */ jsx5(
|
|
605
1022
|
"path",
|
|
606
1023
|
{
|
|
@@ -626,7 +1043,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
626
1043
|
}
|
|
627
1044
|
) }),
|
|
628
1045
|
/* @__PURE__ */ jsx5("g", { mask: "url(#mask0_5927_1148)", children: /* @__PURE__ */ jsx5("rect", { x: "336.394", y: "-4.56934", width: "122.933", height: "82.9385", fill: "url(#paint0_linear_5927_1148)" }) }),
|
|
629
|
-
/* @__PURE__ */
|
|
1046
|
+
/* @__PURE__ */ jsxs3("mask", { id: "path-5-outside-1_5927_1148", maskUnits: "userSpaceOnUse", x: "88.731", y: "2.51465", width: "260", height: "71", fill: "black", children: [
|
|
630
1047
|
/* @__PURE__ */ jsx5("rect", { fill: "white", x: "88.731", y: "2.51465", width: "260", height: "71" }),
|
|
631
1048
|
/* @__PURE__ */ jsx5("path", { d: "M91.821 69.5146L112.791 12.9946C113.811 10.4146 115.281 8.52465 117.201 7.32464C119.121 6.06465 121.311 5.43465 123.771 5.43465C126.291 5.43465 128.511 6.03465 130.431 7.23465C132.411 8.43464 133.881 10.3246 134.841 12.9046L155.901 69.5146H144.111L139.251 55.5646H108.111L103.071 69.5146H91.821ZM111.351 46.0246H136.011L125.931 16.5946C125.691 15.9946 125.391 15.5446 125.031 15.2446C124.731 14.9446 124.341 14.7946 123.861 14.7946C123.381 14.7946 122.991 14.9746 122.691 15.3346C122.391 15.6346 122.151 16.0546 121.971 16.5946L111.351 46.0246ZM161.231 69.5146V6.51464H189.131C193.151 6.51464 196.811 7.41465 200.111 9.21465C203.471 10.9546 206.141 13.4146 208.121 16.5946C210.101 19.7746 211.091 23.4646 211.091 27.6646C211.091 31.8646 210.041 35.5846 207.941 38.8246C205.901 42.0046 203.171 44.4646 199.751 46.2046L205.961 57.9946C206.321 58.6546 206.741 59.1646 207.221 59.5246C207.701 59.8246 208.331 59.9746 209.111 59.9746H214.421V69.5146H207.491C205.031 69.5146 202.841 68.9146 200.921 67.7146C199.001 66.4546 197.471 64.8046 196.331 62.7646L188.951 48.6346C188.351 48.6946 187.721 48.7246 187.061 48.7246C186.461 48.7246 185.861 48.7246 185.261 48.7246H171.941V69.5146H161.231ZM171.941 39.2746H187.781C190.061 39.2746 192.161 38.8246 194.081 37.9246C196.001 37.0246 197.501 35.7046 198.581 33.9646C199.721 32.1646 200.291 30.0646 200.291 27.6646C200.291 25.2046 199.721 23.1046 198.581 21.3646C197.441 19.6246 195.941 18.3046 194.081 17.4046C192.221 16.4446 190.151 15.9646 187.871 15.9646H171.941V39.2746ZM222.403 69.5146V6.51464H250.303C254.323 6.51464 257.983 7.41465 261.283 9.21465C264.643 10.9546 267.313 13.4146 269.293 16.5946C271.273 19.7746 272.263 23.4646 272.263 27.6646C272.263 31.8646 271.213 35.5846 269.113 38.8246C267.073 42.0046 264.343 44.4646 260.923 46.2046L267.133 57.9946C267.493 58.6546 267.913 59.1646 268.393 59.5246C268.873 59.8246 269.503 59.9746 270.283 59.9746H275.593V69.5146H268.663C266.203 69.5146 264.013 68.9146 262.093 67.7146C260.173 66.4546 258.643 64.8046 257.503 62.7646L250.123 48.6346C249.523 48.6946 248.893 48.7246 248.233 48.7246C247.633 48.7246 247.033 48.7246 246.433 48.7246H233.113V69.5146H222.403ZM233.113 39.2746H248.953C251.233 39.2746 253.333 38.8246 255.253 37.9246C257.173 37.0246 258.673 35.7046 259.753 33.9646C260.893 32.1646 261.463 30.0646 261.463 27.6646C261.463 25.2046 260.893 23.1046 259.753 21.3646C258.613 19.6246 257.113 18.3046 255.253 17.4046C253.393 16.4446 251.323 15.9646 249.043 15.9646H233.113V39.2746ZM313.094 70.6846C308.114 70.6846 303.584 69.8446 299.504 68.1646C295.484 66.4246 292.034 64.0546 289.154 61.0546C286.334 58.0546 284.144 54.5746 282.584 50.6146C281.024 46.6546 280.244 42.4246 280.244 37.9246C280.244 33.4246 281.024 29.2246 282.584 25.3246C284.144 21.3646 286.334 17.8846 289.154 14.8846C292.034 11.8846 295.484 9.54465 299.504 7.86464C303.584 6.18464 308.114 5.34464 313.094 5.34464C318.134 5.34464 322.664 6.18464 326.684 7.86464C330.704 9.54465 334.154 11.8846 337.034 14.8846C339.914 17.8846 342.134 21.3646 343.694 25.3246C345.254 29.2246 346.034 33.4246 346.034 37.9246C346.034 42.4246 345.254 46.6546 343.694 50.6146C342.134 54.5746 339.914 58.0546 337.034 61.0546C334.154 64.0546 330.704 66.4246 326.684 68.1646C322.664 69.8446 318.134 70.6846 313.094 70.6846ZM313.094 61.1446C316.274 61.1446 319.214 60.5746 321.914 59.4346C324.614 58.2946 326.954 56.6746 328.934 54.5746C330.974 52.4146 332.534 49.9246 333.614 47.1046C334.694 44.2846 335.234 41.2246 335.234 37.9246C335.234 34.6246 334.694 31.5646 333.614 28.7446C332.534 25.9246 330.974 23.4946 328.934 21.4546C326.954 19.3546 324.614 17.7346 321.914 16.5946C319.214 15.3946 316.274 14.7946 313.094 14.7946C309.914 14.7946 306.974 15.3946 304.274 16.5946C301.634 17.7346 299.294 19.3546 297.254 21.4546C295.274 23.4946 293.714 25.9246 292.574 28.7446C291.494 31.5646 290.954 34.6246 290.954 37.9246C290.954 41.2846 291.494 44.3746 292.574 47.1946C293.714 49.9546 295.274 52.4146 297.254 54.5746C299.294 56.6746 301.634 58.2946 304.274 59.4346C306.974 60.5746 309.914 61.1446 313.094 61.1446Z" })
|
|
632
1049
|
] }),
|
|
@@ -645,7 +1062,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
645
1062
|
mask: "url(#path-5-outside-1_5927_1148)"
|
|
646
1063
|
}
|
|
647
1064
|
),
|
|
648
|
-
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */
|
|
1065
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs3("linearGradient", { id: "paint0_linear_5927_1148", x1: "336.394", y1: "25.6959", x2: "459.327", y2: "25.4778", gradientUnits: "userSpaceOnUse", children: [
|
|
649
1066
|
/* @__PURE__ */ jsx5("stop", { offset: "0.0729167", stopColor: "#FF0F16" }),
|
|
650
1067
|
/* @__PURE__ */ jsx5("stop", { offset: "0.234375", stopColor: "#FF8224" }),
|
|
651
1068
|
/* @__PURE__ */ jsx5("stop", { offset: "0.390625", stopColor: "#FFD036" }),
|
|
@@ -656,8 +1073,8 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
656
1073
|
] }) })
|
|
657
1074
|
] });
|
|
658
1075
|
} else if (name.toLowerCase() === "channelone") {
|
|
659
|
-
logo = /* @__PURE__ */
|
|
660
|
-
/* @__PURE__ */
|
|
1076
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 600 600", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
1077
|
+
/* @__PURE__ */ jsxs3("g", { clipPath: "url(#clip0_287_202)", children: [
|
|
661
1078
|
/* @__PURE__ */ jsx5(
|
|
662
1079
|
"path",
|
|
663
1080
|
{
|
|
@@ -678,7 +1095,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
678
1095
|
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsx5("clipPath", { id: "clip0_287_202", children: /* @__PURE__ */ jsx5("rect", { width: "600.8", height: "600.8", fill: "white" }) }) })
|
|
679
1096
|
] });
|
|
680
1097
|
} else if (name.toLowerCase() === "swarm") {
|
|
681
|
-
logo = /* @__PURE__ */
|
|
1098
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 281 281", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
682
1099
|
/* @__PURE__ */ jsx5("circle", { cx: "140.5", cy: "140.5", r: "140.5", fill: "#13151F" }),
|
|
683
1100
|
/* @__PURE__ */ jsx5(
|
|
684
1101
|
"path",
|
|
@@ -695,8 +1112,8 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
695
1112
|
fill: "white"
|
|
696
1113
|
}
|
|
697
1114
|
) }) }),
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
/* @__PURE__ */
|
|
1115
|
+
/* @__PURE__ */ jsxs3("defs", { children: [
|
|
1116
|
+
/* @__PURE__ */ jsxs3("filter", { id: "filter0_d_1203_6286", x: "71.7954", y: "96.5007", width: "136.24", height: "97.1179", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [
|
|
700
1117
|
/* @__PURE__ */ jsx5("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
701
1118
|
/* @__PURE__ */ jsx5("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }),
|
|
702
1119
|
/* @__PURE__ */ jsx5("feOffset", { dy: "3.5593" }),
|
|
@@ -706,7 +1123,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
706
1123
|
/* @__PURE__ */ jsx5("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_1203_6286" }),
|
|
707
1124
|
/* @__PURE__ */ jsx5("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_1203_6286", result: "shape" })
|
|
708
1125
|
] }),
|
|
709
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ jsxs3("filter", { id: "filter1_d_1203_6286", x: "71.7954", y: "96.5007", width: "136.24", height: "97.1179", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [
|
|
710
1127
|
/* @__PURE__ */ jsx5("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
711
1128
|
/* @__PURE__ */ jsx5("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }),
|
|
712
1129
|
/* @__PURE__ */ jsx5("feOffset", { dy: "3.5593" }),
|
|
@@ -716,7 +1133,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
716
1133
|
/* @__PURE__ */ jsx5("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_1203_6286" }),
|
|
717
1134
|
/* @__PURE__ */ jsx5("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_1203_6286", result: "shape" })
|
|
718
1135
|
] }),
|
|
719
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ jsxs3("linearGradient", { id: "paint0_linear_1203_6286", x1: "39.4003", y1: "71.7789", x2: "245.508", y2: "214.994", gradientUnits: "userSpaceOnUse", children: [
|
|
720
1137
|
/* @__PURE__ */ jsx5("stop", { stopColor: "#EE2A7B" }),
|
|
721
1138
|
/* @__PURE__ */ jsx5("stop", { offset: "0.14", stopColor: "#ED1C24" }),
|
|
722
1139
|
/* @__PURE__ */ jsx5("stop", { offset: "0.28", stopColor: "#EFA13F" }),
|
|
@@ -735,7 +1152,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
735
1152
|
] })
|
|
736
1153
|
] });
|
|
737
1154
|
} else if (name.toLowerCase() === "wavelengthw") {
|
|
738
|
-
logo = /* @__PURE__ */
|
|
1155
|
+
logo = /* @__PURE__ */ jsxs3("svg", { width, height, viewBox: "0 0 829 515", fill: "none", xmlns: "http://www.w3.org/2000/svg", filter: arg, id, children: [
|
|
739
1156
|
/* @__PURE__ */ jsx5("mask", { id: "mask0_164_43", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "830", height: "515", children: /* @__PURE__ */ jsx5(
|
|
740
1157
|
"path",
|
|
741
1158
|
{
|
|
@@ -745,7 +1162,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
745
1162
|
}
|
|
746
1163
|
) }),
|
|
747
1164
|
/* @__PURE__ */ jsx5("g", { mask: "url(#mask0_164_43)", children: /* @__PURE__ */ jsx5("rect", { x: "-33.8369", y: "-63.9557", width: "924.871", height: "631.619", fill: "url(#paint0_linear_164_43)" }) }),
|
|
748
|
-
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */
|
|
1165
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs3("linearGradient", { id: "paint0_linear_164_43", x1: "-33.8369", y1: "166.53", x2: "891.035", y2: "164.909", gradientUnits: "userSpaceOnUse", children: [
|
|
749
1166
|
/* @__PURE__ */ jsx5("stop", { offset: "0.0729167", stopColor: "#FF0F16" }),
|
|
750
1167
|
/* @__PURE__ */ jsx5("stop", { offset: "0.234375", stopColor: "#FF8224" }),
|
|
751
1168
|
/* @__PURE__ */ jsx5("stop", { offset: "0.390625", stopColor: "#FFD036" }),
|
|
@@ -756,7 +1173,7 @@ function WavelengthAppLogo({ width, height, name = "", grayscale, id }) {
|
|
|
756
1173
|
] }) })
|
|
757
1174
|
] });
|
|
758
1175
|
} else {
|
|
759
|
-
logo = /* @__PURE__ */
|
|
1176
|
+
logo = /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
760
1177
|
"AIR ",
|
|
761
1178
|
/* @__PURE__ */ jsx5("br", {}),
|
|
762
1179
|
" FORCE"
|
|
@@ -768,15 +1185,15 @@ WavelengthAppLogo.displayName = "WavelengthAppLogo";
|
|
|
768
1185
|
var WavelengthAppLogo_default = WavelengthAppLogo;
|
|
769
1186
|
|
|
770
1187
|
// src/components/PageComponents/WavelengthNotAvailablePage.tsx
|
|
771
|
-
import { Fragment as Fragment2, jsx as jsx6, jsxs as
|
|
1188
|
+
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
772
1189
|
function WavelengthNotAvailablePage({ WavelengthAppLogoName, errorMessage, backgroundColor, buttonText, redirectLink, buttonColorOne, buttonColorTwo, id }) {
|
|
773
1190
|
backgroundColor = backgroundColor ? backgroundColor : "gray";
|
|
774
1191
|
WavelengthAppLogoName = WavelengthAppLogoName ? WavelengthAppLogoName : "563rdpatch";
|
|
775
1192
|
buttonColorOne = buttonColorOne ? buttonColorOne : "white";
|
|
776
1193
|
buttonColorTwo = buttonColorTwo ? buttonColorTwo : "#0D5288";
|
|
777
|
-
return /* @__PURE__ */ jsx6(Fragment2, { children: /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ jsx6(Fragment2, { children: /* @__PURE__ */ jsxs4("div", { id, style: { display: "flex", backgroundColor, flexDirection: "column", alignItems: "center", height: "100%", justifyContent: "center", gap: 55, padding: "8%" }, children: [
|
|
778
1195
|
/* @__PURE__ */ jsx6(WavelengthAppLogo_default, { name: WavelengthAppLogoName, width: 300, height: 200, grayscale: true }),
|
|
779
|
-
/* @__PURE__ */
|
|
1196
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [
|
|
780
1197
|
/* @__PURE__ */ jsx6("p", { style: { textAlign: "center", marginBottom: 45, fontSize: 40, color: "white" }, children: `${errorMessage}` }),
|
|
781
1198
|
/* @__PURE__ */ jsx6(WavelengthButton, { "data-testid": "not-available-button", variant: "contained", colorOne: buttonColorOne, colorTwo: buttonColorTwo, href: redirectLink, children: buttonText })
|
|
782
1199
|
] })
|
|
@@ -990,11 +1407,11 @@ var WavelengthFileDropZone = forwardRef(
|
|
|
990
1407
|
);
|
|
991
1408
|
WavelengthFileDropZone.displayName = "WavelengthFileDropZone";
|
|
992
1409
|
|
|
993
|
-
// src/components/SnackBar/
|
|
1410
|
+
// src/components/SnackBar/WavelengthSnackbar.tsx
|
|
994
1411
|
import { useEffect as useEffect7, useRef as useRef7 } from "react";
|
|
995
1412
|
import "@wavelengthusaf/web-components";
|
|
996
1413
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
997
|
-
var
|
|
1414
|
+
var WavelengthSnackbar = ({
|
|
998
1415
|
message,
|
|
999
1416
|
duration,
|
|
1000
1417
|
backgroundColor,
|
|
@@ -1097,7 +1514,7 @@ WavelengthProgressBar.displayName = "WavelengthProgressBar";
|
|
|
1097
1514
|
import { WavelengthProgressBar as WavelengthProgressBar2 } from "@wavelengthusaf/web-components";
|
|
1098
1515
|
|
|
1099
1516
|
// src/components/PageComponents/WavelengthPermissionAlert.tsx
|
|
1100
|
-
import { Fragment as Fragment3, jsx as jsx12, jsxs as
|
|
1517
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1101
1518
|
function WavelengthPermissionAlert({
|
|
1102
1519
|
dataTestId,
|
|
1103
1520
|
height = "112px",
|
|
@@ -1111,7 +1528,7 @@ function WavelengthPermissionAlert({
|
|
|
1111
1528
|
unit = "No Unit",
|
|
1112
1529
|
id
|
|
1113
1530
|
}) {
|
|
1114
|
-
return /* @__PURE__ */ jsx12(Fragment3, { children: /* @__PURE__ */
|
|
1531
|
+
return /* @__PURE__ */ jsx12(Fragment3, { children: /* @__PURE__ */ jsxs5(
|
|
1115
1532
|
"div",
|
|
1116
1533
|
{
|
|
1117
1534
|
id,
|
|
@@ -1133,21 +1550,21 @@ function WavelengthPermissionAlert({
|
|
|
1133
1550
|
},
|
|
1134
1551
|
children: [
|
|
1135
1552
|
/* @__PURE__ */ jsx12("div", { style: { fontSize: "20px", fontWeight: 400 }, children: permission }),
|
|
1136
|
-
/* @__PURE__ */
|
|
1553
|
+
/* @__PURE__ */ jsxs5("div", { style: { letterSpacing: "-6%" }, children: [
|
|
1137
1554
|
"Application: ",
|
|
1138
1555
|
/* @__PURE__ */ jsx12("span", { style: { fontWeight: 600, marginLeft: "4px" }, children: applicationName })
|
|
1139
1556
|
] }),
|
|
1140
|
-
/* @__PURE__ */
|
|
1557
|
+
/* @__PURE__ */ jsxs5("div", { style: { letterSpacing: "-6%" }, children: [
|
|
1141
1558
|
"Requestor:",
|
|
1142
1559
|
" ",
|
|
1143
|
-
/* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ jsxs5("span", { style: { fontWeight: 600, marginLeft: "4px" }, children: [
|
|
1144
1561
|
requestorName,
|
|
1145
1562
|
", ",
|
|
1146
1563
|
"" + unit
|
|
1147
1564
|
] })
|
|
1148
1565
|
] }),
|
|
1149
|
-
/* @__PURE__ */
|
|
1150
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
1567
|
+
/* @__PURE__ */ jsxs5("div", { style: { letterSpacing: "-6%" }, children: [
|
|
1151
1568
|
"Date of Request: ",
|
|
1152
1569
|
/* @__PURE__ */ jsx12("span", { style: { fontWeight: 600, marginLeft: "4px" }, children: dateOfRequest })
|
|
1153
1570
|
] }),
|
|
@@ -1161,9 +1578,78 @@ function WavelengthPermissionAlert({
|
|
|
1161
1578
|
}
|
|
1162
1579
|
WavelengthPermissionAlert.displayName = "WavelengthPermissionAlert";
|
|
1163
1580
|
|
|
1581
|
+
// src/components/PageComponents/WavelengthDragAndDrop.tsx
|
|
1582
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
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__ */ jsx13(
|
|
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__ */ jsxs6("div", { style: { fontSize, color: textColor }, children: [
|
|
1640
|
+
/* @__PURE__ */ jsx13("input", { type: "file", hidden: true, multiple: true, id: "browse", onChange: handleFileChange, accept: allowedFileExtensions }),
|
|
1641
|
+
"Drag File here or",
|
|
1642
|
+
" ",
|
|
1643
|
+
/* @__PURE__ */ jsx13("label", { htmlFor: "browse", style: { textDecoration: "underline", cursor: "pointer" }, children: "select from files" })
|
|
1644
|
+
] })
|
|
1645
|
+
}
|
|
1646
|
+
);
|
|
1647
|
+
}
|
|
1648
|
+
WavelengthDragAndDrop.displayName = "WavelengthDragAndDrop";
|
|
1649
|
+
|
|
1164
1650
|
// src/components/PageComponents/WavelengthToolTip.tsx
|
|
1165
1651
|
import { useRef as useRef10, useEffect as useEffect10 } from "react";
|
|
1166
|
-
import { jsx as
|
|
1652
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1167
1653
|
var WavelengthToolTip = ({ color, font, direction, children, textColor, textContent, ...rest }) => {
|
|
1168
1654
|
const ref = useRef10(null);
|
|
1169
1655
|
const syncAttribute = (attribute, value) => {
|
|
@@ -1178,13 +1664,13 @@ var WavelengthToolTip = ({ color, font, direction, children, textColor, textCont
|
|
|
1178
1664
|
syncAttribute("text-color", textColor || "");
|
|
1179
1665
|
syncAttribute("text-content", textContent || "");
|
|
1180
1666
|
}, [color, font, direction, textColor, textContent]);
|
|
1181
|
-
return /* @__PURE__ */
|
|
1667
|
+
return /* @__PURE__ */ jsx14("wavelength-tooltip", { ref, ...rest, children });
|
|
1182
1668
|
};
|
|
1183
1669
|
WavelengthToolTip.displayName = "WavelengthToolTip";
|
|
1184
1670
|
|
|
1185
1671
|
// src/components/PageComponents/WavelengthBadge.tsx
|
|
1186
1672
|
import { useRef as useRef11, useEffect as useEffect11 } from "react";
|
|
1187
|
-
import { jsx as
|
|
1673
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1188
1674
|
var WavelengthBadge = ({
|
|
1189
1675
|
variant,
|
|
1190
1676
|
badgeBorderRadius,
|
|
@@ -1258,8 +1744,8 @@ var WavelengthBadge = ({
|
|
|
1258
1744
|
item,
|
|
1259
1745
|
customStyle
|
|
1260
1746
|
]);
|
|
1261
|
-
return /* @__PURE__ */
|
|
1262
|
-
badgeContent !== void 0 && /* @__PURE__ */
|
|
1747
|
+
return /* @__PURE__ */ jsxs7("wavelength-badge", { ref, ...rest, children: [
|
|
1748
|
+
badgeContent !== void 0 && /* @__PURE__ */ jsx15("span", { slot: "badge", children: badgeContent }),
|
|
1263
1749
|
item || children
|
|
1264
1750
|
] });
|
|
1265
1751
|
};
|
|
@@ -1267,7 +1753,7 @@ WavelengthBadge.displayName = "WavelengthBadge";
|
|
|
1267
1753
|
|
|
1268
1754
|
// src/components/PageComponents/WavelengthCommentDisplay.tsx
|
|
1269
1755
|
import { useRef as useRef12, useEffect as useEffect12 } from "react";
|
|
1270
|
-
import { jsx as
|
|
1756
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1271
1757
|
var WavelengthCommentDisplay = ({
|
|
1272
1758
|
children,
|
|
1273
1759
|
customStyle,
|
|
@@ -1317,14 +1803,14 @@ var WavelengthCommentDisplay = ({
|
|
|
1317
1803
|
syncAttribute("icon-selected-color", iconSelectedColor);
|
|
1318
1804
|
syncBooleanAttribute("selected", selected);
|
|
1319
1805
|
}, [customStyle, author, comment, date, width, height, txtColor, bgColor, border, iconSelectedColor, selected]);
|
|
1320
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ jsx16("wavelength-comment-display", { ref, ...rest, children });
|
|
1321
1807
|
};
|
|
1322
1808
|
WavelengthCommentDisplay.displayName = "WavelengthCommentDisplay";
|
|
1323
1809
|
|
|
1324
1810
|
// src/components/forms/WavelengthForm.tsx
|
|
1325
1811
|
import React12, { useEffect as useEffect13, useImperativeHandle as useImperativeHandle2, useRef as useRef13 } from "react";
|
|
1326
1812
|
import "@wavelengthusaf/web-components";
|
|
1327
|
-
import { jsx as
|
|
1813
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1328
1814
|
function useStableCallback(fn) {
|
|
1329
1815
|
const fnRef = useRef13(fn);
|
|
1330
1816
|
useEffect13(() => {
|
|
@@ -1441,7 +1927,7 @@ function WavelengthFormInner(props, ref) {
|
|
|
1441
1927
|
}),
|
|
1442
1928
|
[]
|
|
1443
1929
|
);
|
|
1444
|
-
return /* @__PURE__ */
|
|
1930
|
+
return /* @__PURE__ */ jsx17("wavelength-form", { ref: hostRef, className, style });
|
|
1445
1931
|
}
|
|
1446
1932
|
var WavelengthFormForwardRef = React12.forwardRef(WavelengthFormInner);
|
|
1447
1933
|
WavelengthFormForwardRef.displayName = "WavelengthForm";
|
|
@@ -1453,7 +1939,7 @@ import { WavelengthForm as WavelengthForm2 } from "@wavelengthusaf/web-component
|
|
|
1453
1939
|
// src/components/headers/WavelengthTitleBar/WavelengthTitleBar.tsx
|
|
1454
1940
|
import { useEffect as useEffect14, useRef as useRef14 } from "react";
|
|
1455
1941
|
import "@wavelengthusaf/web-components";
|
|
1456
|
-
import { jsx as
|
|
1942
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1457
1943
|
function WavelengthTitleBar({ titleText, subtitleText, textColor, shadowColor, id, name }) {
|
|
1458
1944
|
const ref = useRef14(null);
|
|
1459
1945
|
useEffect14(() => {
|
|
@@ -1466,7 +1952,7 @@ function WavelengthTitleBar({ titleText, subtitleText, textColor, shadowColor, i
|
|
|
1466
1952
|
ref.current.setAttribute("name", name || "");
|
|
1467
1953
|
}
|
|
1468
1954
|
}, [titleText, subtitleText, textColor, shadowColor]);
|
|
1469
|
-
return /* @__PURE__ */
|
|
1955
|
+
return /* @__PURE__ */ jsx18("wavelength-title-bar", { ref });
|
|
1470
1956
|
}
|
|
1471
1957
|
WavelengthTitleBar.displayName = "WavelengthTitleBar";
|
|
1472
1958
|
|
|
@@ -1476,7 +1962,7 @@ import { WavelengthTitleBar as WavelengthTitleBar2 } from "@wavelengthusaf/web-c
|
|
|
1476
1962
|
// src/components/headers/WavelengthTitleBar/WavelengthBanner.tsx
|
|
1477
1963
|
import { useEffect as useEffect15, useRef as useRef15 } from "react";
|
|
1478
1964
|
import "@wavelengthusaf/web-components";
|
|
1479
|
-
import { jsx as
|
|
1965
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1480
1966
|
function WavelengthBanner({ bannerText, bannerColor, textColor, opacity = 1, zIndex = 10, id, classification, control, name }) {
|
|
1481
1967
|
const ref = useRef15(null);
|
|
1482
1968
|
useEffect15(() => {
|
|
@@ -1492,7 +1978,7 @@ function WavelengthBanner({ bannerText, bannerColor, textColor, opacity = 1, zIn
|
|
|
1492
1978
|
if (id) el.setAttribute("id", id);
|
|
1493
1979
|
if (name) el.setAttribute("name", name);
|
|
1494
1980
|
}, [bannerText, bannerColor, textColor, classification, control, opacity, zIndex, id, name]);
|
|
1495
|
-
return /* @__PURE__ */
|
|
1981
|
+
return /* @__PURE__ */ jsx19("wavelength-banner", { ref });
|
|
1496
1982
|
}
|
|
1497
1983
|
WavelengthBanner.displayName = "WavelengthBanner";
|
|
1498
1984
|
|
|
@@ -1500,11 +1986,11 @@ WavelengthBanner.displayName = "WavelengthBanner";
|
|
|
1500
1986
|
import { WavelengthBanner as WavelengthBanner2 } from "@wavelengthusaf/web-components";
|
|
1501
1987
|
|
|
1502
1988
|
// src/components/logos/default/WavelengthDefaultIcon.tsx
|
|
1503
|
-
import { jsx as
|
|
1989
|
+
import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1504
1990
|
function WavelengthDefaultIcon({ width = "180", height = 140, id, name }) {
|
|
1505
|
-
return /* @__PURE__ */
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
/* @__PURE__ */
|
|
1991
|
+
return /* @__PURE__ */ jsx20("div", { children: /* @__PURE__ */ jsxs8("svg", { width, height, viewBox: "0 0 185 140", fill: "none", xmlns: "http://www.w3.org/2000/svg", id, name, children: [
|
|
1992
|
+
/* @__PURE__ */ jsx20("rect", { width, height, fill: "#7A7A7A" }),
|
|
1993
|
+
/* @__PURE__ */ jsx20(
|
|
1508
1994
|
"path",
|
|
1509
1995
|
{
|
|
1510
1996
|
d: "M63.5 14.618L77.2811 57.0319L77.3934 57.3774H77.7566H122.353L86.2738 83.5906L85.9799 83.8042L86.0922 84.1497L99.8733 126.564L63.7939 100.35L63.5 100.137L63.2061 100.35L27.1267 126.564L40.9078 84.1497L41.0201 83.8042L40.7262 83.5906L4.64675 57.3774H49.2434H49.6066L49.7189 57.0319L63.5 14.618Z",
|
|
@@ -1513,20 +1999,20 @@ function WavelengthDefaultIcon({ width = "180", height = 140, id, name }) {
|
|
|
1513
1999
|
stroke: "#6B6B6B"
|
|
1514
2000
|
}
|
|
1515
2001
|
),
|
|
1516
|
-
/* @__PURE__ */
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
/* @__PURE__ */
|
|
1519
|
-
/* @__PURE__ */
|
|
1520
|
-
/* @__PURE__ */
|
|
1521
|
-
/* @__PURE__ */
|
|
1522
|
-
/* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1527
|
-
/* @__PURE__ */
|
|
1528
|
-
/* @__PURE__ */
|
|
1529
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ jsx20("rect", { x: "102", y: "16", width: "70", height: "115", fill: "#4A4A4A" }),
|
|
2003
|
+
/* @__PURE__ */ jsx20("line", { x1: "112", y1: "24.5", x2: "142", y2: "24.5", stroke: "#D9D9D9", strokeWidth: "3" }),
|
|
2004
|
+
/* @__PURE__ */ jsx20("line", { x1: "112", y1: "41.5", x2: "160", y2: "41.5", stroke: "#D9D9D9", strokeWidth: "3" }),
|
|
2005
|
+
/* @__PURE__ */ jsx20("line", { x1: "112", y1: "51.5", x2: "160", y2: "51.5", stroke: "#D9D9D9", strokeWidth: "3" }),
|
|
2006
|
+
/* @__PURE__ */ jsx20("line", { x1: "112", y1: "61.5", x2: "160", y2: "61.5", stroke: "#D9D9D9", strokeWidth: "3" }),
|
|
2007
|
+
/* @__PURE__ */ jsx20("line", { x1: "112", y1: "71.5", x2: "160", y2: "71.5", stroke: "#D9D9D9", strokeWidth: "3" }),
|
|
2008
|
+
/* @__PURE__ */ jsx20("line", { x1: "112", y1: "81.5", x2: "160", y2: "81.5", stroke: "#D9D9D9", strokeWidth: "3" }),
|
|
2009
|
+
/* @__PURE__ */ jsx20("circle", { cx: "48", cy: "44", r: "28", fill: "#D9D9D9", fillOpacity: "0.5" }),
|
|
2010
|
+
/* @__PURE__ */ jsx20("path", { d: "M76 44.2478C76 59.5749 63.4645 72 48.0011 72C48.0011 72 49 19.5 49 16C49 16 20 16 20 44.2478C35.4634 44.2478 76 44.2478 76 44.2478Z", fill: "#D9D9D9", fillOpacity: "0.5" }),
|
|
2011
|
+
/* @__PURE__ */ jsx20("rect", { x: "20", y: "83", width: "56", height: "15", rx: "4", fill: "#D9D9D9" }),
|
|
2012
|
+
/* @__PURE__ */ jsx20("rect", { x: "20", y: "107", width: "56", height: "15", rx: "4", fill: "#ABABAB" }),
|
|
2013
|
+
/* @__PURE__ */ jsx20("defs", { children: /* @__PURE__ */ jsxs8("linearGradient", { id: "paint0_linear_3571_2148", x1: "63.5", y1: "13", x2: "63.5", y2: "140", gradientUnits: "userSpaceOnUse", children: [
|
|
2014
|
+
/* @__PURE__ */ jsx20("stop", { stopColor: "#A1A1A1" }),
|
|
2015
|
+
/* @__PURE__ */ jsx20("stop", { offset: "1", stopColor: "#606060" })
|
|
1530
2016
|
] }) })
|
|
1531
2017
|
] }) });
|
|
1532
2018
|
}
|
|
@@ -1534,7 +2020,7 @@ WavelengthDefaultIcon.displayName = "WavelengthDefaultIcon";
|
|
|
1534
2020
|
|
|
1535
2021
|
// src/components/CSFD/WavelengthManyPlanes.tsx
|
|
1536
2022
|
import { useRef as useRef16, useEffect as useEffect16 } from "react";
|
|
1537
|
-
import { jsx as
|
|
2023
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1538
2024
|
var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color, gradient, spaced, ...rest }) => {
|
|
1539
2025
|
const ref = useRef16(null);
|
|
1540
2026
|
useEffect16(() => {
|
|
@@ -1559,14 +2045,14 @@ var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color
|
|
|
1559
2045
|
el.spaced = spaced;
|
|
1560
2046
|
}
|
|
1561
2047
|
}, [numberOfPlanes, trailDir, opacity, color, gradient, spaced]);
|
|
1562
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx21("wavelength-manyplanes", { ref, trailDir, opacity, color, gradient, spaced: spaced?.toString(), ...rest, children });
|
|
1563
2049
|
};
|
|
1564
2050
|
WavelengthManyPlanes.displayName = "WavelengthManyPlanes";
|
|
1565
2051
|
|
|
1566
2052
|
// src/components/separators/WavelengthPlaneTrail/WavelengthPlaneTrail.tsx
|
|
1567
2053
|
import { useRef as useRef17, useEffect as useEffect17 } from "react";
|
|
1568
2054
|
import "@wavelengthusaf/web-components";
|
|
1569
|
-
import { jsx as
|
|
2055
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1570
2056
|
var WavelengthPlaneTrail = ({
|
|
1571
2057
|
trailDir,
|
|
1572
2058
|
color,
|
|
@@ -1594,13 +2080,13 @@ var WavelengthPlaneTrail = ({
|
|
|
1594
2080
|
el.setAttribute("id", id);
|
|
1595
2081
|
}
|
|
1596
2082
|
}, [trailDir]);
|
|
1597
|
-
return /* @__PURE__ */
|
|
2083
|
+
return /* @__PURE__ */ jsx22("wavelength-planetrail", { ref, trailDir, color, id, customStyle, ...rest, children });
|
|
1598
2084
|
};
|
|
1599
2085
|
WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
|
|
1600
2086
|
|
|
1601
2087
|
// src/components/modals/WavelengthConfirmationModal.tsx
|
|
1602
2088
|
import { useEffect as useEffect18, useRef as useRef18 } from "react";
|
|
1603
|
-
import { jsx as
|
|
2089
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1604
2090
|
function WavelengthConfirmationModal(props) {
|
|
1605
2091
|
const { show, setShow, id, name } = props;
|
|
1606
2092
|
const modalRef = useRef18(null);
|
|
@@ -1618,7 +2104,7 @@ function WavelengthConfirmationModal(props) {
|
|
|
1618
2104
|
}
|
|
1619
2105
|
};
|
|
1620
2106
|
}, [setShow]);
|
|
1621
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ jsxs9(
|
|
1622
2108
|
"wavelength-confirmation-modal",
|
|
1623
2109
|
{
|
|
1624
2110
|
ref: modalRef,
|
|
@@ -1633,8 +2119,8 @@ function WavelengthConfirmationModal(props) {
|
|
|
1633
2119
|
"title-text": props.textObj?.title,
|
|
1634
2120
|
"dialog-text": props.textObj?.dialog,
|
|
1635
2121
|
children: [
|
|
1636
|
-
props.cancelButton && /* @__PURE__ */
|
|
1637
|
-
props.submitButton && /* @__PURE__ */
|
|
2122
|
+
props.cancelButton && /* @__PURE__ */ jsx23("div", { slot: "cancel-button", style: { display: "contents" }, children: props.cancelButton }),
|
|
2123
|
+
props.submitButton && /* @__PURE__ */ jsx23("div", { slot: "submit-button", style: { display: "contents" }, children: props.submitButton })
|
|
1638
2124
|
]
|
|
1639
2125
|
}
|
|
1640
2126
|
);
|
|
@@ -1643,7 +2129,7 @@ WavelengthConfirmationModal.displayName = "WavelengthConfirmationModal";
|
|
|
1643
2129
|
|
|
1644
2130
|
// src/components/modals/WavelengthPopUpMenu.tsx
|
|
1645
2131
|
import React16, { useRef as useRef19, useEffect as useEffect19 } from "react";
|
|
1646
|
-
import { jsx as
|
|
2132
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1647
2133
|
var WavelengthPopUpMenu = React16.forwardRef(
|
|
1648
2134
|
({ children, customStyle = {}, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel, ...rest }, externalRef) => {
|
|
1649
2135
|
const internalRef = useRef19(null);
|
|
@@ -1668,14 +2154,14 @@ var WavelengthPopUpMenu = React16.forwardRef(
|
|
|
1668
2154
|
el.setAttribute("menu-items", JSON.stringify(menuItems));
|
|
1669
2155
|
}
|
|
1670
2156
|
}, [customStyle, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel]);
|
|
1671
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ jsx24("wavelength-popup-menu", { ref: internalRef, ...rest, children });
|
|
1672
2158
|
}
|
|
1673
2159
|
);
|
|
1674
2160
|
WavelengthPopUpMenu.displayName = "WavelengthPopUpMenu";
|
|
1675
2161
|
|
|
1676
2162
|
// src/components/modals/WavelengthDropdown.tsx
|
|
1677
2163
|
import { forwardRef as forwardRef2, useEffect as useEffect20, useImperativeHandle as useImperativeHandle3, useRef as useRef20 } from "react";
|
|
1678
|
-
import { jsx as
|
|
2164
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1679
2165
|
var WavelengthDropdown = forwardRef2((props, ref) => {
|
|
1680
2166
|
const {
|
|
1681
2167
|
options,
|
|
@@ -1717,7 +2203,7 @@ var WavelengthDropdown = forwardRef2((props, ref) => {
|
|
|
1717
2203
|
elementRef.current.value = value;
|
|
1718
2204
|
}
|
|
1719
2205
|
}, [value]);
|
|
1720
|
-
return /* @__PURE__ */
|
|
2206
|
+
return /* @__PURE__ */ jsx25(
|
|
1721
2207
|
"wavelength-dropdown",
|
|
1722
2208
|
{
|
|
1723
2209
|
ref: elementRef,
|
|
@@ -1747,7 +2233,7 @@ WavelengthDropdown.displayName = "WavelengthDropdown";
|
|
|
1747
2233
|
|
|
1748
2234
|
// src/components/modals/WavelengthMenu.tsx
|
|
1749
2235
|
import { useRef as useRef21, useEffect as useEffect21 } from "react";
|
|
1750
|
-
import { jsx as
|
|
2236
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1751
2237
|
var WavelengthMenu = ({
|
|
1752
2238
|
backgroundColor,
|
|
1753
2239
|
textColor,
|
|
@@ -1790,7 +2276,7 @@ var WavelengthMenu = ({
|
|
|
1790
2276
|
el.removeEventListener("wavelength-menu-select", handleSelect);
|
|
1791
2277
|
};
|
|
1792
2278
|
}, [backgroundColor, textColor, font, fontSize, border, padding, borderRadius, selectedColor, disabledColor, items, WavelengthMenuSelect]);
|
|
1793
|
-
return /* @__PURE__ */
|
|
2279
|
+
return /* @__PURE__ */ jsx26(
|
|
1794
2280
|
"wavelength-menu",
|
|
1795
2281
|
{
|
|
1796
2282
|
ref,
|
|
@@ -1812,7 +2298,7 @@ WavelengthMenu.displayName = "WavelengthMenu";
|
|
|
1812
2298
|
|
|
1813
2299
|
// src/components/modals/WavelengthSwitch.tsx
|
|
1814
2300
|
import { useRef as useRef22, useEffect as useEffect22 } from "react";
|
|
1815
|
-
import { jsx as
|
|
2301
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1816
2302
|
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color, labelFont, checked, value, onWavelengthSwitchChange, customStyle, ...rest }) => {
|
|
1817
2303
|
const ref = useRef22(null);
|
|
1818
2304
|
useEffect22(() => {
|
|
@@ -1844,13 +2330,13 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color, labelFon
|
|
|
1844
2330
|
el.addEventListener("wavelength-switch-change", handleEvent);
|
|
1845
2331
|
return () => el.removeEventListener("wavelength-switch-change", handleEvent);
|
|
1846
2332
|
}, [onWavelengthSwitchChange]);
|
|
1847
|
-
return /* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ jsx27("wavelength-switch", { ref, ...rest });
|
|
1848
2334
|
};
|
|
1849
2335
|
WavelengthSwitch.displayName = "WavelengthSwitch";
|
|
1850
2336
|
|
|
1851
2337
|
// src/components/modals/WavelengthDialog.tsx
|
|
1852
2338
|
import { useRef as useRef23, useEffect as useEffect23 } from "react";
|
|
1853
|
-
import { jsx as
|
|
2339
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1854
2340
|
var WavelengthDialog = ({
|
|
1855
2341
|
children,
|
|
1856
2342
|
customStyle,
|
|
@@ -1940,13 +2426,13 @@ var WavelengthDialog = ({
|
|
|
1940
2426
|
rightBtnColor,
|
|
1941
2427
|
fontFamily
|
|
1942
2428
|
]);
|
|
1943
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx28("wavelength-dialog", { ref, ...rest, children });
|
|
1944
2430
|
};
|
|
1945
2431
|
WavelengthDialog.displayName = "WavelengthDialog";
|
|
1946
2432
|
|
|
1947
2433
|
// src/components/modals/WavelengthPagination.tsx
|
|
1948
2434
|
import { useRef as useRef24, useEffect as useEffect24 } from "react";
|
|
1949
|
-
import { jsx as
|
|
2435
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1950
2436
|
var WavelengthPagination = ({
|
|
1951
2437
|
testProp,
|
|
1952
2438
|
children,
|
|
@@ -2002,7 +2488,7 @@ var WavelengthPagination = ({
|
|
|
2002
2488
|
el.removeEventListener("page-change", handlePageChange);
|
|
2003
2489
|
};
|
|
2004
2490
|
}, [testProp, textColor, font, fontSize, border, borderRadius, padding, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor, disabledColor, onPageChange]);
|
|
2005
|
-
return /* @__PURE__ */
|
|
2491
|
+
return /* @__PURE__ */ jsx29("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
|
|
2006
2492
|
};
|
|
2007
2493
|
WavelengthPagination.displayName = "WavelengthPagination";
|
|
2008
2494
|
|
|
@@ -2011,7 +2497,7 @@ import { WavelengthPagination as WavelengthPagination2 } from "@wavelengthusaf/w
|
|
|
2011
2497
|
|
|
2012
2498
|
// src/components/sliders/WavelengthSlider.tsx
|
|
2013
2499
|
import { useRef as useRef25, useEffect as useEffect25 } from "react";
|
|
2014
|
-
import { jsx as
|
|
2500
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2015
2501
|
var WavelengthSlider = ({ children, customStyle, value, maxVal, minVal, step, handleChange, labelFunc, valueDisplayed, marks, color, width, ...rest }) => {
|
|
2016
2502
|
const ref = useRef25(null);
|
|
2017
2503
|
useEffect25(() => {
|
|
@@ -2039,14 +2525,14 @@ var WavelengthSlider = ({ children, customStyle, value, maxVal, minVal, step, ha
|
|
|
2039
2525
|
el.addEventListener("slider-change", onSliderChange);
|
|
2040
2526
|
return () => el.removeEventListener("slider-change", onSliderChange);
|
|
2041
2527
|
}, [handleChange]);
|
|
2042
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsx30("wavelength-slider", { ref, ...rest, children });
|
|
2043
2529
|
};
|
|
2044
2530
|
WavelengthSlider.displayName = "WavelengthSlider";
|
|
2045
2531
|
|
|
2046
2532
|
// src/components/TextField/WavelengthInput.tsx
|
|
2047
2533
|
import { useRef as useRef26, useEffect as useEffect26, forwardRef as forwardRef3, useImperativeHandle as useImperativeHandle4 } from "react";
|
|
2048
2534
|
import "@wavelengthusaf/web-components";
|
|
2049
|
-
import { jsx as
|
|
2535
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2050
2536
|
var WavelengthInput = forwardRef3(
|
|
2051
2537
|
({
|
|
2052
2538
|
id,
|
|
@@ -2195,7 +2681,7 @@ var WavelengthInput = forwardRef3(
|
|
|
2195
2681
|
...style,
|
|
2196
2682
|
...backgroundColor ? { ["--wavelength-label-background"]: backgroundColor } : {}
|
|
2197
2683
|
};
|
|
2198
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ jsx31("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
|
|
2199
2685
|
}
|
|
2200
2686
|
);
|
|
2201
2687
|
WavelengthInput.displayName = "WavelengthInput";
|
|
@@ -2205,9 +2691,9 @@ import { WavelengthInput as WavelengthInput2 } from "@wavelengthusaf/web-compone
|
|
|
2205
2691
|
|
|
2206
2692
|
// src/components/DataTable/WavelengthDataTable.tsx
|
|
2207
2693
|
import { useEffect as useEffect27, useRef as useRef27, useState } from "react";
|
|
2208
|
-
import
|
|
2209
|
-
import { jsx as
|
|
2210
|
-
var ModalInputDiv =
|
|
2694
|
+
import styled2 from "styled-components";
|
|
2695
|
+
import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2696
|
+
var ModalInputDiv = styled2.div`
|
|
2211
2697
|
display: flex;
|
|
2212
2698
|
flex-direction: column; /* Corrected this line */
|
|
2213
2699
|
gap: 3px;
|
|
@@ -2237,7 +2723,7 @@ var ModalInputDiv = styled.div`
|
|
|
2237
2723
|
}
|
|
2238
2724
|
}
|
|
2239
2725
|
`;
|
|
2240
|
-
var ModalOverlay =
|
|
2726
|
+
var ModalOverlay = styled2.div`
|
|
2241
2727
|
position: fixed;
|
|
2242
2728
|
bottom: 19%;
|
|
2243
2729
|
right: 15%;
|
|
@@ -2249,7 +2735,7 @@ var ModalOverlay = styled.div`
|
|
|
2249
2735
|
align-items: center;
|
|
2250
2736
|
z-index: 1;
|
|
2251
2737
|
`;
|
|
2252
|
-
var ModalWrapper =
|
|
2738
|
+
var ModalWrapper = styled2.div`
|
|
2253
2739
|
background-color: white;
|
|
2254
2740
|
border-radius: 8px;
|
|
2255
2741
|
padding: 20px;
|
|
@@ -2260,7 +2746,7 @@ var ModalWrapper = styled.div`
|
|
|
2260
2746
|
display: flex;
|
|
2261
2747
|
align-items: center;
|
|
2262
2748
|
`;
|
|
2263
|
-
var ModalClose =
|
|
2749
|
+
var ModalClose = styled2.button`
|
|
2264
2750
|
position: absolute;
|
|
2265
2751
|
top: 10px;
|
|
2266
2752
|
right: 10px;
|
|
@@ -2270,16 +2756,16 @@ var ModalClose = styled.button`
|
|
|
2270
2756
|
background: none;
|
|
2271
2757
|
z-index: 2;
|
|
2272
2758
|
`;
|
|
2273
|
-
var TableHeadStyle =
|
|
2759
|
+
var TableHeadStyle = styled2.th`
|
|
2274
2760
|
position: relative;
|
|
2275
2761
|
`;
|
|
2276
|
-
var KebabMenu =
|
|
2762
|
+
var KebabMenu = styled2.div`
|
|
2277
2763
|
display: inline-block;
|
|
2278
2764
|
position: absolute;
|
|
2279
2765
|
right: 0;
|
|
2280
2766
|
top: 2px;
|
|
2281
2767
|
`;
|
|
2282
|
-
var KebabIcon =
|
|
2768
|
+
var KebabIcon = styled2.div`
|
|
2283
2769
|
cursor: pointer;
|
|
2284
2770
|
font-size: 20px;
|
|
2285
2771
|
padding: 5px;
|
|
@@ -2292,7 +2778,7 @@ var KebabIcon = styled.div`
|
|
|
2292
2778
|
color: #8fd8ff;
|
|
2293
2779
|
}
|
|
2294
2780
|
`;
|
|
2295
|
-
var MenuOptions =
|
|
2781
|
+
var MenuOptions = styled2.ul`
|
|
2296
2782
|
position: absolute;
|
|
2297
2783
|
right: 0;
|
|
2298
2784
|
top: 100%;
|
|
@@ -2315,7 +2801,7 @@ var MenuOptions = styled.ul`
|
|
|
2315
2801
|
}
|
|
2316
2802
|
}
|
|
2317
2803
|
`;
|
|
2318
|
-
var StyledBoxDiv =
|
|
2804
|
+
var StyledBoxDiv = styled2.div`
|
|
2319
2805
|
background-color: white;
|
|
2320
2806
|
width: 700px;
|
|
2321
2807
|
height: 480px;
|
|
@@ -2323,7 +2809,7 @@ var StyledBoxDiv = styled.div`
|
|
|
2323
2809
|
border-top-left-radius: 10px;
|
|
2324
2810
|
border-top-right-radius: 10px;
|
|
2325
2811
|
`;
|
|
2326
|
-
var StyledNavBoxDiv =
|
|
2812
|
+
var StyledNavBoxDiv = styled2.div`
|
|
2327
2813
|
background-color: white;
|
|
2328
2814
|
width: 700px;
|
|
2329
2815
|
display: flex; /* Make parent a flex-container */
|
|
@@ -2333,13 +2819,13 @@ var StyledNavBoxDiv = styled.div`
|
|
|
2333
2819
|
|
|
2334
2820
|
box-shadow: 0.5px 3px 5px black;
|
|
2335
2821
|
`;
|
|
2336
|
-
var StyledTd =
|
|
2822
|
+
var StyledTd = styled2.td`
|
|
2337
2823
|
border-top: 1px solid #c6c7cc;
|
|
2338
2824
|
border-bottom: 1px solid #c6c7cc;
|
|
2339
2825
|
padding: 10px 15px;
|
|
2340
2826
|
vertical-align: middle;
|
|
2341
2827
|
`;
|
|
2342
|
-
var StyledTableTwo =
|
|
2828
|
+
var StyledTableTwo = styled2.table`
|
|
2343
2829
|
width: 95%;
|
|
2344
2830
|
height: 95%;
|
|
2345
2831
|
border-collapse: collapse;
|
|
@@ -2365,7 +2851,7 @@ var StyledTableTwo = styled.table`
|
|
|
2365
2851
|
}
|
|
2366
2852
|
}
|
|
2367
2853
|
`;
|
|
2368
|
-
var StyledInput =
|
|
2854
|
+
var StyledInput = styled2.input`
|
|
2369
2855
|
height: 100%;
|
|
2370
2856
|
width: 100%;
|
|
2371
2857
|
outline: none;
|
|
@@ -2481,10 +2967,10 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2481
2967
|
setEditingId(null);
|
|
2482
2968
|
};
|
|
2483
2969
|
const headers = columns.map((column, index) => {
|
|
2484
|
-
return /* @__PURE__ */
|
|
2970
|
+
return /* @__PURE__ */ jsxs10(TableHeadStyle, { children: [
|
|
2485
2971
|
column.title,
|
|
2486
|
-
/* @__PURE__ */
|
|
2487
|
-
/* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ jsxs10(KebabMenu, { ref: menuRef, children: [
|
|
2973
|
+
/* @__PURE__ */ jsx32(
|
|
2488
2974
|
KebabIcon,
|
|
2489
2975
|
{
|
|
2490
2976
|
title: `KebabIcon-${index}`,
|
|
@@ -2494,27 +2980,27 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2494
2980
|
children: "\u22EE"
|
|
2495
2981
|
}
|
|
2496
2982
|
),
|
|
2497
|
-
isOpen && editingMenuKey === column.key && /* @__PURE__ */
|
|
2498
|
-
sortOrder === "asc" ? /* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2983
|
+
isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs10(MenuOptions, { children: [
|
|
2984
|
+
sortOrder === "asc" ? /* @__PURE__ */ jsxs10("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
|
|
2985
|
+
/* @__PURE__ */ jsx32("span", { children: "\u2B06" }),
|
|
2500
2986
|
" Sort ASC"
|
|
2501
|
-
] }) : /* @__PURE__ */
|
|
2502
|
-
/* @__PURE__ */
|
|
2987
|
+
] }) : /* @__PURE__ */ jsxs10("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
|
|
2988
|
+
/* @__PURE__ */ jsx32("span", { children: "\u2B07" }),
|
|
2503
2989
|
" Sort DESC"
|
|
2504
2990
|
] }),
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
2991
|
+
/* @__PURE__ */ jsxs10("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
|
|
2992
|
+
/* @__PURE__ */ jsx32("span", { children: "\u23F7" }),
|
|
2507
2993
|
" Filter"
|
|
2508
2994
|
] }),
|
|
2509
|
-
isModalOpen && /* @__PURE__ */
|
|
2510
|
-
/* @__PURE__ */
|
|
2511
|
-
/* @__PURE__ */
|
|
2512
|
-
/* @__PURE__ */
|
|
2513
|
-
/* @__PURE__ */
|
|
2995
|
+
isModalOpen && /* @__PURE__ */ jsx32(ModalOverlay, { children: /* @__PURE__ */ jsxs10(ModalWrapper, { ref: modalRef, children: [
|
|
2996
|
+
/* @__PURE__ */ jsx32(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
|
|
2997
|
+
/* @__PURE__ */ jsxs10(ModalInputDiv, { children: [
|
|
2998
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "filterSelectId", children: "Columns: " }),
|
|
2999
|
+
/* @__PURE__ */ jsx32("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx32("option", { children: item.key }, item.key)) })
|
|
2514
3000
|
] }),
|
|
2515
|
-
/* @__PURE__ */
|
|
2516
|
-
/* @__PURE__ */
|
|
2517
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ jsxs10(ModalInputDiv, { children: [
|
|
3002
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "filterInputId", children: "Values: " }),
|
|
3003
|
+
/* @__PURE__ */ jsx32(
|
|
2518
3004
|
"input",
|
|
2519
3005
|
{
|
|
2520
3006
|
title: `Inputfiltertest-${index}`,
|
|
@@ -2535,8 +3021,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2535
3021
|
] }, index)
|
|
2536
3022
|
] }, `headCell-${index}`);
|
|
2537
3023
|
});
|
|
2538
|
-
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */
|
|
2539
|
-
return /* @__PURE__ */
|
|
3024
|
+
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx32("tr", { children: /* @__PURE__ */ jsx32("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx32("tr", { children: columns.map((column, index2) => {
|
|
3025
|
+
return /* @__PURE__ */ jsx32(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx32(
|
|
2540
3026
|
StyledInput,
|
|
2541
3027
|
{
|
|
2542
3028
|
title: `styledRow-${item.id}-${column.key}-${index2}`,
|
|
@@ -2553,21 +3039,21 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2553
3039
|
},
|
|
2554
3040
|
autoFocus: true
|
|
2555
3041
|
}
|
|
2556
|
-
) : /* @__PURE__ */
|
|
3042
|
+
) : /* @__PURE__ */ jsx32("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
|
|
2557
3043
|
}) }, item.id));
|
|
2558
|
-
return /* @__PURE__ */
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
3044
|
+
return /* @__PURE__ */ jsxs10("div", { id, children: [
|
|
3045
|
+
/* @__PURE__ */ jsx32(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs10(StyledTableTwo, { title: "StyledTable", children: [
|
|
3046
|
+
/* @__PURE__ */ jsx32("thead", { children: /* @__PURE__ */ jsx32("tr", { children: headers }) }),
|
|
3047
|
+
/* @__PURE__ */ jsx32("tbody", { children: rows })
|
|
2562
3048
|
] }) }),
|
|
2563
|
-
/* @__PURE__ */
|
|
3049
|
+
/* @__PURE__ */ jsx32(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx32(WavelengthPagination, { customStyle: {}, totalPages, currentPage, onPageChange: setCurrentPage, variant: "basic" }) })
|
|
2564
3050
|
] });
|
|
2565
3051
|
};
|
|
2566
3052
|
WavelengthDataTable.displayName = "WavelengthDataTable";
|
|
2567
3053
|
|
|
2568
3054
|
// src/components/DataTable/WavelengthDataGrid.tsx
|
|
2569
3055
|
import { useRef as useRef28, useEffect as useEffect28 } from "react";
|
|
2570
|
-
import { jsx as
|
|
3056
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2571
3057
|
var WavelengthDataGrid = ({ columns, rows, pageSize = 10, checkboxSelection = false, hidePagination = false, onSelectionChange, customStyle, ...rest }) => {
|
|
2572
3058
|
const ref = useRef28(null);
|
|
2573
3059
|
useEffect28(() => {
|
|
@@ -2591,34 +3077,34 @@ var WavelengthDataGrid = ({ columns, rows, pageSize = 10, checkboxSelection = fa
|
|
|
2591
3077
|
el.removeEventListener("selection-change", handleSelectionChange);
|
|
2592
3078
|
};
|
|
2593
3079
|
}, [columns, rows, pageSize, checkboxSelection, hidePagination, customStyle, onSelectionChange]);
|
|
2594
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsx33("wavelength-data-grid", { ref, ...rest });
|
|
2595
3081
|
};
|
|
2596
3082
|
WavelengthDataGrid.displayName = "WavelengthDataGrid";
|
|
2597
3083
|
|
|
2598
3084
|
// src/components/DataTable/SubRowTable/ChildSubTable.tsx
|
|
2599
3085
|
import { useMemo as useMemo3, useState as useState2, Fragment as Fragment4 } from "react";
|
|
2600
|
-
import
|
|
2601
|
-
import { Fragment as Fragment5, jsx as
|
|
2602
|
-
var TableContainer =
|
|
3086
|
+
import styled3 from "styled-components";
|
|
3087
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3088
|
+
var TableContainer = styled3.div`
|
|
2603
3089
|
width: 1200px;
|
|
2604
3090
|
border-radius: 16px;
|
|
2605
3091
|
`;
|
|
2606
|
-
var TableRow =
|
|
3092
|
+
var TableRow = styled3.div`
|
|
2607
3093
|
display: grid;
|
|
2608
3094
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
2609
3095
|
`;
|
|
2610
|
-
var TablePrimaryRow =
|
|
3096
|
+
var TablePrimaryRow = styled3.div`
|
|
2611
3097
|
display: grid;
|
|
2612
3098
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
2613
3099
|
`;
|
|
2614
|
-
var BodyRowContainer =
|
|
3100
|
+
var BodyRowContainer = styled3.div`
|
|
2615
3101
|
border: 1px solid black;
|
|
2616
3102
|
background-color: white;
|
|
2617
3103
|
border-radius: 16px;
|
|
2618
3104
|
overflow: hidden;
|
|
2619
3105
|
margin-bottom: 10px;
|
|
2620
3106
|
`;
|
|
2621
|
-
var TableHeaderCell =
|
|
3107
|
+
var TableHeaderCell = styled3.div`
|
|
2622
3108
|
padding-left: 12px;
|
|
2623
3109
|
padding-right: 25px;
|
|
2624
3110
|
height: 60px;
|
|
@@ -2626,7 +3112,7 @@ var TableHeaderCell = styled2.div`
|
|
|
2626
3112
|
display: flex;
|
|
2627
3113
|
align-items: center;
|
|
2628
3114
|
`;
|
|
2629
|
-
var TableBodyCell =
|
|
3115
|
+
var TableBodyCell = styled3.div`
|
|
2630
3116
|
background-color: #fff;
|
|
2631
3117
|
color: black;
|
|
2632
3118
|
position: relative;
|
|
@@ -2635,27 +3121,27 @@ var TableBodyCell = styled2.div`
|
|
|
2635
3121
|
font-size: ${(props) => props.$primaryBoldState ? "24px" : "16px"};
|
|
2636
3122
|
font-weight: ${(props) => props.$primaryBoldState ? "bold" : "normal"};
|
|
2637
3123
|
`;
|
|
2638
|
-
var ButtonStylingRow =
|
|
3124
|
+
var ButtonStylingRow = styled3.div`
|
|
2639
3125
|
display: flex;
|
|
2640
3126
|
flex-direction: row;
|
|
2641
3127
|
`;
|
|
2642
|
-
var BottomArrowBar =
|
|
3128
|
+
var BottomArrowBar = styled3.div`
|
|
2643
3129
|
background-color: #e9e9e9;
|
|
2644
3130
|
text-align: center;
|
|
2645
3131
|
`;
|
|
2646
|
-
var BottomUpArrowBar =
|
|
3132
|
+
var BottomUpArrowBar = styled3.div`
|
|
2647
3133
|
background-color: #e9e9e9;
|
|
2648
3134
|
text-align: center;
|
|
2649
3135
|
position: relative;
|
|
2650
3136
|
`;
|
|
2651
|
-
var SubDataTable =
|
|
3137
|
+
var SubDataTable = styled3.table`
|
|
2652
3138
|
background-color: white;
|
|
2653
3139
|
color: black;
|
|
2654
3140
|
width: 100%;
|
|
2655
3141
|
border-collapse: collapse;
|
|
2656
3142
|
line-height: 1.2;
|
|
2657
3143
|
`;
|
|
2658
|
-
var SubDataTableHeaderRow =
|
|
3144
|
+
var SubDataTableHeaderRow = styled3.tr`
|
|
2659
3145
|
height: 50px;
|
|
2660
3146
|
background-color: #304359;
|
|
2661
3147
|
color: white;
|
|
@@ -2666,10 +3152,10 @@ var SubDataTableHeaderRow = styled2.tr`
|
|
|
2666
3152
|
white-space: nowrap;
|
|
2667
3153
|
}
|
|
2668
3154
|
`;
|
|
2669
|
-
var SubDataTableBodyRow =
|
|
3155
|
+
var SubDataTableBodyRow = styled3.tbody`
|
|
2670
3156
|
font-size: 14px;
|
|
2671
3157
|
`;
|
|
2672
|
-
var SubDataTableBodyRowContainer =
|
|
3158
|
+
var SubDataTableBodyRowContainer = styled3.tr`
|
|
2673
3159
|
td {
|
|
2674
3160
|
padding: 10px 0;
|
|
2675
3161
|
max-width: 100px;
|
|
@@ -2679,13 +3165,13 @@ var SubDataTableBodyRowContainer = styled2.tr`
|
|
|
2679
3165
|
background-color: #96e0e5;
|
|
2680
3166
|
}
|
|
2681
3167
|
`;
|
|
2682
|
-
var SubDataTableCell =
|
|
3168
|
+
var SubDataTableCell = styled3.td`
|
|
2683
3169
|
text-align: center;
|
|
2684
3170
|
`;
|
|
2685
|
-
var SubDataHeaderColumn =
|
|
3171
|
+
var SubDataHeaderColumn = styled3.thead`
|
|
2686
3172
|
background-color: #304359;
|
|
2687
3173
|
`;
|
|
2688
|
-
var SortButton =
|
|
3174
|
+
var SortButton = styled3.button`
|
|
2689
3175
|
font-size: 16px;
|
|
2690
3176
|
font-weight: bold;
|
|
2691
3177
|
color: white;
|
|
@@ -2693,7 +3179,7 @@ var SortButton = styled2.button`
|
|
|
2693
3179
|
border: none;
|
|
2694
3180
|
white-space: nowrap;
|
|
2695
3181
|
`;
|
|
2696
|
-
var DownloadMissionButton =
|
|
3182
|
+
var DownloadMissionButton = styled3.button`
|
|
2697
3183
|
width: 217px;
|
|
2698
3184
|
height: 45px;
|
|
2699
3185
|
padding: 12px 32px 12px 32px;
|
|
@@ -2722,7 +3208,7 @@ var DownloadMissionButton = styled2.button`
|
|
|
2722
3208
|
transition: background-color 0.2s ease;
|
|
2723
3209
|
}
|
|
2724
3210
|
`;
|
|
2725
|
-
var AddButton =
|
|
3211
|
+
var AddButton = styled3.button`
|
|
2726
3212
|
width: 130px;
|
|
2727
3213
|
height: 45px;
|
|
2728
3214
|
border: 1px solid #1a8083;
|
|
@@ -2752,7 +3238,7 @@ var AddButton = styled2.button`
|
|
|
2752
3238
|
transition: background-color 0.2s ease;
|
|
2753
3239
|
}
|
|
2754
3240
|
`;
|
|
2755
|
-
var DownloadArrow =
|
|
3241
|
+
var DownloadArrow = styled3.button`
|
|
2756
3242
|
background-color: transparent;
|
|
2757
3243
|
border: none;
|
|
2758
3244
|
|
|
@@ -2835,45 +3321,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2835
3321
|
return result;
|
|
2836
3322
|
}, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
|
|
2837
3323
|
const renderSortButton = (column, sortOrder2, sortKey2) => {
|
|
2838
|
-
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */
|
|
3324
|
+
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2839
3325
|
column.title,
|
|
2840
3326
|
" ",
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
] }) }) : /* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
3328
|
+
] }) }) : /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2843
3329
|
column.title,
|
|
2844
3330
|
" ",
|
|
2845
|
-
/* @__PURE__ */
|
|
2846
|
-
] }) }) : /* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
3332
|
+
] }) }) : /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2847
3333
|
column.title,
|
|
2848
3334
|
" ",
|
|
2849
|
-
/* @__PURE__ */
|
|
3335
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
2850
3336
|
] }) });
|
|
2851
3337
|
};
|
|
2852
3338
|
const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
|
|
2853
3339
|
const columnKey = trimBeforePeriod2(column.key);
|
|
2854
|
-
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */
|
|
3340
|
+
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2855
3341
|
column.title,
|
|
2856
3342
|
" ",
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
] }) : /* @__PURE__ */
|
|
3343
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
3344
|
+
] }) : /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2859
3345
|
column.title,
|
|
2860
3346
|
" ",
|
|
2861
|
-
/* @__PURE__ */
|
|
2862
|
-
] }) : /* @__PURE__ */
|
|
3347
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
3348
|
+
] }) : /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2863
3349
|
column.title,
|
|
2864
3350
|
" ",
|
|
2865
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
2866
3352
|
] });
|
|
2867
3353
|
};
|
|
2868
3354
|
const headers = HeadColumns.map((column) => {
|
|
2869
|
-
return /* @__PURE__ */
|
|
3355
|
+
return /* @__PURE__ */ jsx34(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
|
|
2870
3356
|
});
|
|
2871
3357
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
2872
|
-
return /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ jsx34("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
2873
3359
|
});
|
|
2874
3360
|
const subDataRows = (itemId) => {
|
|
2875
|
-
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
3361
|
+
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx34(Fragment4, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs11(SubDataTableBodyRowContainer, { children: [
|
|
3362
|
+
/* @__PURE__ */ jsx34("td", { children: /* @__PURE__ */ jsx34(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx34("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34(
|
|
2877
3363
|
"path",
|
|
2878
3364
|
{
|
|
2879
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",
|
|
@@ -2884,32 +3370,32 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2884
3370
|
const columnKey = trimBeforePeriod2(column.key);
|
|
2885
3371
|
const value = fileItem[columnKey];
|
|
2886
3372
|
if (value !== void 0) {
|
|
2887
|
-
return /* @__PURE__ */
|
|
3373
|
+
return /* @__PURE__ */ jsx34(SubDataTableCell, { children: /* @__PURE__ */ jsx34("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
|
|
2888
3374
|
}
|
|
2889
3375
|
})
|
|
2890
3376
|
] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
|
|
2891
3377
|
};
|
|
2892
|
-
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
2894
|
-
/* @__PURE__ */
|
|
2895
|
-
/* @__PURE__ */
|
|
2896
|
-
/* @__PURE__ */
|
|
3378
|
+
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs11(BodyRowContainer, { children: [
|
|
3379
|
+
/* @__PURE__ */ jsx34(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx34(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
|
|
3380
|
+
/* @__PURE__ */ jsxs11(ButtonStylingRow, { children: [
|
|
3381
|
+
/* @__PURE__ */ jsx34(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
3382
|
+
/* @__PURE__ */ jsx34(AddButton, { onClick: addFilesOnClick, children: "Add files" })
|
|
2897
3383
|
] }),
|
|
2898
|
-
openRow !== item.id && /* @__PURE__ */
|
|
2899
|
-
openRow === item.id && /* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
2902
|
-
/* @__PURE__ */
|
|
3384
|
+
openRow !== item.id && /* @__PURE__ */ jsx34(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx34("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
|
|
3385
|
+
openRow === item.id && /* @__PURE__ */ jsxs11("div", { children: [
|
|
3386
|
+
/* @__PURE__ */ jsxs11(SubDataTable, { children: [
|
|
3387
|
+
/* @__PURE__ */ jsx34(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs11(SubDataTableHeaderRow, { children: [
|
|
3388
|
+
/* @__PURE__ */ jsx34("th", {}),
|
|
2903
3389
|
SubDataHeaders
|
|
2904
3390
|
] }) }),
|
|
2905
|
-
/* @__PURE__ */
|
|
3391
|
+
/* @__PURE__ */ jsx34(SubDataTableBodyRow, { children: subDataRows(item.id) })
|
|
2906
3392
|
] }),
|
|
2907
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsx34(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx34("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
|
|
2908
3394
|
] })
|
|
2909
3395
|
] }, `Bodycontainer-${item.id}-${index}`));
|
|
2910
|
-
return /* @__PURE__ */
|
|
2911
|
-
/* @__PURE__ */
|
|
2912
|
-
/* @__PURE__ */
|
|
3396
|
+
return /* @__PURE__ */ jsxs11(TableContainer, { children: [
|
|
3397
|
+
/* @__PURE__ */ jsx34(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
|
|
3398
|
+
/* @__PURE__ */ jsx34("div", { title: "tablebodies", children: dataRows })
|
|
2913
3399
|
] });
|
|
2914
3400
|
};
|
|
2915
3401
|
ChildDataTable.displayName = "ChildDataTable";
|
|
@@ -2918,7 +3404,7 @@ ChildDataTable.displayName = "ChildDataTable";
|
|
|
2918
3404
|
import { useRef as useRef29, useEffect as useEffect29, useMemo as useMemo4 } from "react";
|
|
2919
3405
|
import { createRoot } from "react-dom/client";
|
|
2920
3406
|
import "@wavelengthusaf/web-components";
|
|
2921
|
-
import { jsx as
|
|
3407
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2922
3408
|
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, externalSort, sortKey, sortOrder, onAction, ...rest }) => {
|
|
2923
3409
|
const tableRef = useRef29(null);
|
|
2924
3410
|
const cellRoots = useRef29(/* @__PURE__ */ new Map());
|
|
@@ -3014,7 +3500,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
3014
3500
|
dropdownRoots.current.clear();
|
|
3015
3501
|
};
|
|
3016
3502
|
}, [data, onAction]);
|
|
3017
|
-
return /* @__PURE__ */
|
|
3503
|
+
return /* @__PURE__ */ jsx35("wavelength-child-data-table", { ref: tableRef, ...rest });
|
|
3018
3504
|
};
|
|
3019
3505
|
ChildDataTable2.displayName = "ChildDataTable";
|
|
3020
3506
|
|
|
@@ -3023,9 +3509,9 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
|
|
|
3023
3509
|
|
|
3024
3510
|
// src/components/DataTable/NestedDataTable/NestedDataTable.tsx
|
|
3025
3511
|
import { useState as useState3 } from "react";
|
|
3026
|
-
import
|
|
3027
|
-
import { Fragment as Fragment6, jsx as
|
|
3028
|
-
var TableStyle =
|
|
3512
|
+
import styled4 from "styled-components";
|
|
3513
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3514
|
+
var TableStyle = styled4.table`
|
|
3029
3515
|
width: 100%;
|
|
3030
3516
|
height: 100%;
|
|
3031
3517
|
border-collapse: collapse;
|
|
@@ -3041,26 +3527,26 @@ var TableStyle = styled3.table`
|
|
|
3041
3527
|
margin-right: auto;
|
|
3042
3528
|
position: absolute;
|
|
3043
3529
|
`;
|
|
3044
|
-
var MainThHeaders =
|
|
3530
|
+
var MainThHeaders = styled4.th`
|
|
3045
3531
|
&:not(:last-child) {
|
|
3046
3532
|
border-right: 1px solid #c6c7cc;
|
|
3047
3533
|
}
|
|
3048
3534
|
`;
|
|
3049
|
-
var SubDataTr =
|
|
3535
|
+
var SubDataTr = styled4.tr`
|
|
3050
3536
|
background-color: white;
|
|
3051
3537
|
|
|
3052
3538
|
&:nth-child(even) {
|
|
3053
3539
|
background-color: #e0ffff;
|
|
3054
3540
|
}
|
|
3055
3541
|
`;
|
|
3056
|
-
var PrimaryTrRows =
|
|
3542
|
+
var PrimaryTrRows = styled4.tr`
|
|
3057
3543
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
3058
3544
|
`;
|
|
3059
|
-
var SubTrRows =
|
|
3545
|
+
var SubTrRows = styled4.tr`
|
|
3060
3546
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
3061
3547
|
height: 120px;
|
|
3062
3548
|
`;
|
|
3063
|
-
var SubTableStyle =
|
|
3549
|
+
var SubTableStyle = styled4.table`
|
|
3064
3550
|
width: 95%;
|
|
3065
3551
|
border-collapse: collapse;
|
|
3066
3552
|
margin-top: -15px;
|
|
@@ -3080,7 +3566,7 @@ var SubTableStyle = styled3.table`
|
|
|
3080
3566
|
}
|
|
3081
3567
|
}
|
|
3082
3568
|
`;
|
|
3083
|
-
var DropdownButton =
|
|
3569
|
+
var DropdownButton = styled4.button`
|
|
3084
3570
|
background-color: transparent;
|
|
3085
3571
|
background-repeat: no-repeat;
|
|
3086
3572
|
border: none;
|
|
@@ -3090,7 +3576,7 @@ var DropdownButton = styled3.button`
|
|
|
3090
3576
|
font-weight: bold; /* This makes the UTF symbols bold */
|
|
3091
3577
|
font-size: 20px;
|
|
3092
3578
|
`;
|
|
3093
|
-
var PrimaryTdSpan =
|
|
3579
|
+
var PrimaryTdSpan = styled4.td`
|
|
3094
3580
|
&:not(:last-child) {
|
|
3095
3581
|
border-right: 1px solid black;
|
|
3096
3582
|
}
|
|
@@ -3111,57 +3597,57 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
3111
3597
|
setPrimaryRowIndex(rowIndex);
|
|
3112
3598
|
};
|
|
3113
3599
|
const headers = HeadColumns.map((column, index) => {
|
|
3114
|
-
return /* @__PURE__ */
|
|
3600
|
+
return /* @__PURE__ */ jsx36(MainThHeaders, { children: column.title }, `headCell-${index}`);
|
|
3115
3601
|
});
|
|
3116
3602
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
3117
|
-
return /* @__PURE__ */
|
|
3603
|
+
return /* @__PURE__ */ jsx36("th", { children: column.title }, `SubHeadCell-${index}`);
|
|
3118
3604
|
});
|
|
3119
|
-
const subDataRows = !data?.length ? /* @__PURE__ */
|
|
3605
|
+
const subDataRows = !data?.length ? /* @__PURE__ */ jsx36("tr", { children: /* @__PURE__ */ jsx36("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsx36(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
|
|
3120
3606
|
const columnKey = trimBeforePeriod(column.key);
|
|
3121
3607
|
const value = item.Details?.[columnKey];
|
|
3122
3608
|
console.log("value: ", value);
|
|
3123
3609
|
if (value !== void 0) {
|
|
3124
|
-
return /* @__PURE__ */
|
|
3610
|
+
return /* @__PURE__ */ jsx36("td", { children: /* @__PURE__ */ jsx36("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
3125
3611
|
}
|
|
3126
3612
|
}) }, `Sub-${item.id}-${index}`) }));
|
|
3127
|
-
const childRows = /* @__PURE__ */
|
|
3128
|
-
/* @__PURE__ */
|
|
3129
|
-
/* @__PURE__ */
|
|
3613
|
+
const childRows = /* @__PURE__ */ jsxs12(SubTableStyle, { children: [
|
|
3614
|
+
/* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsx36("tr", { children: SubDataHeaders }) }),
|
|
3615
|
+
/* @__PURE__ */ jsx36("tbody", { children: subDataRows })
|
|
3130
3616
|
] });
|
|
3131
|
-
const rows = !data?.length ? /* @__PURE__ */
|
|
3132
|
-
/* @__PURE__ */
|
|
3133
|
-
/* @__PURE__ */
|
|
3617
|
+
const rows = !data?.length ? /* @__PURE__ */ jsx36("tr", { children: /* @__PURE__ */ jsx36("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
3618
|
+
/* @__PURE__ */ jsxs12(PrimaryTrRows, { $index: index, children: [
|
|
3619
|
+
/* @__PURE__ */ jsx36(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx36(Fragment6, { children: "\u2227" }) : /* @__PURE__ */ jsx36(Fragment6, { children: "\u2228" }) }),
|
|
3134
3620
|
HeadColumns.map((column, index2) => {
|
|
3135
|
-
return /* @__PURE__ */
|
|
3621
|
+
return /* @__PURE__ */ jsx36(PrimaryTdSpan, { children: /* @__PURE__ */ jsx36("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
|
|
3136
3622
|
})
|
|
3137
3623
|
] }, index),
|
|
3138
|
-
isOpen && primaryRowIndex === index && /* @__PURE__ */
|
|
3624
|
+
isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx36(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx36("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
|
|
3139
3625
|
] }));
|
|
3140
|
-
return /* @__PURE__ */
|
|
3141
|
-
/* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */
|
|
3626
|
+
return /* @__PURE__ */ jsx36("div", { id, children: /* @__PURE__ */ jsxs12(TableStyle, { children: [
|
|
3627
|
+
/* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsxs12("tr", { children: [
|
|
3628
|
+
/* @__PURE__ */ jsx36("th", { title: "dropdownth" }),
|
|
3143
3629
|
headers
|
|
3144
3630
|
] }) }),
|
|
3145
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ jsx36("tbody", { children: rows })
|
|
3146
3632
|
] }) });
|
|
3147
3633
|
};
|
|
3148
3634
|
NestedDataTable.displayName = "NestedDataTable";
|
|
3149
3635
|
|
|
3150
3636
|
// src/components/AutoComplete/WavelengthAutoComplete.tsx
|
|
3151
3637
|
import { useEffect as useEffect30, useRef as useRef31, useState as useState4 } from "react";
|
|
3152
|
-
import
|
|
3153
|
-
import { Fragment as Fragment7, jsx as
|
|
3154
|
-
var AutoContainer =
|
|
3638
|
+
import styled5 from "styled-components";
|
|
3639
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3640
|
+
var AutoContainer = styled5.div`
|
|
3155
3641
|
//position: relative;
|
|
3156
3642
|
position: relative;
|
|
3157
3643
|
width: ${(props) => props.$inputWidth || "320px"};
|
|
3158
3644
|
height: ${(props) => props.$inputHeight || "51px"};
|
|
3159
3645
|
`;
|
|
3160
|
-
var InputWrapper =
|
|
3646
|
+
var InputWrapper = styled5.div`
|
|
3161
3647
|
width: 100%;
|
|
3162
3648
|
height: 100%;
|
|
3163
3649
|
`;
|
|
3164
|
-
var Label =
|
|
3650
|
+
var Label = styled5.label`
|
|
3165
3651
|
position: absolute;
|
|
3166
3652
|
top: 50%;
|
|
3167
3653
|
left: 10px;
|
|
@@ -3173,7 +3659,7 @@ var Label = styled4.label`
|
|
|
3173
3659
|
padding: 0 5px;
|
|
3174
3660
|
background-color: transparent;
|
|
3175
3661
|
`;
|
|
3176
|
-
var Input =
|
|
3662
|
+
var Input = styled5.input`
|
|
3177
3663
|
width: 100%; //this must be 100%, as width inherit inherits the literal expression, not the value
|
|
3178
3664
|
height: 100%;
|
|
3179
3665
|
padding: 0.5rem 0.75rem;
|
|
@@ -3215,7 +3701,7 @@ var Input = styled4.input`
|
|
|
3215
3701
|
color: ${(props) => props.$defaultLabelColor || "#ccc"};
|
|
3216
3702
|
}
|
|
3217
3703
|
`;
|
|
3218
|
-
var DropDownList =
|
|
3704
|
+
var DropDownList = styled5.ul`
|
|
3219
3705
|
position: absolute;
|
|
3220
3706
|
z-index: 5;
|
|
3221
3707
|
width: 100%;
|
|
@@ -3229,7 +3715,7 @@ var DropDownList = styled4.ul`
|
|
|
3229
3715
|
overflow: scroll; //necessary for limiting scroll options
|
|
3230
3716
|
max-height: 390px; //necessary for limiting scroll options, limit to 10 per view
|
|
3231
3717
|
`;
|
|
3232
|
-
var ActiveListItem =
|
|
3718
|
+
var ActiveListItem = styled5.li`
|
|
3233
3719
|
position: relative;
|
|
3234
3720
|
width: 100%;
|
|
3235
3721
|
z-index: 9999;
|
|
@@ -3246,7 +3732,7 @@ var ActiveListItem = styled4.li`
|
|
|
3246
3732
|
background-color: #d8d8d8;
|
|
3247
3733
|
}
|
|
3248
3734
|
`;
|
|
3249
|
-
var NoHoverListItem =
|
|
3735
|
+
var NoHoverListItem = styled5.li`
|
|
3250
3736
|
position: relative;
|
|
3251
3737
|
z-index: 9999;
|
|
3252
3738
|
padding: 10px;
|
|
@@ -3367,9 +3853,9 @@ var WavelengthAutoComplete = ({
|
|
|
3367
3853
|
break;
|
|
3368
3854
|
}
|
|
3369
3855
|
};
|
|
3370
|
-
return /* @__PURE__ */
|
|
3371
|
-
/* @__PURE__ */
|
|
3372
|
-
/* @__PURE__ */
|
|
3856
|
+
return /* @__PURE__ */ jsx37(Fragment7, { children: /* @__PURE__ */ jsxs13(AutoContainer, { $inputHeight: height, $inputWidth: width, children: [
|
|
3857
|
+
/* @__PURE__ */ jsxs13(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height, $inputWidth: width, children: [
|
|
3858
|
+
/* @__PURE__ */ jsx37(
|
|
3373
3859
|
Input,
|
|
3374
3860
|
{
|
|
3375
3861
|
id: idName,
|
|
@@ -3398,11 +3884,11 @@ var WavelengthAutoComplete = ({
|
|
|
3398
3884
|
autoComplete: "off"
|
|
3399
3885
|
}
|
|
3400
3886
|
),
|
|
3401
|
-
/* @__PURE__ */
|
|
3887
|
+
/* @__PURE__ */ jsx37(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
3402
3888
|
] }),
|
|
3403
|
-
isDropdownVisible && /* @__PURE__ */
|
|
3889
|
+
isDropdownVisible && /* @__PURE__ */ jsx37(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
|
|
3404
3890
|
//suggestions length controls showing the suggestions
|
|
3405
|
-
suggestions.map((item, index) => /* @__PURE__ */
|
|
3891
|
+
suggestions.map((item, index) => /* @__PURE__ */ jsx37(
|
|
3406
3892
|
ActiveListItem,
|
|
3407
3893
|
{
|
|
3408
3894
|
"data-testid": `${idName}-input-search-list-${index + 1}`,
|
|
@@ -3415,16 +3901,16 @@ var WavelengthAutoComplete = ({
|
|
|
3415
3901
|
},
|
|
3416
3902
|
`active-list-item-${item}-${index}`
|
|
3417
3903
|
))
|
|
3418
|
-
) : /* @__PURE__ */
|
|
3904
|
+
) : /* @__PURE__ */ jsx37(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
|
|
3419
3905
|
] }) });
|
|
3420
3906
|
};
|
|
3421
3907
|
WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
|
|
3422
3908
|
|
|
3423
3909
|
// src/components/inputs/WavelengthDatePicker.tsx
|
|
3424
3910
|
import { useEffect as useEffect31, useState as useState5 } from "react";
|
|
3425
|
-
import
|
|
3426
|
-
import { jsx as
|
|
3427
|
-
var Label2 =
|
|
3911
|
+
import styled6 from "styled-components";
|
|
3912
|
+
import { jsx as jsx38, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3913
|
+
var Label2 = styled6.label`
|
|
3428
3914
|
position: absolute;
|
|
3429
3915
|
top: 50%;
|
|
3430
3916
|
left: 10px;
|
|
@@ -3436,7 +3922,7 @@ var Label2 = styled5.label`
|
|
|
3436
3922
|
padding: 0 5px;
|
|
3437
3923
|
background-color: transparent;
|
|
3438
3924
|
`;
|
|
3439
|
-
var InputWrapper2 =
|
|
3925
|
+
var InputWrapper2 = styled6.div`
|
|
3440
3926
|
position: relative;
|
|
3441
3927
|
width: ${(props) => props.$inputWidth || "320px"};
|
|
3442
3928
|
height: ${(props) => props.$inputHeight || "51px"};
|
|
@@ -3534,7 +4020,7 @@ var WavelengthDatePicker = ({
|
|
|
3534
4020
|
setValue(dateString);
|
|
3535
4021
|
if (OnDataChange !== void 0) OnDataChange(new Date(dateString));
|
|
3536
4022
|
};
|
|
3537
|
-
return /* @__PURE__ */
|
|
4023
|
+
return /* @__PURE__ */ jsxs14(
|
|
3538
4024
|
InputWrapper2,
|
|
3539
4025
|
{
|
|
3540
4026
|
id: `${idName}-inputWrapper`,
|
|
@@ -3546,7 +4032,7 @@ var WavelengthDatePicker = ({
|
|
|
3546
4032
|
$FocusLabelColor: FocusLabelColor,
|
|
3547
4033
|
$inputBackGroundColor: backgroundColor,
|
|
3548
4034
|
children: [
|
|
3549
|
-
/* @__PURE__ */
|
|
4035
|
+
/* @__PURE__ */ jsx38(
|
|
3550
4036
|
"input",
|
|
3551
4037
|
{
|
|
3552
4038
|
type: inputType,
|
|
@@ -3567,7 +4053,7 @@ var WavelengthDatePicker = ({
|
|
|
3567
4053
|
max: maxAdjusted
|
|
3568
4054
|
}
|
|
3569
4055
|
),
|
|
3570
|
-
/* @__PURE__ */
|
|
4056
|
+
/* @__PURE__ */ jsx38(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
3571
4057
|
]
|
|
3572
4058
|
}
|
|
3573
4059
|
);
|
|
@@ -3580,7 +4066,7 @@ import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/w
|
|
|
3580
4066
|
// src/components/inputs/WavelengthCheckbox.tsx
|
|
3581
4067
|
import { useRef as useRef32, useEffect as useEffect32 } from "react";
|
|
3582
4068
|
import "@wavelengthusaf/web-components";
|
|
3583
|
-
import { jsx as
|
|
4069
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3584
4070
|
var WavelengthCheckbox = ({
|
|
3585
4071
|
size,
|
|
3586
4072
|
color,
|
|
@@ -3615,13 +4101,13 @@ var WavelengthCheckbox = ({
|
|
|
3615
4101
|
el.setAttribute("text-size", textSize);
|
|
3616
4102
|
}
|
|
3617
4103
|
}, [size, color, theme, disabled, text, textSize]);
|
|
3618
|
-
return /* @__PURE__ */
|
|
4104
|
+
return /* @__PURE__ */ jsx39("wavelength-checkbox", { ref, ...rest });
|
|
3619
4105
|
};
|
|
3620
4106
|
WavelengthCheckbox.displayName = "WavelengthCheckbox";
|
|
3621
4107
|
|
|
3622
4108
|
// src/components/samples/SampleComponent.tsx
|
|
3623
4109
|
import { useRef as useRef33, useEffect as useEffect33 } from "react";
|
|
3624
|
-
import { jsx as
|
|
4110
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3625
4111
|
var SampleComponent = ({
|
|
3626
4112
|
testProp,
|
|
3627
4113
|
children,
|
|
@@ -3639,14 +4125,14 @@ var SampleComponent = ({
|
|
|
3639
4125
|
el.setAttribute("test-prop", testProp);
|
|
3640
4126
|
}
|
|
3641
4127
|
}, [testProp]);
|
|
3642
|
-
return /* @__PURE__ */
|
|
4128
|
+
return /* @__PURE__ */ jsx40("sample-component", { ref, ...rest, children });
|
|
3643
4129
|
};
|
|
3644
4130
|
SampleComponent.displayName = "SampleComponent";
|
|
3645
4131
|
|
|
3646
4132
|
// src/components/NotificationPanel/WavelengthNotificationPanel.tsx
|
|
3647
4133
|
import { useRef as useRef34, useEffect as useEffect34 } from "react";
|
|
3648
4134
|
import "@wavelengthusaf/web-components";
|
|
3649
|
-
import { jsx as
|
|
4135
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3650
4136
|
var WavelengthNotificationPanel = ({
|
|
3651
4137
|
children,
|
|
3652
4138
|
username,
|
|
@@ -3658,9 +4144,6 @@ var WavelengthNotificationPanel = ({
|
|
|
3658
4144
|
useEffect34(() => {
|
|
3659
4145
|
const el = ref.current;
|
|
3660
4146
|
if (!el) return;
|
|
3661
|
-
if (typeof rest.onSignOut === "function") {
|
|
3662
|
-
el.onSignOut = rest.onSignOut;
|
|
3663
|
-
}
|
|
3664
4147
|
if (username !== void 0) {
|
|
3665
4148
|
el.username = username;
|
|
3666
4149
|
}
|
|
@@ -3668,7 +4151,7 @@ var WavelengthNotificationPanel = ({
|
|
|
3668
4151
|
el.actions = action;
|
|
3669
4152
|
}
|
|
3670
4153
|
}, [action, username]);
|
|
3671
|
-
return /* @__PURE__ */
|
|
4154
|
+
return /* @__PURE__ */ jsx41("wavelength-notification-panel", { ref, ...rest, children });
|
|
3672
4155
|
};
|
|
3673
4156
|
|
|
3674
4157
|
// src/index.ts
|
|
@@ -3676,7 +4159,7 @@ import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-compone
|
|
|
3676
4159
|
|
|
3677
4160
|
// src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
|
|
3678
4161
|
import { useEffect as useEffect35, useRef as useRef35 } from "react";
|
|
3679
|
-
import { jsx as
|
|
4162
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3680
4163
|
var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style, onChange, value, disabled, ...rest }) => {
|
|
3681
4164
|
const componentRef = useRef35(null);
|
|
3682
4165
|
useEffect35(() => {
|
|
@@ -3708,7 +4191,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
3708
4191
|
component.value = value;
|
|
3709
4192
|
}
|
|
3710
4193
|
}, [value]);
|
|
3711
|
-
return /* @__PURE__ */
|
|
4194
|
+
return /* @__PURE__ */ jsx42("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
|
|
3712
4195
|
};
|
|
3713
4196
|
|
|
3714
4197
|
// src/index.ts
|
|
@@ -3717,7 +4200,7 @@ import { WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocomplete2
|
|
|
3717
4200
|
// src/components/inputs/WavelengthCheckboxList.tsx
|
|
3718
4201
|
import { useRef as useRef36, useEffect as useEffect36 } from "react";
|
|
3719
4202
|
import "@wavelengthusaf/web-components";
|
|
3720
|
-
import { jsx as
|
|
4203
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3721
4204
|
var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children, ...rest }) => {
|
|
3722
4205
|
const ref = useRef36(null);
|
|
3723
4206
|
useEffect36(() => {
|
|
@@ -3734,7 +4217,7 @@ var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children
|
|
|
3734
4217
|
verifyAttribute("helper-text", helperText);
|
|
3735
4218
|
verifyAttribute("checkbox-information", JSON.stringify(checkboxInformation));
|
|
3736
4219
|
}, [label, helperText, checkboxInformation]);
|
|
3737
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ jsx43("wavelength-checkbox-list", { ref, "checkbox-information": checkboxInformation, ...rest, children });
|
|
3738
4221
|
};
|
|
3739
4222
|
WavelengthCheckboxList.displayName = "WavelengthCheckboxList";
|
|
3740
4223
|
export {
|
|
@@ -3763,6 +4246,7 @@ export {
|
|
|
3763
4246
|
WavelengthDatePicker2 as WavelengthDatePickerElement,
|
|
3764
4247
|
WavelengthDefaultIcon,
|
|
3765
4248
|
WavelengthDialog,
|
|
4249
|
+
WavelengthDragAndDrop,
|
|
3766
4250
|
WavelengthDropdown,
|
|
3767
4251
|
WavelengthExampleComponent,
|
|
3768
4252
|
WavelengthFileDropZone,
|
|
@@ -3787,12 +4271,13 @@ export {
|
|
|
3787
4271
|
WavelengthSearch,
|
|
3788
4272
|
WavelengthSideBar,
|
|
3789
4273
|
WavelengthSlider,
|
|
4274
|
+
WavelengthSnackbar,
|
|
3790
4275
|
WavelengthSpinningLogo,
|
|
4276
|
+
WavelengthStyledButton,
|
|
3791
4277
|
WavelengthSwitch,
|
|
3792
4278
|
WavelengthTitleBar,
|
|
3793
4279
|
WavelengthTitleBar2 as WavelengthTitleBarElement,
|
|
3794
4280
|
WavelengthToolTip,
|
|
3795
|
-
WavelengthWebSnackbar,
|
|
3796
4281
|
add,
|
|
3797
4282
|
concat,
|
|
3798
4283
|
useThemeContext
|