@wavelengthusaf/components 5.0.3 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -0
- package/dist/cjs/index.cjs +618 -63
- package/dist/cjs/index.d.cts +59 -5
- package/dist/esm/index.d.ts +59 -5
- package/dist/esm/index.js +850 -295
- 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,39 +2691,45 @@ 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
|
-
flex-direction: column;
|
|
2213
|
-
gap:
|
|
2214
|
-
margin:
|
|
2698
|
+
flex-direction: column;
|
|
2699
|
+
gap: 5px;
|
|
2700
|
+
margin: 10px;
|
|
2215
2701
|
|
|
2216
2702
|
label {
|
|
2217
2703
|
align-self: flex-start;
|
|
2218
|
-
color: #
|
|
2704
|
+
color: #304359;
|
|
2705
|
+
font-weight: 600;
|
|
2706
|
+
font-family: Montserrat, sans-serif;
|
|
2219
2707
|
}
|
|
2220
2708
|
|
|
2221
2709
|
input,
|
|
2222
2710
|
select {
|
|
2223
2711
|
width: 100%;
|
|
2224
|
-
padding:
|
|
2225
|
-
margin:
|
|
2712
|
+
padding: 10px 15px;
|
|
2713
|
+
margin: 4px 0 12px 0;
|
|
2226
2714
|
box-sizing: border-box;
|
|
2227
|
-
border:
|
|
2715
|
+
border: 1px solid #c6c7cc;
|
|
2716
|
+
border-radius: 4px;
|
|
2228
2717
|
outline: none;
|
|
2229
|
-
|
|
2718
|
+
background-color: #ffffff;
|
|
2719
|
+
color: #000000;
|
|
2720
|
+
font-family: Montserrat, sans-serif;
|
|
2230
2721
|
|
|
2231
2722
|
&:hover {
|
|
2232
|
-
border-
|
|
2723
|
+
border-color: #304359;
|
|
2233
2724
|
}
|
|
2234
2725
|
|
|
2235
2726
|
&:focus {
|
|
2236
|
-
border-
|
|
2727
|
+
border-color: #8fd8ff;
|
|
2728
|
+
box-shadow: 0 0 0 2px rgba(143, 216, 255, 0.3);
|
|
2237
2729
|
}
|
|
2238
2730
|
}
|
|
2239
2731
|
`;
|
|
2240
|
-
var ModalOverlay =
|
|
2732
|
+
var ModalOverlay = styled2.div`
|
|
2241
2733
|
position: fixed;
|
|
2242
2734
|
bottom: 19%;
|
|
2243
2735
|
right: 15%;
|
|
@@ -2249,7 +2741,7 @@ var ModalOverlay = styled.div`
|
|
|
2249
2741
|
align-items: center;
|
|
2250
2742
|
z-index: 1;
|
|
2251
2743
|
`;
|
|
2252
|
-
var ModalWrapper =
|
|
2744
|
+
var ModalWrapper = styled2.div`
|
|
2253
2745
|
background-color: white;
|
|
2254
2746
|
border-radius: 8px;
|
|
2255
2747
|
padding: 20px;
|
|
@@ -2260,26 +2752,31 @@ var ModalWrapper = styled.div`
|
|
|
2260
2752
|
display: flex;
|
|
2261
2753
|
align-items: center;
|
|
2262
2754
|
`;
|
|
2263
|
-
var ModalClose =
|
|
2755
|
+
var ModalClose = styled2.button`
|
|
2264
2756
|
position: absolute;
|
|
2265
2757
|
top: 10px;
|
|
2266
|
-
right:
|
|
2267
|
-
font-size:
|
|
2758
|
+
right: 15px;
|
|
2759
|
+
font-size: 24px;
|
|
2268
2760
|
cursor: pointer;
|
|
2269
2761
|
border: none;
|
|
2270
2762
|
background: none;
|
|
2763
|
+
color: #304359;
|
|
2271
2764
|
z-index: 2;
|
|
2765
|
+
|
|
2766
|
+
&:hover {
|
|
2767
|
+
color: #000000;
|
|
2768
|
+
}
|
|
2272
2769
|
`;
|
|
2273
|
-
var TableHeadStyle =
|
|
2770
|
+
var TableHeadStyle = styled2.th`
|
|
2274
2771
|
position: relative;
|
|
2275
2772
|
`;
|
|
2276
|
-
var KebabMenu =
|
|
2773
|
+
var KebabMenu = styled2.div`
|
|
2277
2774
|
display: inline-block;
|
|
2278
2775
|
position: absolute;
|
|
2279
2776
|
right: 0;
|
|
2280
2777
|
top: 2px;
|
|
2281
2778
|
`;
|
|
2282
|
-
var KebabIcon =
|
|
2779
|
+
var KebabIcon = styled2.div`
|
|
2283
2780
|
cursor: pointer;
|
|
2284
2781
|
font-size: 20px;
|
|
2285
2782
|
padding: 5px;
|
|
@@ -2292,54 +2789,71 @@ var KebabIcon = styled.div`
|
|
|
2292
2789
|
color: #8fd8ff;
|
|
2293
2790
|
}
|
|
2294
2791
|
`;
|
|
2295
|
-
var MenuOptions =
|
|
2792
|
+
var MenuOptions = styled2.ul`
|
|
2296
2793
|
position: absolute;
|
|
2297
2794
|
right: 0;
|
|
2298
2795
|
top: 100%;
|
|
2299
|
-
background-color: #
|
|
2796
|
+
background-color: #ffffff;
|
|
2300
2797
|
min-width: 160px;
|
|
2301
2798
|
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
2302
|
-
z-index:
|
|
2799
|
+
z-index: 10;
|
|
2303
2800
|
list-style: none;
|
|
2304
2801
|
padding: 0;
|
|
2305
2802
|
margin: 0;
|
|
2803
|
+
border-radius: 4px;
|
|
2804
|
+
overflow: hidden;
|
|
2306
2805
|
|
|
2307
2806
|
li {
|
|
2308
|
-
padding:
|
|
2807
|
+
padding: 12px 16px;
|
|
2309
2808
|
text-decoration: none;
|
|
2310
2809
|
display: block;
|
|
2311
2810
|
cursor: pointer;
|
|
2811
|
+
color: #304359 !important;
|
|
2812
|
+
font-family: Montserrat, sans-serif;
|
|
2813
|
+
font-size: 14px;
|
|
2814
|
+
font-weight: 500;
|
|
2815
|
+
text-align: left;
|
|
2312
2816
|
|
|
2313
2817
|
&:hover {
|
|
2314
|
-
background-color: #
|
|
2818
|
+
background-color: #f0f4f8;
|
|
2819
|
+
color: #000000 !important;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
span {
|
|
2823
|
+
margin-right: 8px;
|
|
2824
|
+
color: #304359 !important;
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
&:hover span {
|
|
2828
|
+
color: #000000 !important;
|
|
2315
2829
|
}
|
|
2316
2830
|
}
|
|
2317
2831
|
`;
|
|
2318
|
-
var StyledBoxDiv =
|
|
2832
|
+
var StyledBoxDiv = styled2.div`
|
|
2319
2833
|
background-color: white;
|
|
2320
|
-
width:
|
|
2321
|
-
height:
|
|
2834
|
+
width: 100%;
|
|
2835
|
+
height: auto;
|
|
2836
|
+
min-height: 480px;
|
|
2322
2837
|
position: relative;
|
|
2323
2838
|
border-top-left-radius: 10px;
|
|
2324
2839
|
border-top-right-radius: 10px;
|
|
2325
2840
|
`;
|
|
2326
|
-
var StyledNavBoxDiv =
|
|
2841
|
+
var StyledNavBoxDiv = styled2.div`
|
|
2327
2842
|
background-color: white;
|
|
2328
|
-
width:
|
|
2329
|
-
display: flex;
|
|
2843
|
+
width: 100%;
|
|
2844
|
+
display: flex;
|
|
2330
2845
|
justify-content: center;
|
|
2331
2846
|
border-bottom-left-radius: 10px;
|
|
2332
2847
|
border-bottom-right-radius: 10px;
|
|
2333
|
-
|
|
2334
2848
|
box-shadow: 0.5px 3px 5px black;
|
|
2335
2849
|
`;
|
|
2336
|
-
var StyledTd =
|
|
2850
|
+
var StyledTd = styled2.td`
|
|
2337
2851
|
border-top: 1px solid #c6c7cc;
|
|
2338
2852
|
border-bottom: 1px solid #c6c7cc;
|
|
2339
2853
|
padding: 10px 15px;
|
|
2340
2854
|
vertical-align: middle;
|
|
2341
2855
|
`;
|
|
2342
|
-
var StyledTableTwo =
|
|
2856
|
+
var StyledTableTwo = styled2.table`
|
|
2343
2857
|
width: 95%;
|
|
2344
2858
|
height: 95%;
|
|
2345
2859
|
border-collapse: collapse;
|
|
@@ -2350,29 +2864,28 @@ var StyledTableTwo = styled.table`
|
|
|
2350
2864
|
margin-right: auto;
|
|
2351
2865
|
|
|
2352
2866
|
th {
|
|
2353
|
-
position: relative;
|
|
2867
|
+
position: relative;
|
|
2354
2868
|
padding: 10px 15px;
|
|
2355
2869
|
|
|
2356
|
-
/* Create the partial right border */
|
|
2357
2870
|
&:not(:last-child):after {
|
|
2358
|
-
content: "";
|
|
2871
|
+
content: "";
|
|
2359
2872
|
position: absolute;
|
|
2360
|
-
right: 0;
|
|
2361
|
-
top: 50%;
|
|
2362
|
-
height: 50%;
|
|
2873
|
+
right: 0;
|
|
2874
|
+
top: 50%;
|
|
2875
|
+
height: 50%;
|
|
2363
2876
|
border-right: 1px solid #c6c7cc;
|
|
2364
|
-
transform: translateY(-50%);
|
|
2877
|
+
transform: translateY(-50%);
|
|
2365
2878
|
}
|
|
2366
2879
|
}
|
|
2367
2880
|
`;
|
|
2368
|
-
var StyledInput =
|
|
2881
|
+
var StyledInput = styled2.input`
|
|
2369
2882
|
height: 100%;
|
|
2370
2883
|
width: 100%;
|
|
2371
2884
|
outline: none;
|
|
2372
2885
|
border: none;
|
|
2373
2886
|
color: #8fd8ff;
|
|
2374
2887
|
`;
|
|
2375
|
-
var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
2888
|
+
var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id, onRowClick, paginationOptions }) => {
|
|
2376
2889
|
const [localData, setLocalData] = useState(data || []);
|
|
2377
2890
|
const copiedArray = [...data || []];
|
|
2378
2891
|
const [editingId, setEditingId] = useState(null);
|
|
@@ -2387,6 +2900,38 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2387
2900
|
const [editingMenuKey, setEditingMenuKey] = useState(null);
|
|
2388
2901
|
const menuRef = useRef27(null);
|
|
2389
2902
|
const modalRef = useRef27(null);
|
|
2903
|
+
const [modalPos, setModalPos] = useState({ x: 0, y: 0 });
|
|
2904
|
+
const isDragging = useRef27(false);
|
|
2905
|
+
const dragStartPos = useRef27({ x: 0, y: 0 });
|
|
2906
|
+
const handleDragStart = (e) => {
|
|
2907
|
+
isDragging.current = true;
|
|
2908
|
+
dragStartPos.current = {
|
|
2909
|
+
x: e.clientX - modalPos.x,
|
|
2910
|
+
y: e.clientY - modalPos.y
|
|
2911
|
+
};
|
|
2912
|
+
};
|
|
2913
|
+
useEffect27(() => {
|
|
2914
|
+
const handleDragMove = (e) => {
|
|
2915
|
+
if (!isDragging.current) return;
|
|
2916
|
+
setModalPos({
|
|
2917
|
+
x: e.clientX - dragStartPos.current.x,
|
|
2918
|
+
y: e.clientY - dragStartPos.current.y
|
|
2919
|
+
});
|
|
2920
|
+
};
|
|
2921
|
+
const handleDragEnd = () => {
|
|
2922
|
+
isDragging.current = false;
|
|
2923
|
+
};
|
|
2924
|
+
if (isModalOpen) {
|
|
2925
|
+
document.addEventListener("mousemove", handleDragMove);
|
|
2926
|
+
document.addEventListener("mouseup", handleDragEnd);
|
|
2927
|
+
} else {
|
|
2928
|
+
setModalPos({ x: 0, y: 0 });
|
|
2929
|
+
}
|
|
2930
|
+
return () => {
|
|
2931
|
+
document.removeEventListener("mousemove", handleDragMove);
|
|
2932
|
+
document.removeEventListener("mouseup", handleDragEnd);
|
|
2933
|
+
};
|
|
2934
|
+
}, [isModalOpen]);
|
|
2390
2935
|
function isNumeric(value) {
|
|
2391
2936
|
return /^\d+$/.test(value);
|
|
2392
2937
|
}
|
|
@@ -2481,10 +3026,10 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2481
3026
|
setEditingId(null);
|
|
2482
3027
|
};
|
|
2483
3028
|
const headers = columns.map((column, index) => {
|
|
2484
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ jsxs10(TableHeadStyle, { children: [
|
|
2485
3030
|
column.title,
|
|
2486
|
-
/* @__PURE__ */
|
|
2487
|
-
/* @__PURE__ */
|
|
3031
|
+
/* @__PURE__ */ jsxs10(KebabMenu, { ref: menuRef, children: [
|
|
3032
|
+
/* @__PURE__ */ jsx32(
|
|
2488
3033
|
KebabIcon,
|
|
2489
3034
|
{
|
|
2490
3035
|
title: `KebabIcon-${index}`,
|
|
@@ -2494,49 +3039,60 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2494
3039
|
children: "\u22EE"
|
|
2495
3040
|
}
|
|
2496
3041
|
),
|
|
2497
|
-
isOpen && editingMenuKey === column.key && /* @__PURE__ */
|
|
2498
|
-
sortOrder === "asc" ? /* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
3042
|
+
isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs10(MenuOptions, { children: [
|
|
3043
|
+
sortOrder === "asc" ? /* @__PURE__ */ jsxs10("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
|
|
3044
|
+
/* @__PURE__ */ jsx32("span", { children: "\u2B06" }),
|
|
2500
3045
|
" Sort ASC"
|
|
2501
|
-
] }) : /* @__PURE__ */
|
|
2502
|
-
/* @__PURE__ */
|
|
3046
|
+
] }) : /* @__PURE__ */ jsxs10("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
|
|
3047
|
+
/* @__PURE__ */ jsx32("span", { children: "\u2B07" }),
|
|
2503
3048
|
" Sort DESC"
|
|
2504
3049
|
] }),
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
3050
|
+
/* @__PURE__ */ jsxs10("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
|
|
3051
|
+
/* @__PURE__ */ jsx32("span", { children: "\u23F7" }),
|
|
2507
3052
|
" Filter"
|
|
2508
3053
|
] }),
|
|
2509
|
-
isModalOpen && /* @__PURE__ */
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
{
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
3054
|
+
isModalOpen && /* @__PURE__ */ jsx32(ModalOverlay, { children: /* @__PURE__ */ jsxs10(
|
|
3055
|
+
ModalWrapper,
|
|
3056
|
+
{
|
|
3057
|
+
ref: modalRef,
|
|
3058
|
+
style: {
|
|
3059
|
+
transform: `translate(${modalPos.x}px, ${modalPos.y}px)`,
|
|
3060
|
+
cursor: "grab"
|
|
3061
|
+
},
|
|
3062
|
+
onMouseDown: handleDragStart,
|
|
3063
|
+
children: [
|
|
3064
|
+
/* @__PURE__ */ jsx32(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
|
|
3065
|
+
/* @__PURE__ */ jsxs10(ModalInputDiv, { children: [
|
|
3066
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "filterSelectId", children: "Columns: " }),
|
|
3067
|
+
/* @__PURE__ */ jsx32("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx32("option", { children: item.key }, item.key)) })
|
|
3068
|
+
] }),
|
|
3069
|
+
/* @__PURE__ */ jsxs10(ModalInputDiv, { children: [
|
|
3070
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "filterInputId", children: "Values: " }),
|
|
3071
|
+
/* @__PURE__ */ jsx32(
|
|
3072
|
+
"input",
|
|
3073
|
+
{
|
|
3074
|
+
title: `Inputfiltertest-${index}`,
|
|
3075
|
+
id: "filterInputId",
|
|
3076
|
+
type: isNumeric(searchItem) ? "number" : "text",
|
|
3077
|
+
value: searchItem,
|
|
3078
|
+
onKeyDown: (e) => {
|
|
3079
|
+
if (e.key === "Backspace") {
|
|
3080
|
+
setLocalData(copiedArray);
|
|
3081
|
+
}
|
|
3082
|
+
},
|
|
3083
|
+
onChange: (e) => setSearchItem(e.target.value)
|
|
2527
3084
|
}
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
] }) })
|
|
3085
|
+
)
|
|
3086
|
+
] })
|
|
3087
|
+
]
|
|
3088
|
+
}
|
|
3089
|
+
) })
|
|
2534
3090
|
] })
|
|
2535
3091
|
] }, index)
|
|
2536
3092
|
] }, `headCell-${index}`);
|
|
2537
3093
|
});
|
|
2538
|
-
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */
|
|
2539
|
-
return /* @__PURE__ */
|
|
3094
|
+
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", { onClick: () => onRowClick && onRowClick(item), style: { cursor: onRowClick ? "pointer" : "default" }, children: columns.map((column, index2) => {
|
|
3095
|
+
return /* @__PURE__ */ jsx32(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx32(
|
|
2540
3096
|
StyledInput,
|
|
2541
3097
|
{
|
|
2542
3098
|
title: `styledRow-${item.id}-${column.key}-${index2}`,
|
|
@@ -2553,21 +3109,21 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2553
3109
|
},
|
|
2554
3110
|
autoFocus: true
|
|
2555
3111
|
}
|
|
2556
|
-
) : /* @__PURE__ */
|
|
3112
|
+
) : /* @__PURE__ */ jsx32("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => column.editable !== false && handleEdit(item.id, item[column.key], column.key), children: column.render ? column.render(column, item) : item[column.key] }) }, index2);
|
|
2557
3113
|
}) }, item.id));
|
|
2558
|
-
return /* @__PURE__ */
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
3114
|
+
return /* @__PURE__ */ jsxs10("div", { id, children: [
|
|
3115
|
+
/* @__PURE__ */ jsx32(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs10(StyledTableTwo, { title: "StyledTable", children: [
|
|
3116
|
+
/* @__PURE__ */ jsx32("thead", { children: /* @__PURE__ */ jsx32("tr", { children: headers }) }),
|
|
3117
|
+
/* @__PURE__ */ jsx32("tbody", { children: rows })
|
|
2562
3118
|
] }) }),
|
|
2563
|
-
/* @__PURE__ */
|
|
3119
|
+
/* @__PURE__ */ jsx32(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx32(WavelengthPagination, { customStyle: {}, totalPages, currentPage, onPageChange: setCurrentPage, variant: "basic", ...paginationOptions || {} }) })
|
|
2564
3120
|
] });
|
|
2565
3121
|
};
|
|
2566
3122
|
WavelengthDataTable.displayName = "WavelengthDataTable";
|
|
2567
3123
|
|
|
2568
3124
|
// src/components/DataTable/WavelengthDataGrid.tsx
|
|
2569
3125
|
import { useRef as useRef28, useEffect as useEffect28 } from "react";
|
|
2570
|
-
import { jsx as
|
|
3126
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2571
3127
|
var WavelengthDataGrid = ({ columns, rows, pageSize = 10, checkboxSelection = false, hidePagination = false, onSelectionChange, customStyle, ...rest }) => {
|
|
2572
3128
|
const ref = useRef28(null);
|
|
2573
3129
|
useEffect28(() => {
|
|
@@ -2591,34 +3147,34 @@ var WavelengthDataGrid = ({ columns, rows, pageSize = 10, checkboxSelection = fa
|
|
|
2591
3147
|
el.removeEventListener("selection-change", handleSelectionChange);
|
|
2592
3148
|
};
|
|
2593
3149
|
}, [columns, rows, pageSize, checkboxSelection, hidePagination, customStyle, onSelectionChange]);
|
|
2594
|
-
return /* @__PURE__ */
|
|
3150
|
+
return /* @__PURE__ */ jsx33("wavelength-data-grid", { ref, ...rest });
|
|
2595
3151
|
};
|
|
2596
3152
|
WavelengthDataGrid.displayName = "WavelengthDataGrid";
|
|
2597
3153
|
|
|
2598
3154
|
// src/components/DataTable/SubRowTable/ChildSubTable.tsx
|
|
2599
3155
|
import { useMemo as useMemo3, useState as useState2, Fragment as Fragment4 } from "react";
|
|
2600
|
-
import
|
|
2601
|
-
import { Fragment as Fragment5, jsx as
|
|
2602
|
-
var TableContainer =
|
|
3156
|
+
import styled3 from "styled-components";
|
|
3157
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3158
|
+
var TableContainer = styled3.div`
|
|
2603
3159
|
width: 1200px;
|
|
2604
3160
|
border-radius: 16px;
|
|
2605
3161
|
`;
|
|
2606
|
-
var TableRow =
|
|
3162
|
+
var TableRow = styled3.div`
|
|
2607
3163
|
display: grid;
|
|
2608
3164
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
2609
3165
|
`;
|
|
2610
|
-
var TablePrimaryRow =
|
|
3166
|
+
var TablePrimaryRow = styled3.div`
|
|
2611
3167
|
display: grid;
|
|
2612
3168
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
2613
3169
|
`;
|
|
2614
|
-
var BodyRowContainer =
|
|
3170
|
+
var BodyRowContainer = styled3.div`
|
|
2615
3171
|
border: 1px solid black;
|
|
2616
3172
|
background-color: white;
|
|
2617
3173
|
border-radius: 16px;
|
|
2618
3174
|
overflow: hidden;
|
|
2619
3175
|
margin-bottom: 10px;
|
|
2620
3176
|
`;
|
|
2621
|
-
var TableHeaderCell =
|
|
3177
|
+
var TableHeaderCell = styled3.div`
|
|
2622
3178
|
padding-left: 12px;
|
|
2623
3179
|
padding-right: 25px;
|
|
2624
3180
|
height: 60px;
|
|
@@ -2626,7 +3182,7 @@ var TableHeaderCell = styled2.div`
|
|
|
2626
3182
|
display: flex;
|
|
2627
3183
|
align-items: center;
|
|
2628
3184
|
`;
|
|
2629
|
-
var TableBodyCell =
|
|
3185
|
+
var TableBodyCell = styled3.div`
|
|
2630
3186
|
background-color: #fff;
|
|
2631
3187
|
color: black;
|
|
2632
3188
|
position: relative;
|
|
@@ -2635,27 +3191,27 @@ var TableBodyCell = styled2.div`
|
|
|
2635
3191
|
font-size: ${(props) => props.$primaryBoldState ? "24px" : "16px"};
|
|
2636
3192
|
font-weight: ${(props) => props.$primaryBoldState ? "bold" : "normal"};
|
|
2637
3193
|
`;
|
|
2638
|
-
var ButtonStylingRow =
|
|
3194
|
+
var ButtonStylingRow = styled3.div`
|
|
2639
3195
|
display: flex;
|
|
2640
3196
|
flex-direction: row;
|
|
2641
3197
|
`;
|
|
2642
|
-
var BottomArrowBar =
|
|
3198
|
+
var BottomArrowBar = styled3.div`
|
|
2643
3199
|
background-color: #e9e9e9;
|
|
2644
3200
|
text-align: center;
|
|
2645
3201
|
`;
|
|
2646
|
-
var BottomUpArrowBar =
|
|
3202
|
+
var BottomUpArrowBar = styled3.div`
|
|
2647
3203
|
background-color: #e9e9e9;
|
|
2648
3204
|
text-align: center;
|
|
2649
3205
|
position: relative;
|
|
2650
3206
|
`;
|
|
2651
|
-
var SubDataTable =
|
|
3207
|
+
var SubDataTable = styled3.table`
|
|
2652
3208
|
background-color: white;
|
|
2653
3209
|
color: black;
|
|
2654
3210
|
width: 100%;
|
|
2655
3211
|
border-collapse: collapse;
|
|
2656
3212
|
line-height: 1.2;
|
|
2657
3213
|
`;
|
|
2658
|
-
var SubDataTableHeaderRow =
|
|
3214
|
+
var SubDataTableHeaderRow = styled3.tr`
|
|
2659
3215
|
height: 50px;
|
|
2660
3216
|
background-color: #304359;
|
|
2661
3217
|
color: white;
|
|
@@ -2666,10 +3222,10 @@ var SubDataTableHeaderRow = styled2.tr`
|
|
|
2666
3222
|
white-space: nowrap;
|
|
2667
3223
|
}
|
|
2668
3224
|
`;
|
|
2669
|
-
var SubDataTableBodyRow =
|
|
3225
|
+
var SubDataTableBodyRow = styled3.tbody`
|
|
2670
3226
|
font-size: 14px;
|
|
2671
3227
|
`;
|
|
2672
|
-
var SubDataTableBodyRowContainer =
|
|
3228
|
+
var SubDataTableBodyRowContainer = styled3.tr`
|
|
2673
3229
|
td {
|
|
2674
3230
|
padding: 10px 0;
|
|
2675
3231
|
max-width: 100px;
|
|
@@ -2679,13 +3235,13 @@ var SubDataTableBodyRowContainer = styled2.tr`
|
|
|
2679
3235
|
background-color: #96e0e5;
|
|
2680
3236
|
}
|
|
2681
3237
|
`;
|
|
2682
|
-
var SubDataTableCell =
|
|
3238
|
+
var SubDataTableCell = styled3.td`
|
|
2683
3239
|
text-align: center;
|
|
2684
3240
|
`;
|
|
2685
|
-
var SubDataHeaderColumn =
|
|
3241
|
+
var SubDataHeaderColumn = styled3.thead`
|
|
2686
3242
|
background-color: #304359;
|
|
2687
3243
|
`;
|
|
2688
|
-
var SortButton =
|
|
3244
|
+
var SortButton = styled3.button`
|
|
2689
3245
|
font-size: 16px;
|
|
2690
3246
|
font-weight: bold;
|
|
2691
3247
|
color: white;
|
|
@@ -2693,7 +3249,7 @@ var SortButton = styled2.button`
|
|
|
2693
3249
|
border: none;
|
|
2694
3250
|
white-space: nowrap;
|
|
2695
3251
|
`;
|
|
2696
|
-
var DownloadMissionButton =
|
|
3252
|
+
var DownloadMissionButton = styled3.button`
|
|
2697
3253
|
width: 217px;
|
|
2698
3254
|
height: 45px;
|
|
2699
3255
|
padding: 12px 32px 12px 32px;
|
|
@@ -2722,7 +3278,7 @@ var DownloadMissionButton = styled2.button`
|
|
|
2722
3278
|
transition: background-color 0.2s ease;
|
|
2723
3279
|
}
|
|
2724
3280
|
`;
|
|
2725
|
-
var AddButton =
|
|
3281
|
+
var AddButton = styled3.button`
|
|
2726
3282
|
width: 130px;
|
|
2727
3283
|
height: 45px;
|
|
2728
3284
|
border: 1px solid #1a8083;
|
|
@@ -2752,7 +3308,7 @@ var AddButton = styled2.button`
|
|
|
2752
3308
|
transition: background-color 0.2s ease;
|
|
2753
3309
|
}
|
|
2754
3310
|
`;
|
|
2755
|
-
var DownloadArrow =
|
|
3311
|
+
var DownloadArrow = styled3.button`
|
|
2756
3312
|
background-color: transparent;
|
|
2757
3313
|
border: none;
|
|
2758
3314
|
|
|
@@ -2835,45 +3391,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2835
3391
|
return result;
|
|
2836
3392
|
}, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
|
|
2837
3393
|
const renderSortButton = (column, sortOrder2, sortKey2) => {
|
|
2838
|
-
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */
|
|
3394
|
+
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2839
3395
|
column.title,
|
|
2840
3396
|
" ",
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
] }) }) : /* @__PURE__ */
|
|
3397
|
+
/* @__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" }) })
|
|
3398
|
+
] }) }) : /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2843
3399
|
column.title,
|
|
2844
3400
|
" ",
|
|
2845
|
-
/* @__PURE__ */
|
|
2846
|
-
] }) }) : /* @__PURE__ */
|
|
3401
|
+
/* @__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" }) })
|
|
3402
|
+
] }) }) : /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2847
3403
|
column.title,
|
|
2848
3404
|
" ",
|
|
2849
|
-
/* @__PURE__ */
|
|
3405
|
+
/* @__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
3406
|
] }) });
|
|
2851
3407
|
};
|
|
2852
3408
|
const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
|
|
2853
3409
|
const columnKey = trimBeforePeriod2(column.key);
|
|
2854
|
-
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */
|
|
3410
|
+
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2855
3411
|
column.title,
|
|
2856
3412
|
" ",
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
] }) : /* @__PURE__ */
|
|
3413
|
+
/* @__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" }) })
|
|
3414
|
+
] }) : /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2859
3415
|
column.title,
|
|
2860
3416
|
" ",
|
|
2861
|
-
/* @__PURE__ */
|
|
2862
|
-
] }) : /* @__PURE__ */
|
|
3417
|
+
/* @__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" }) })
|
|
3418
|
+
] }) : /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2863
3419
|
column.title,
|
|
2864
3420
|
" ",
|
|
2865
|
-
/* @__PURE__ */
|
|
3421
|
+
/* @__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
3422
|
] });
|
|
2867
3423
|
};
|
|
2868
3424
|
const headers = HeadColumns.map((column) => {
|
|
2869
|
-
return /* @__PURE__ */
|
|
3425
|
+
return /* @__PURE__ */ jsx34(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
|
|
2870
3426
|
});
|
|
2871
3427
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
2872
|
-
return /* @__PURE__ */
|
|
3428
|
+
return /* @__PURE__ */ jsx34("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
2873
3429
|
});
|
|
2874
3430
|
const subDataRows = (itemId) => {
|
|
2875
|
-
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
3431
|
+
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx34(Fragment4, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs11(SubDataTableBodyRowContainer, { children: [
|
|
3432
|
+
/* @__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
3433
|
"path",
|
|
2878
3434
|
{
|
|
2879
3435
|
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 +3440,32 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2884
3440
|
const columnKey = trimBeforePeriod2(column.key);
|
|
2885
3441
|
const value = fileItem[columnKey];
|
|
2886
3442
|
if (value !== void 0) {
|
|
2887
|
-
return /* @__PURE__ */
|
|
3443
|
+
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
3444
|
}
|
|
2889
3445
|
})
|
|
2890
3446
|
] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
|
|
2891
3447
|
};
|
|
2892
|
-
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
2894
|
-
/* @__PURE__ */
|
|
2895
|
-
/* @__PURE__ */
|
|
2896
|
-
/* @__PURE__ */
|
|
3448
|
+
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs11(BodyRowContainer, { children: [
|
|
3449
|
+
/* @__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}`)) }),
|
|
3450
|
+
/* @__PURE__ */ jsxs11(ButtonStylingRow, { children: [
|
|
3451
|
+
/* @__PURE__ */ jsx34(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
3452
|
+
/* @__PURE__ */ jsx34(AddButton, { onClick: addFilesOnClick, children: "Add files" })
|
|
2897
3453
|
] }),
|
|
2898
|
-
openRow !== item.id && /* @__PURE__ */
|
|
2899
|
-
openRow === item.id && /* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
2902
|
-
/* @__PURE__ */
|
|
3454
|
+
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" }) }) }),
|
|
3455
|
+
openRow === item.id && /* @__PURE__ */ jsxs11("div", { children: [
|
|
3456
|
+
/* @__PURE__ */ jsxs11(SubDataTable, { children: [
|
|
3457
|
+
/* @__PURE__ */ jsx34(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs11(SubDataTableHeaderRow, { children: [
|
|
3458
|
+
/* @__PURE__ */ jsx34("th", {}),
|
|
2903
3459
|
SubDataHeaders
|
|
2904
3460
|
] }) }),
|
|
2905
|
-
/* @__PURE__ */
|
|
3461
|
+
/* @__PURE__ */ jsx34(SubDataTableBodyRow, { children: subDataRows(item.id) })
|
|
2906
3462
|
] }),
|
|
2907
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__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
3464
|
] })
|
|
2909
3465
|
] }, `Bodycontainer-${item.id}-${index}`));
|
|
2910
|
-
return /* @__PURE__ */
|
|
2911
|
-
/* @__PURE__ */
|
|
2912
|
-
/* @__PURE__ */
|
|
3466
|
+
return /* @__PURE__ */ jsxs11(TableContainer, { children: [
|
|
3467
|
+
/* @__PURE__ */ jsx34(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
|
|
3468
|
+
/* @__PURE__ */ jsx34("div", { title: "tablebodies", children: dataRows })
|
|
2913
3469
|
] });
|
|
2914
3470
|
};
|
|
2915
3471
|
ChildDataTable.displayName = "ChildDataTable";
|
|
@@ -2918,7 +3474,7 @@ ChildDataTable.displayName = "ChildDataTable";
|
|
|
2918
3474
|
import { useRef as useRef29, useEffect as useEffect29, useMemo as useMemo4 } from "react";
|
|
2919
3475
|
import { createRoot } from "react-dom/client";
|
|
2920
3476
|
import "@wavelengthusaf/web-components";
|
|
2921
|
-
import { jsx as
|
|
3477
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2922
3478
|
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, externalSort, sortKey, sortOrder, onAction, ...rest }) => {
|
|
2923
3479
|
const tableRef = useRef29(null);
|
|
2924
3480
|
const cellRoots = useRef29(/* @__PURE__ */ new Map());
|
|
@@ -3014,7 +3570,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
3014
3570
|
dropdownRoots.current.clear();
|
|
3015
3571
|
};
|
|
3016
3572
|
}, [data, onAction]);
|
|
3017
|
-
return /* @__PURE__ */
|
|
3573
|
+
return /* @__PURE__ */ jsx35("wavelength-child-data-table", { ref: tableRef, ...rest });
|
|
3018
3574
|
};
|
|
3019
3575
|
ChildDataTable2.displayName = "ChildDataTable";
|
|
3020
3576
|
|
|
@@ -3023,9 +3579,9 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
|
|
|
3023
3579
|
|
|
3024
3580
|
// src/components/DataTable/NestedDataTable/NestedDataTable.tsx
|
|
3025
3581
|
import { useState as useState3 } from "react";
|
|
3026
|
-
import
|
|
3027
|
-
import { Fragment as Fragment6, jsx as
|
|
3028
|
-
var TableStyle =
|
|
3582
|
+
import styled4 from "styled-components";
|
|
3583
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3584
|
+
var TableStyle = styled4.table`
|
|
3029
3585
|
width: 100%;
|
|
3030
3586
|
height: 100%;
|
|
3031
3587
|
border-collapse: collapse;
|
|
@@ -3041,26 +3597,26 @@ var TableStyle = styled3.table`
|
|
|
3041
3597
|
margin-right: auto;
|
|
3042
3598
|
position: absolute;
|
|
3043
3599
|
`;
|
|
3044
|
-
var MainThHeaders =
|
|
3600
|
+
var MainThHeaders = styled4.th`
|
|
3045
3601
|
&:not(:last-child) {
|
|
3046
3602
|
border-right: 1px solid #c6c7cc;
|
|
3047
3603
|
}
|
|
3048
3604
|
`;
|
|
3049
|
-
var SubDataTr =
|
|
3605
|
+
var SubDataTr = styled4.tr`
|
|
3050
3606
|
background-color: white;
|
|
3051
3607
|
|
|
3052
3608
|
&:nth-child(even) {
|
|
3053
3609
|
background-color: #e0ffff;
|
|
3054
3610
|
}
|
|
3055
3611
|
`;
|
|
3056
|
-
var PrimaryTrRows =
|
|
3612
|
+
var PrimaryTrRows = styled4.tr`
|
|
3057
3613
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
3058
3614
|
`;
|
|
3059
|
-
var SubTrRows =
|
|
3615
|
+
var SubTrRows = styled4.tr`
|
|
3060
3616
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
3061
3617
|
height: 120px;
|
|
3062
3618
|
`;
|
|
3063
|
-
var SubTableStyle =
|
|
3619
|
+
var SubTableStyle = styled4.table`
|
|
3064
3620
|
width: 95%;
|
|
3065
3621
|
border-collapse: collapse;
|
|
3066
3622
|
margin-top: -15px;
|
|
@@ -3080,7 +3636,7 @@ var SubTableStyle = styled3.table`
|
|
|
3080
3636
|
}
|
|
3081
3637
|
}
|
|
3082
3638
|
`;
|
|
3083
|
-
var DropdownButton =
|
|
3639
|
+
var DropdownButton = styled4.button`
|
|
3084
3640
|
background-color: transparent;
|
|
3085
3641
|
background-repeat: no-repeat;
|
|
3086
3642
|
border: none;
|
|
@@ -3090,7 +3646,7 @@ var DropdownButton = styled3.button`
|
|
|
3090
3646
|
font-weight: bold; /* This makes the UTF symbols bold */
|
|
3091
3647
|
font-size: 20px;
|
|
3092
3648
|
`;
|
|
3093
|
-
var PrimaryTdSpan =
|
|
3649
|
+
var PrimaryTdSpan = styled4.td`
|
|
3094
3650
|
&:not(:last-child) {
|
|
3095
3651
|
border-right: 1px solid black;
|
|
3096
3652
|
}
|
|
@@ -3111,57 +3667,57 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
3111
3667
|
setPrimaryRowIndex(rowIndex);
|
|
3112
3668
|
};
|
|
3113
3669
|
const headers = HeadColumns.map((column, index) => {
|
|
3114
|
-
return /* @__PURE__ */
|
|
3670
|
+
return /* @__PURE__ */ jsx36(MainThHeaders, { children: column.title }, `headCell-${index}`);
|
|
3115
3671
|
});
|
|
3116
3672
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
3117
|
-
return /* @__PURE__ */
|
|
3673
|
+
return /* @__PURE__ */ jsx36("th", { children: column.title }, `SubHeadCell-${index}`);
|
|
3118
3674
|
});
|
|
3119
|
-
const subDataRows = !data?.length ? /* @__PURE__ */
|
|
3675
|
+
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
3676
|
const columnKey = trimBeforePeriod(column.key);
|
|
3121
3677
|
const value = item.Details?.[columnKey];
|
|
3122
3678
|
console.log("value: ", value);
|
|
3123
3679
|
if (value !== void 0) {
|
|
3124
|
-
return /* @__PURE__ */
|
|
3680
|
+
return /* @__PURE__ */ jsx36("td", { children: /* @__PURE__ */ jsx36("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
3125
3681
|
}
|
|
3126
3682
|
}) }, `Sub-${item.id}-${index}`) }));
|
|
3127
|
-
const childRows = /* @__PURE__ */
|
|
3128
|
-
/* @__PURE__ */
|
|
3129
|
-
/* @__PURE__ */
|
|
3683
|
+
const childRows = /* @__PURE__ */ jsxs12(SubTableStyle, { children: [
|
|
3684
|
+
/* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsx36("tr", { children: SubDataHeaders }) }),
|
|
3685
|
+
/* @__PURE__ */ jsx36("tbody", { children: subDataRows })
|
|
3130
3686
|
] });
|
|
3131
|
-
const rows = !data?.length ? /* @__PURE__ */
|
|
3132
|
-
/* @__PURE__ */
|
|
3133
|
-
/* @__PURE__ */
|
|
3687
|
+
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: [
|
|
3688
|
+
/* @__PURE__ */ jsxs12(PrimaryTrRows, { $index: index, children: [
|
|
3689
|
+
/* @__PURE__ */ jsx36(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx36(Fragment6, { children: "\u2227" }) : /* @__PURE__ */ jsx36(Fragment6, { children: "\u2228" }) }),
|
|
3134
3690
|
HeadColumns.map((column, index2) => {
|
|
3135
|
-
return /* @__PURE__ */
|
|
3691
|
+
return /* @__PURE__ */ jsx36(PrimaryTdSpan, { children: /* @__PURE__ */ jsx36("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
|
|
3136
3692
|
})
|
|
3137
3693
|
] }, index),
|
|
3138
|
-
isOpen && primaryRowIndex === index && /* @__PURE__ */
|
|
3694
|
+
isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx36(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx36("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
|
|
3139
3695
|
] }));
|
|
3140
|
-
return /* @__PURE__ */
|
|
3141
|
-
/* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */
|
|
3696
|
+
return /* @__PURE__ */ jsx36("div", { id, children: /* @__PURE__ */ jsxs12(TableStyle, { children: [
|
|
3697
|
+
/* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsxs12("tr", { children: [
|
|
3698
|
+
/* @__PURE__ */ jsx36("th", { title: "dropdownth" }),
|
|
3143
3699
|
headers
|
|
3144
3700
|
] }) }),
|
|
3145
|
-
/* @__PURE__ */
|
|
3701
|
+
/* @__PURE__ */ jsx36("tbody", { children: rows })
|
|
3146
3702
|
] }) });
|
|
3147
3703
|
};
|
|
3148
3704
|
NestedDataTable.displayName = "NestedDataTable";
|
|
3149
3705
|
|
|
3150
3706
|
// src/components/AutoComplete/WavelengthAutoComplete.tsx
|
|
3151
3707
|
import { useEffect as useEffect30, useRef as useRef31, useState as useState4 } from "react";
|
|
3152
|
-
import
|
|
3153
|
-
import { Fragment as Fragment7, jsx as
|
|
3154
|
-
var AutoContainer =
|
|
3708
|
+
import styled5 from "styled-components";
|
|
3709
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3710
|
+
var AutoContainer = styled5.div`
|
|
3155
3711
|
//position: relative;
|
|
3156
3712
|
position: relative;
|
|
3157
3713
|
width: ${(props) => props.$inputWidth || "320px"};
|
|
3158
3714
|
height: ${(props) => props.$inputHeight || "51px"};
|
|
3159
3715
|
`;
|
|
3160
|
-
var InputWrapper =
|
|
3716
|
+
var InputWrapper = styled5.div`
|
|
3161
3717
|
width: 100%;
|
|
3162
3718
|
height: 100%;
|
|
3163
3719
|
`;
|
|
3164
|
-
var Label =
|
|
3720
|
+
var Label = styled5.label`
|
|
3165
3721
|
position: absolute;
|
|
3166
3722
|
top: 50%;
|
|
3167
3723
|
left: 10px;
|
|
@@ -3173,7 +3729,7 @@ var Label = styled4.label`
|
|
|
3173
3729
|
padding: 0 5px;
|
|
3174
3730
|
background-color: transparent;
|
|
3175
3731
|
`;
|
|
3176
|
-
var Input =
|
|
3732
|
+
var Input = styled5.input`
|
|
3177
3733
|
width: 100%; //this must be 100%, as width inherit inherits the literal expression, not the value
|
|
3178
3734
|
height: 100%;
|
|
3179
3735
|
padding: 0.5rem 0.75rem;
|
|
@@ -3215,7 +3771,7 @@ var Input = styled4.input`
|
|
|
3215
3771
|
color: ${(props) => props.$defaultLabelColor || "#ccc"};
|
|
3216
3772
|
}
|
|
3217
3773
|
`;
|
|
3218
|
-
var DropDownList =
|
|
3774
|
+
var DropDownList = styled5.ul`
|
|
3219
3775
|
position: absolute;
|
|
3220
3776
|
z-index: 5;
|
|
3221
3777
|
width: 100%;
|
|
@@ -3229,7 +3785,7 @@ var DropDownList = styled4.ul`
|
|
|
3229
3785
|
overflow: scroll; //necessary for limiting scroll options
|
|
3230
3786
|
max-height: 390px; //necessary for limiting scroll options, limit to 10 per view
|
|
3231
3787
|
`;
|
|
3232
|
-
var ActiveListItem =
|
|
3788
|
+
var ActiveListItem = styled5.li`
|
|
3233
3789
|
position: relative;
|
|
3234
3790
|
width: 100%;
|
|
3235
3791
|
z-index: 9999;
|
|
@@ -3246,7 +3802,7 @@ var ActiveListItem = styled4.li`
|
|
|
3246
3802
|
background-color: #d8d8d8;
|
|
3247
3803
|
}
|
|
3248
3804
|
`;
|
|
3249
|
-
var NoHoverListItem =
|
|
3805
|
+
var NoHoverListItem = styled5.li`
|
|
3250
3806
|
position: relative;
|
|
3251
3807
|
z-index: 9999;
|
|
3252
3808
|
padding: 10px;
|
|
@@ -3367,9 +3923,9 @@ var WavelengthAutoComplete = ({
|
|
|
3367
3923
|
break;
|
|
3368
3924
|
}
|
|
3369
3925
|
};
|
|
3370
|
-
return /* @__PURE__ */
|
|
3371
|
-
/* @__PURE__ */
|
|
3372
|
-
/* @__PURE__ */
|
|
3926
|
+
return /* @__PURE__ */ jsx37(Fragment7, { children: /* @__PURE__ */ jsxs13(AutoContainer, { $inputHeight: height, $inputWidth: width, children: [
|
|
3927
|
+
/* @__PURE__ */ jsxs13(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height, $inputWidth: width, children: [
|
|
3928
|
+
/* @__PURE__ */ jsx37(
|
|
3373
3929
|
Input,
|
|
3374
3930
|
{
|
|
3375
3931
|
id: idName,
|
|
@@ -3398,11 +3954,11 @@ var WavelengthAutoComplete = ({
|
|
|
3398
3954
|
autoComplete: "off"
|
|
3399
3955
|
}
|
|
3400
3956
|
),
|
|
3401
|
-
/* @__PURE__ */
|
|
3957
|
+
/* @__PURE__ */ jsx37(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
3402
3958
|
] }),
|
|
3403
|
-
isDropdownVisible && /* @__PURE__ */
|
|
3959
|
+
isDropdownVisible && /* @__PURE__ */ jsx37(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
|
|
3404
3960
|
//suggestions length controls showing the suggestions
|
|
3405
|
-
suggestions.map((item, index) => /* @__PURE__ */
|
|
3961
|
+
suggestions.map((item, index) => /* @__PURE__ */ jsx37(
|
|
3406
3962
|
ActiveListItem,
|
|
3407
3963
|
{
|
|
3408
3964
|
"data-testid": `${idName}-input-search-list-${index + 1}`,
|
|
@@ -3415,16 +3971,16 @@ var WavelengthAutoComplete = ({
|
|
|
3415
3971
|
},
|
|
3416
3972
|
`active-list-item-${item}-${index}`
|
|
3417
3973
|
))
|
|
3418
|
-
) : /* @__PURE__ */
|
|
3974
|
+
) : /* @__PURE__ */ jsx37(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
|
|
3419
3975
|
] }) });
|
|
3420
3976
|
};
|
|
3421
3977
|
WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
|
|
3422
3978
|
|
|
3423
3979
|
// src/components/inputs/WavelengthDatePicker.tsx
|
|
3424
3980
|
import { useEffect as useEffect31, useState as useState5 } from "react";
|
|
3425
|
-
import
|
|
3426
|
-
import { jsx as
|
|
3427
|
-
var Label2 =
|
|
3981
|
+
import styled6 from "styled-components";
|
|
3982
|
+
import { jsx as jsx38, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3983
|
+
var Label2 = styled6.label`
|
|
3428
3984
|
position: absolute;
|
|
3429
3985
|
top: 50%;
|
|
3430
3986
|
left: 10px;
|
|
@@ -3436,7 +3992,7 @@ var Label2 = styled5.label`
|
|
|
3436
3992
|
padding: 0 5px;
|
|
3437
3993
|
background-color: transparent;
|
|
3438
3994
|
`;
|
|
3439
|
-
var InputWrapper2 =
|
|
3995
|
+
var InputWrapper2 = styled6.div`
|
|
3440
3996
|
position: relative;
|
|
3441
3997
|
width: ${(props) => props.$inputWidth || "320px"};
|
|
3442
3998
|
height: ${(props) => props.$inputHeight || "51px"};
|
|
@@ -3534,7 +4090,7 @@ var WavelengthDatePicker = ({
|
|
|
3534
4090
|
setValue(dateString);
|
|
3535
4091
|
if (OnDataChange !== void 0) OnDataChange(new Date(dateString));
|
|
3536
4092
|
};
|
|
3537
|
-
return /* @__PURE__ */
|
|
4093
|
+
return /* @__PURE__ */ jsxs14(
|
|
3538
4094
|
InputWrapper2,
|
|
3539
4095
|
{
|
|
3540
4096
|
id: `${idName}-inputWrapper`,
|
|
@@ -3546,7 +4102,7 @@ var WavelengthDatePicker = ({
|
|
|
3546
4102
|
$FocusLabelColor: FocusLabelColor,
|
|
3547
4103
|
$inputBackGroundColor: backgroundColor,
|
|
3548
4104
|
children: [
|
|
3549
|
-
/* @__PURE__ */
|
|
4105
|
+
/* @__PURE__ */ jsx38(
|
|
3550
4106
|
"input",
|
|
3551
4107
|
{
|
|
3552
4108
|
type: inputType,
|
|
@@ -3567,7 +4123,7 @@ var WavelengthDatePicker = ({
|
|
|
3567
4123
|
max: maxAdjusted
|
|
3568
4124
|
}
|
|
3569
4125
|
),
|
|
3570
|
-
/* @__PURE__ */
|
|
4126
|
+
/* @__PURE__ */ jsx38(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
3571
4127
|
]
|
|
3572
4128
|
}
|
|
3573
4129
|
);
|
|
@@ -3580,7 +4136,7 @@ import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/w
|
|
|
3580
4136
|
// src/components/inputs/WavelengthCheckbox.tsx
|
|
3581
4137
|
import { useRef as useRef32, useEffect as useEffect32 } from "react";
|
|
3582
4138
|
import "@wavelengthusaf/web-components";
|
|
3583
|
-
import { jsx as
|
|
4139
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3584
4140
|
var WavelengthCheckbox = ({
|
|
3585
4141
|
size,
|
|
3586
4142
|
color,
|
|
@@ -3615,13 +4171,13 @@ var WavelengthCheckbox = ({
|
|
|
3615
4171
|
el.setAttribute("text-size", textSize);
|
|
3616
4172
|
}
|
|
3617
4173
|
}, [size, color, theme, disabled, text, textSize]);
|
|
3618
|
-
return /* @__PURE__ */
|
|
4174
|
+
return /* @__PURE__ */ jsx39("wavelength-checkbox", { ref, ...rest });
|
|
3619
4175
|
};
|
|
3620
4176
|
WavelengthCheckbox.displayName = "WavelengthCheckbox";
|
|
3621
4177
|
|
|
3622
4178
|
// src/components/samples/SampleComponent.tsx
|
|
3623
4179
|
import { useRef as useRef33, useEffect as useEffect33 } from "react";
|
|
3624
|
-
import { jsx as
|
|
4180
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3625
4181
|
var SampleComponent = ({
|
|
3626
4182
|
testProp,
|
|
3627
4183
|
children,
|
|
@@ -3639,14 +4195,14 @@ var SampleComponent = ({
|
|
|
3639
4195
|
el.setAttribute("test-prop", testProp);
|
|
3640
4196
|
}
|
|
3641
4197
|
}, [testProp]);
|
|
3642
|
-
return /* @__PURE__ */
|
|
4198
|
+
return /* @__PURE__ */ jsx40("sample-component", { ref, ...rest, children });
|
|
3643
4199
|
};
|
|
3644
4200
|
SampleComponent.displayName = "SampleComponent";
|
|
3645
4201
|
|
|
3646
4202
|
// src/components/NotificationPanel/WavelengthNotificationPanel.tsx
|
|
3647
4203
|
import { useRef as useRef34, useEffect as useEffect34 } from "react";
|
|
3648
4204
|
import "@wavelengthusaf/web-components";
|
|
3649
|
-
import { jsx as
|
|
4205
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3650
4206
|
var WavelengthNotificationPanel = ({
|
|
3651
4207
|
children,
|
|
3652
4208
|
username,
|
|
@@ -3658,9 +4214,6 @@ var WavelengthNotificationPanel = ({
|
|
|
3658
4214
|
useEffect34(() => {
|
|
3659
4215
|
const el = ref.current;
|
|
3660
4216
|
if (!el) return;
|
|
3661
|
-
if (typeof rest.onSignOut === "function") {
|
|
3662
|
-
el.onSignOut = rest.onSignOut;
|
|
3663
|
-
}
|
|
3664
4217
|
if (username !== void 0) {
|
|
3665
4218
|
el.username = username;
|
|
3666
4219
|
}
|
|
@@ -3668,7 +4221,7 @@ var WavelengthNotificationPanel = ({
|
|
|
3668
4221
|
el.actions = action;
|
|
3669
4222
|
}
|
|
3670
4223
|
}, [action, username]);
|
|
3671
|
-
return /* @__PURE__ */
|
|
4224
|
+
return /* @__PURE__ */ jsx41("wavelength-notification-panel", { ref, ...rest, children });
|
|
3672
4225
|
};
|
|
3673
4226
|
|
|
3674
4227
|
// src/index.ts
|
|
@@ -3676,7 +4229,7 @@ import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-compone
|
|
|
3676
4229
|
|
|
3677
4230
|
// src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
|
|
3678
4231
|
import { useEffect as useEffect35, useRef as useRef35 } from "react";
|
|
3679
|
-
import { jsx as
|
|
4232
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3680
4233
|
var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style, onChange, value, disabled, ...rest }) => {
|
|
3681
4234
|
const componentRef = useRef35(null);
|
|
3682
4235
|
useEffect35(() => {
|
|
@@ -3708,7 +4261,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
3708
4261
|
component.value = value;
|
|
3709
4262
|
}
|
|
3710
4263
|
}, [value]);
|
|
3711
|
-
return /* @__PURE__ */
|
|
4264
|
+
return /* @__PURE__ */ jsx42("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
|
|
3712
4265
|
};
|
|
3713
4266
|
|
|
3714
4267
|
// src/index.ts
|
|
@@ -3717,7 +4270,7 @@ import { WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocomplete2
|
|
|
3717
4270
|
// src/components/inputs/WavelengthCheckboxList.tsx
|
|
3718
4271
|
import { useRef as useRef36, useEffect as useEffect36 } from "react";
|
|
3719
4272
|
import "@wavelengthusaf/web-components";
|
|
3720
|
-
import { jsx as
|
|
4273
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3721
4274
|
var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children, ...rest }) => {
|
|
3722
4275
|
const ref = useRef36(null);
|
|
3723
4276
|
useEffect36(() => {
|
|
@@ -3734,7 +4287,7 @@ var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children
|
|
|
3734
4287
|
verifyAttribute("helper-text", helperText);
|
|
3735
4288
|
verifyAttribute("checkbox-information", JSON.stringify(checkboxInformation));
|
|
3736
4289
|
}, [label, helperText, checkboxInformation]);
|
|
3737
|
-
return /* @__PURE__ */
|
|
4290
|
+
return /* @__PURE__ */ jsx43("wavelength-checkbox-list", { ref, "checkbox-information": checkboxInformation, ...rest, children });
|
|
3738
4291
|
};
|
|
3739
4292
|
WavelengthCheckboxList.displayName = "WavelengthCheckboxList";
|
|
3740
4293
|
export {
|
|
@@ -3763,6 +4316,7 @@ export {
|
|
|
3763
4316
|
WavelengthDatePicker2 as WavelengthDatePickerElement,
|
|
3764
4317
|
WavelengthDefaultIcon,
|
|
3765
4318
|
WavelengthDialog,
|
|
4319
|
+
WavelengthDragAndDrop,
|
|
3766
4320
|
WavelengthDropdown,
|
|
3767
4321
|
WavelengthExampleComponent,
|
|
3768
4322
|
WavelengthFileDropZone,
|
|
@@ -3787,12 +4341,13 @@ export {
|
|
|
3787
4341
|
WavelengthSearch,
|
|
3788
4342
|
WavelengthSideBar,
|
|
3789
4343
|
WavelengthSlider,
|
|
4344
|
+
WavelengthSnackbar,
|
|
3790
4345
|
WavelengthSpinningLogo,
|
|
4346
|
+
WavelengthStyledButton,
|
|
3791
4347
|
WavelengthSwitch,
|
|
3792
4348
|
WavelengthTitleBar,
|
|
3793
4349
|
WavelengthTitleBar2 as WavelengthTitleBarElement,
|
|
3794
4350
|
WavelengthToolTip,
|
|
3795
|
-
WavelengthWebSnackbar,
|
|
3796
4351
|
add,
|
|
3797
4352
|
concat,
|
|
3798
4353
|
useThemeContext
|