@wavelengthusaf/components 5.0.2 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -0
- package/dist/cjs/index.cjs +687 -148
- package/dist/cjs/index.d.cts +43 -6
- package/dist/esm/index.d.ts +43 -6
- package/dist/esm/index.js +910 -371
- 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
|
] })
|
|
@@ -823,124 +1240,178 @@ var WavelengthNavBar = ({ items, bgColor, txtColor, hoverColor, height, padding,
|
|
|
823
1240
|
};
|
|
824
1241
|
|
|
825
1242
|
// src/components/FileDropZone/WavelengthFileDropZone.tsx
|
|
826
|
-
import { useEffect as useEffect6, useRef as useRef6 } from "react";
|
|
1243
|
+
import { forwardRef, useEffect as useEffect6, useImperativeHandle, useMemo, useRef as useRef6 } from "react";
|
|
827
1244
|
import "@wavelengthusaf/web-components";
|
|
828
1245
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
onFilesSelected,
|
|
836
|
-
hostDisplay,
|
|
837
|
-
hostWidth,
|
|
838
|
-
inputDisplay,
|
|
839
|
-
borderWidth,
|
|
840
|
-
borderStyle,
|
|
841
|
-
borderColor,
|
|
842
|
-
borderRadius,
|
|
843
|
-
padding,
|
|
844
|
-
textAlign,
|
|
845
|
-
backgroundColor,
|
|
846
|
-
cursor,
|
|
847
|
-
transition,
|
|
848
|
-
display,
|
|
849
|
-
flexDirection,
|
|
850
|
-
alignItems,
|
|
851
|
-
gap,
|
|
852
|
-
borderHoverColor,
|
|
853
|
-
backgroundHoverColor,
|
|
854
|
-
borderActiveColor,
|
|
855
|
-
backgroundActiveColor,
|
|
856
|
-
contentDisplay,
|
|
857
|
-
contentFlexDirection,
|
|
858
|
-
contentAlignItems,
|
|
859
|
-
contentGap,
|
|
860
|
-
textColor,
|
|
861
|
-
fontFamily,
|
|
862
|
-
fontStyle,
|
|
863
|
-
fontSize,
|
|
864
|
-
lineHeight,
|
|
865
|
-
letterSpacing,
|
|
866
|
-
iconSize,
|
|
867
|
-
errorColor,
|
|
868
|
-
errorFontFamily,
|
|
869
|
-
errorFontSize,
|
|
870
|
-
errorMarginTop,
|
|
871
|
-
style,
|
|
872
|
-
children,
|
|
873
|
-
...rest
|
|
874
|
-
}) => {
|
|
875
|
-
const ref = useRef6(null);
|
|
876
|
-
useEffect6(() => {
|
|
877
|
-
const el = ref.current;
|
|
878
|
-
if (!el) return;
|
|
879
|
-
if (acceptedTypes !== void 0) el.setAttribute("accepted-types", acceptedTypes);
|
|
880
|
-
else el.removeAttribute("accepted-types");
|
|
881
|
-
if (maxSize !== void 0) el.setAttribute("max-size", String(maxSize));
|
|
882
|
-
else el.removeAttribute("max-size");
|
|
883
|
-
if (dragText !== void 0) el.setAttribute("drag-text", dragText);
|
|
884
|
-
else el.removeAttribute("drag-text");
|
|
885
|
-
if (iconSrc !== void 0) el.setAttribute("icon-src", iconSrc);
|
|
886
|
-
else el.removeAttribute("icon-src");
|
|
887
|
-
if (multiple) el.setAttribute("multiple", "");
|
|
888
|
-
else el.removeAttribute("multiple");
|
|
889
|
-
const handleFilesSelected = (event) => {
|
|
890
|
-
const customEvent = event;
|
|
891
|
-
onFilesSelected?.(customEvent.detail.files);
|
|
892
|
-
};
|
|
893
|
-
el.addEventListener("files-selected", handleFilesSelected);
|
|
894
|
-
return () => {
|
|
895
|
-
el.removeEventListener("files-selected", handleFilesSelected);
|
|
896
|
-
};
|
|
897
|
-
}, [acceptedTypes, maxSize, multiple, dragText, iconSrc, onFilesSelected]);
|
|
898
|
-
const mergedStyle = {
|
|
899
|
-
...style,
|
|
900
|
-
"--hostDisplay": hostDisplay,
|
|
901
|
-
"--hostWidth": hostWidth,
|
|
902
|
-
"--inputDisplay": inputDisplay,
|
|
903
|
-
"--borderWidth": borderWidth,
|
|
904
|
-
"--borderStyle": borderStyle,
|
|
905
|
-
"--borderColor": borderColor,
|
|
906
|
-
"--borderRadius": borderRadius,
|
|
907
|
-
"--padding": padding,
|
|
908
|
-
"--textAlign": textAlign,
|
|
909
|
-
"--backgroundColor": backgroundColor,
|
|
910
|
-
"--cursor": cursor,
|
|
911
|
-
"--transition": transition,
|
|
912
|
-
"--display": display,
|
|
913
|
-
"--flexDirection": flexDirection,
|
|
914
|
-
"--alignItems": alignItems,
|
|
915
|
-
"--gap": gap,
|
|
916
|
-
"--borderHoverColor": borderHoverColor,
|
|
917
|
-
"--backgroundHoverColor": backgroundHoverColor,
|
|
918
|
-
"--borderActiveColor": borderActiveColor,
|
|
919
|
-
"--backgroundActiveColor": backgroundActiveColor,
|
|
920
|
-
"--contentDisplay": contentDisplay,
|
|
921
|
-
"--contentFlexDirection": contentFlexDirection,
|
|
922
|
-
"--contentAlignItems": contentAlignItems,
|
|
923
|
-
"--contentGap": contentGap,
|
|
924
|
-
"--textColor": textColor,
|
|
925
|
-
"--fontFamily": fontFamily,
|
|
926
|
-
"--fontStyle": fontStyle,
|
|
927
|
-
"--fontSize": fontSize,
|
|
928
|
-
"--lineHeight": lineHeight,
|
|
929
|
-
"--letterSpacing": letterSpacing,
|
|
930
|
-
"--iconSize": iconSize,
|
|
931
|
-
"--errorColor": errorColor,
|
|
932
|
-
"--errorFontFamily": errorFontFamily,
|
|
933
|
-
"--errorFontSize": errorFontSize,
|
|
934
|
-
"--errorMarginTop": errorMarginTop
|
|
935
|
-
};
|
|
936
|
-
return /* @__PURE__ */ jsx9("wavelength-file-drop-zone", { ref, style: mergedStyle, ...rest, children });
|
|
1246
|
+
var setAttribute = (element, attribute, value) => {
|
|
1247
|
+
if (value === void 0 || value === null) {
|
|
1248
|
+
element.removeAttribute(attribute);
|
|
1249
|
+
return;
|
|
1250
|
+
}
|
|
1251
|
+
element.setAttribute(attribute, String(value));
|
|
937
1252
|
};
|
|
1253
|
+
var WavelengthFileDropZone = forwardRef(
|
|
1254
|
+
({
|
|
1255
|
+
acceptedTypes,
|
|
1256
|
+
maxSize,
|
|
1257
|
+
multiple,
|
|
1258
|
+
dragText,
|
|
1259
|
+
iconSrc,
|
|
1260
|
+
width,
|
|
1261
|
+
onFilesSelected,
|
|
1262
|
+
hostDisplay,
|
|
1263
|
+
hostWidth,
|
|
1264
|
+
inputDisplay,
|
|
1265
|
+
borderWidth,
|
|
1266
|
+
borderStyle,
|
|
1267
|
+
borderColor,
|
|
1268
|
+
borderRadius,
|
|
1269
|
+
padding,
|
|
1270
|
+
textAlign,
|
|
1271
|
+
backgroundColor,
|
|
1272
|
+
cursor,
|
|
1273
|
+
transition,
|
|
1274
|
+
display,
|
|
1275
|
+
flexDirection,
|
|
1276
|
+
alignItems,
|
|
1277
|
+
gap,
|
|
1278
|
+
borderHoverColor,
|
|
1279
|
+
backgroundHoverColor,
|
|
1280
|
+
borderActiveColor,
|
|
1281
|
+
backgroundActiveColor,
|
|
1282
|
+
contentDisplay,
|
|
1283
|
+
contentFlexDirection,
|
|
1284
|
+
contentAlignItems,
|
|
1285
|
+
contentGap,
|
|
1286
|
+
textColor,
|
|
1287
|
+
fontFamily,
|
|
1288
|
+
fontStyle,
|
|
1289
|
+
fontSize,
|
|
1290
|
+
lineHeight,
|
|
1291
|
+
letterSpacing,
|
|
1292
|
+
iconSize,
|
|
1293
|
+
errorColor,
|
|
1294
|
+
errorFontFamily,
|
|
1295
|
+
errorFontSize,
|
|
1296
|
+
errorMarginTop,
|
|
1297
|
+
style,
|
|
1298
|
+
children,
|
|
1299
|
+
...rest
|
|
1300
|
+
}, ref) => {
|
|
1301
|
+
const elementRef = useRef6(null);
|
|
1302
|
+
useImperativeHandle(ref, () => elementRef.current);
|
|
1303
|
+
useEffect6(() => {
|
|
1304
|
+
const element = elementRef.current;
|
|
1305
|
+
if (!element) return;
|
|
1306
|
+
setAttribute(element, "accepted-types", acceptedTypes);
|
|
1307
|
+
setAttribute(element, "max-size", maxSize);
|
|
1308
|
+
setAttribute(element, "drag-text", dragText);
|
|
1309
|
+
setAttribute(element, "icon-src", iconSrc);
|
|
1310
|
+
if (multiple) {
|
|
1311
|
+
element.setAttribute("multiple", "");
|
|
1312
|
+
} else {
|
|
1313
|
+
element.removeAttribute("multiple");
|
|
1314
|
+
}
|
|
1315
|
+
}, [acceptedTypes, maxSize, multiple, dragText, iconSrc]);
|
|
1316
|
+
useEffect6(() => {
|
|
1317
|
+
const element = elementRef.current;
|
|
1318
|
+
if (!element || !onFilesSelected) return;
|
|
1319
|
+
const handleFilesSelected = (event) => {
|
|
1320
|
+
const customEvent = event;
|
|
1321
|
+
onFilesSelected(customEvent.detail.files);
|
|
1322
|
+
};
|
|
1323
|
+
element.addEventListener("files-selected", handleFilesSelected);
|
|
1324
|
+
return () => element.removeEventListener("files-selected", handleFilesSelected);
|
|
1325
|
+
}, [onFilesSelected]);
|
|
1326
|
+
const mergedStyle = useMemo(
|
|
1327
|
+
() => ({
|
|
1328
|
+
...style,
|
|
1329
|
+
"--hostDisplay": hostDisplay,
|
|
1330
|
+
"--hostWidth": hostWidth ?? width,
|
|
1331
|
+
"--inputDisplay": inputDisplay,
|
|
1332
|
+
"--borderWidth": borderWidth,
|
|
1333
|
+
"--borderStyle": borderStyle,
|
|
1334
|
+
"--borderColor": borderColor,
|
|
1335
|
+
"--borderRadius": borderRadius,
|
|
1336
|
+
"--padding": padding,
|
|
1337
|
+
"--textAlign": textAlign,
|
|
1338
|
+
"--backgroundColor": backgroundColor,
|
|
1339
|
+
"--cursor": cursor,
|
|
1340
|
+
"--transition": transition,
|
|
1341
|
+
"--display": display,
|
|
1342
|
+
"--flexDirection": flexDirection,
|
|
1343
|
+
"--alignItems": alignItems,
|
|
1344
|
+
"--gap": gap,
|
|
1345
|
+
"--borderHoverColor": borderHoverColor,
|
|
1346
|
+
"--backgroundHoverColor": backgroundHoverColor,
|
|
1347
|
+
"--borderActiveColor": borderActiveColor,
|
|
1348
|
+
"--backgroundActiveColor": backgroundActiveColor,
|
|
1349
|
+
"--contentDisplay": contentDisplay,
|
|
1350
|
+
"--contentFlexDirection": contentFlexDirection,
|
|
1351
|
+
"--contentAlignItems": contentAlignItems,
|
|
1352
|
+
"--contentGap": contentGap,
|
|
1353
|
+
"--textColor": textColor,
|
|
1354
|
+
"--fontFamily": fontFamily,
|
|
1355
|
+
"--fontStyle": fontStyle,
|
|
1356
|
+
"--fontSize": fontSize,
|
|
1357
|
+
"--lineHeight": lineHeight,
|
|
1358
|
+
"--letterSpacing": letterSpacing,
|
|
1359
|
+
"--iconSize": iconSize,
|
|
1360
|
+
"--errorColor": errorColor,
|
|
1361
|
+
"--errorFontFamily": errorFontFamily,
|
|
1362
|
+
"--errorFontSize": errorFontSize,
|
|
1363
|
+
"--errorMarginTop": errorMarginTop
|
|
1364
|
+
}),
|
|
1365
|
+
[
|
|
1366
|
+
style,
|
|
1367
|
+
hostDisplay,
|
|
1368
|
+
hostWidth,
|
|
1369
|
+
width,
|
|
1370
|
+
inputDisplay,
|
|
1371
|
+
borderWidth,
|
|
1372
|
+
borderStyle,
|
|
1373
|
+
borderColor,
|
|
1374
|
+
borderRadius,
|
|
1375
|
+
padding,
|
|
1376
|
+
textAlign,
|
|
1377
|
+
backgroundColor,
|
|
1378
|
+
cursor,
|
|
1379
|
+
transition,
|
|
1380
|
+
display,
|
|
1381
|
+
flexDirection,
|
|
1382
|
+
alignItems,
|
|
1383
|
+
gap,
|
|
1384
|
+
borderHoverColor,
|
|
1385
|
+
backgroundHoverColor,
|
|
1386
|
+
borderActiveColor,
|
|
1387
|
+
backgroundActiveColor,
|
|
1388
|
+
contentDisplay,
|
|
1389
|
+
contentFlexDirection,
|
|
1390
|
+
contentAlignItems,
|
|
1391
|
+
contentGap,
|
|
1392
|
+
textColor,
|
|
1393
|
+
fontFamily,
|
|
1394
|
+
fontStyle,
|
|
1395
|
+
fontSize,
|
|
1396
|
+
lineHeight,
|
|
1397
|
+
letterSpacing,
|
|
1398
|
+
iconSize,
|
|
1399
|
+
errorColor,
|
|
1400
|
+
errorFontFamily,
|
|
1401
|
+
errorFontSize,
|
|
1402
|
+
errorMarginTop
|
|
1403
|
+
]
|
|
1404
|
+
);
|
|
1405
|
+
return /* @__PURE__ */ jsx9("wavelength-file-drop-zone", { ref: elementRef, style: mergedStyle, ...rest, children });
|
|
1406
|
+
}
|
|
1407
|
+
);
|
|
1408
|
+
WavelengthFileDropZone.displayName = "WavelengthFileDropZone";
|
|
938
1409
|
|
|
939
|
-
// src/components/SnackBar/
|
|
1410
|
+
// src/components/SnackBar/WavelengthSnackbar.tsx
|
|
940
1411
|
import { useEffect as useEffect7, useRef as useRef7 } from "react";
|
|
941
1412
|
import "@wavelengthusaf/web-components";
|
|
942
1413
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
943
|
-
var
|
|
1414
|
+
var WavelengthSnackbar = ({
|
|
944
1415
|
message,
|
|
945
1416
|
duration,
|
|
946
1417
|
backgroundColor,
|
|
@@ -1043,7 +1514,7 @@ WavelengthProgressBar.displayName = "WavelengthProgressBar";
|
|
|
1043
1514
|
import { WavelengthProgressBar as WavelengthProgressBar2 } from "@wavelengthusaf/web-components";
|
|
1044
1515
|
|
|
1045
1516
|
// src/components/PageComponents/WavelengthPermissionAlert.tsx
|
|
1046
|
-
import { Fragment as Fragment3, jsx as jsx12, jsxs as
|
|
1517
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1047
1518
|
function WavelengthPermissionAlert({
|
|
1048
1519
|
dataTestId,
|
|
1049
1520
|
height = "112px",
|
|
@@ -1057,7 +1528,7 @@ function WavelengthPermissionAlert({
|
|
|
1057
1528
|
unit = "No Unit",
|
|
1058
1529
|
id
|
|
1059
1530
|
}) {
|
|
1060
|
-
return /* @__PURE__ */ jsx12(Fragment3, { children: /* @__PURE__ */
|
|
1531
|
+
return /* @__PURE__ */ jsx12(Fragment3, { children: /* @__PURE__ */ jsxs5(
|
|
1061
1532
|
"div",
|
|
1062
1533
|
{
|
|
1063
1534
|
id,
|
|
@@ -1079,21 +1550,21 @@ function WavelengthPermissionAlert({
|
|
|
1079
1550
|
},
|
|
1080
1551
|
children: [
|
|
1081
1552
|
/* @__PURE__ */ jsx12("div", { style: { fontSize: "20px", fontWeight: 400 }, children: permission }),
|
|
1082
|
-
/* @__PURE__ */
|
|
1553
|
+
/* @__PURE__ */ jsxs5("div", { style: { letterSpacing: "-6%" }, children: [
|
|
1083
1554
|
"Application: ",
|
|
1084
1555
|
/* @__PURE__ */ jsx12("span", { style: { fontWeight: 600, marginLeft: "4px" }, children: applicationName })
|
|
1085
1556
|
] }),
|
|
1086
|
-
/* @__PURE__ */
|
|
1557
|
+
/* @__PURE__ */ jsxs5("div", { style: { letterSpacing: "-6%" }, children: [
|
|
1087
1558
|
"Requestor:",
|
|
1088
1559
|
" ",
|
|
1089
|
-
/* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ jsxs5("span", { style: { fontWeight: 600, marginLeft: "4px" }, children: [
|
|
1090
1561
|
requestorName,
|
|
1091
1562
|
", ",
|
|
1092
1563
|
"" + unit
|
|
1093
1564
|
] })
|
|
1094
1565
|
] }),
|
|
1095
|
-
/* @__PURE__ */
|
|
1096
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
1567
|
+
/* @__PURE__ */ jsxs5("div", { style: { letterSpacing: "-6%" }, children: [
|
|
1097
1568
|
"Date of Request: ",
|
|
1098
1569
|
/* @__PURE__ */ jsx12("span", { style: { fontWeight: 600, marginLeft: "4px" }, children: dateOfRequest })
|
|
1099
1570
|
] }),
|
|
@@ -1107,9 +1578,78 @@ function WavelengthPermissionAlert({
|
|
|
1107
1578
|
}
|
|
1108
1579
|
WavelengthPermissionAlert.displayName = "WavelengthPermissionAlert";
|
|
1109
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
|
+
|
|
1110
1650
|
// src/components/PageComponents/WavelengthToolTip.tsx
|
|
1111
1651
|
import { useRef as useRef10, useEffect as useEffect10 } from "react";
|
|
1112
|
-
import { jsx as
|
|
1652
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1113
1653
|
var WavelengthToolTip = ({ color, font, direction, children, textColor, textContent, ...rest }) => {
|
|
1114
1654
|
const ref = useRef10(null);
|
|
1115
1655
|
const syncAttribute = (attribute, value) => {
|
|
@@ -1124,13 +1664,13 @@ var WavelengthToolTip = ({ color, font, direction, children, textColor, textCont
|
|
|
1124
1664
|
syncAttribute("text-color", textColor || "");
|
|
1125
1665
|
syncAttribute("text-content", textContent || "");
|
|
1126
1666
|
}, [color, font, direction, textColor, textContent]);
|
|
1127
|
-
return /* @__PURE__ */
|
|
1667
|
+
return /* @__PURE__ */ jsx14("wavelength-tooltip", { ref, ...rest, children });
|
|
1128
1668
|
};
|
|
1129
1669
|
WavelengthToolTip.displayName = "WavelengthToolTip";
|
|
1130
1670
|
|
|
1131
1671
|
// src/components/PageComponents/WavelengthBadge.tsx
|
|
1132
1672
|
import { useRef as useRef11, useEffect as useEffect11 } from "react";
|
|
1133
|
-
import { jsx as
|
|
1673
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1134
1674
|
var WavelengthBadge = ({
|
|
1135
1675
|
variant,
|
|
1136
1676
|
badgeBorderRadius,
|
|
@@ -1204,8 +1744,8 @@ var WavelengthBadge = ({
|
|
|
1204
1744
|
item,
|
|
1205
1745
|
customStyle
|
|
1206
1746
|
]);
|
|
1207
|
-
return /* @__PURE__ */
|
|
1208
|
-
badgeContent !== void 0 && /* @__PURE__ */
|
|
1747
|
+
return /* @__PURE__ */ jsxs7("wavelength-badge", { ref, ...rest, children: [
|
|
1748
|
+
badgeContent !== void 0 && /* @__PURE__ */ jsx15("span", { slot: "badge", children: badgeContent }),
|
|
1209
1749
|
item || children
|
|
1210
1750
|
] });
|
|
1211
1751
|
};
|
|
@@ -1213,7 +1753,7 @@ WavelengthBadge.displayName = "WavelengthBadge";
|
|
|
1213
1753
|
|
|
1214
1754
|
// src/components/PageComponents/WavelengthCommentDisplay.tsx
|
|
1215
1755
|
import { useRef as useRef12, useEffect as useEffect12 } from "react";
|
|
1216
|
-
import { jsx as
|
|
1756
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1217
1757
|
var WavelengthCommentDisplay = ({
|
|
1218
1758
|
children,
|
|
1219
1759
|
customStyle,
|
|
@@ -1263,14 +1803,14 @@ var WavelengthCommentDisplay = ({
|
|
|
1263
1803
|
syncAttribute("icon-selected-color", iconSelectedColor);
|
|
1264
1804
|
syncBooleanAttribute("selected", selected);
|
|
1265
1805
|
}, [customStyle, author, comment, date, width, height, txtColor, bgColor, border, iconSelectedColor, selected]);
|
|
1266
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ jsx16("wavelength-comment-display", { ref, ...rest, children });
|
|
1267
1807
|
};
|
|
1268
1808
|
WavelengthCommentDisplay.displayName = "WavelengthCommentDisplay";
|
|
1269
1809
|
|
|
1270
1810
|
// src/components/forms/WavelengthForm.tsx
|
|
1271
|
-
import React12, { useEffect as useEffect13, useImperativeHandle, useRef as useRef13 } from "react";
|
|
1811
|
+
import React12, { useEffect as useEffect13, useImperativeHandle as useImperativeHandle2, useRef as useRef13 } from "react";
|
|
1272
1812
|
import "@wavelengthusaf/web-components";
|
|
1273
|
-
import { jsx as
|
|
1813
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1274
1814
|
function useStableCallback(fn) {
|
|
1275
1815
|
const fnRef = useRef13(fn);
|
|
1276
1816
|
useEffect13(() => {
|
|
@@ -1376,7 +1916,7 @@ function WavelengthFormInner(props, ref) {
|
|
|
1376
1916
|
el.removeEventListener("submit", onSubmitStable);
|
|
1377
1917
|
};
|
|
1378
1918
|
}, [onChangeStable, onValidStable, onInvalidStable, onLeftStable, onCenterStable, onRightStable, onSubmitStable]);
|
|
1379
|
-
|
|
1919
|
+
useImperativeHandle2(
|
|
1380
1920
|
ref,
|
|
1381
1921
|
() => ({
|
|
1382
1922
|
validate: () => hostRef.current?.validate?.() ?? false,
|
|
@@ -1387,7 +1927,7 @@ function WavelengthFormInner(props, ref) {
|
|
|
1387
1927
|
}),
|
|
1388
1928
|
[]
|
|
1389
1929
|
);
|
|
1390
|
-
return /* @__PURE__ */
|
|
1930
|
+
return /* @__PURE__ */ jsx17("wavelength-form", { ref: hostRef, className, style });
|
|
1391
1931
|
}
|
|
1392
1932
|
var WavelengthFormForwardRef = React12.forwardRef(WavelengthFormInner);
|
|
1393
1933
|
WavelengthFormForwardRef.displayName = "WavelengthForm";
|
|
@@ -1399,7 +1939,7 @@ import { WavelengthForm as WavelengthForm2 } from "@wavelengthusaf/web-component
|
|
|
1399
1939
|
// src/components/headers/WavelengthTitleBar/WavelengthTitleBar.tsx
|
|
1400
1940
|
import { useEffect as useEffect14, useRef as useRef14 } from "react";
|
|
1401
1941
|
import "@wavelengthusaf/web-components";
|
|
1402
|
-
import { jsx as
|
|
1942
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1403
1943
|
function WavelengthTitleBar({ titleText, subtitleText, textColor, shadowColor, id, name }) {
|
|
1404
1944
|
const ref = useRef14(null);
|
|
1405
1945
|
useEffect14(() => {
|
|
@@ -1412,7 +1952,7 @@ function WavelengthTitleBar({ titleText, subtitleText, textColor, shadowColor, i
|
|
|
1412
1952
|
ref.current.setAttribute("name", name || "");
|
|
1413
1953
|
}
|
|
1414
1954
|
}, [titleText, subtitleText, textColor, shadowColor]);
|
|
1415
|
-
return /* @__PURE__ */
|
|
1955
|
+
return /* @__PURE__ */ jsx18("wavelength-title-bar", { ref });
|
|
1416
1956
|
}
|
|
1417
1957
|
WavelengthTitleBar.displayName = "WavelengthTitleBar";
|
|
1418
1958
|
|
|
@@ -1422,7 +1962,7 @@ import { WavelengthTitleBar as WavelengthTitleBar2 } from "@wavelengthusaf/web-c
|
|
|
1422
1962
|
// src/components/headers/WavelengthTitleBar/WavelengthBanner.tsx
|
|
1423
1963
|
import { useEffect as useEffect15, useRef as useRef15 } from "react";
|
|
1424
1964
|
import "@wavelengthusaf/web-components";
|
|
1425
|
-
import { jsx as
|
|
1965
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1426
1966
|
function WavelengthBanner({ bannerText, bannerColor, textColor, opacity = 1, zIndex = 10, id, classification, control, name }) {
|
|
1427
1967
|
const ref = useRef15(null);
|
|
1428
1968
|
useEffect15(() => {
|
|
@@ -1438,7 +1978,7 @@ function WavelengthBanner({ bannerText, bannerColor, textColor, opacity = 1, zIn
|
|
|
1438
1978
|
if (id) el.setAttribute("id", id);
|
|
1439
1979
|
if (name) el.setAttribute("name", name);
|
|
1440
1980
|
}, [bannerText, bannerColor, textColor, classification, control, opacity, zIndex, id, name]);
|
|
1441
|
-
return /* @__PURE__ */
|
|
1981
|
+
return /* @__PURE__ */ jsx19("wavelength-banner", { ref });
|
|
1442
1982
|
}
|
|
1443
1983
|
WavelengthBanner.displayName = "WavelengthBanner";
|
|
1444
1984
|
|
|
@@ -1446,11 +1986,11 @@ WavelengthBanner.displayName = "WavelengthBanner";
|
|
|
1446
1986
|
import { WavelengthBanner as WavelengthBanner2 } from "@wavelengthusaf/web-components";
|
|
1447
1987
|
|
|
1448
1988
|
// src/components/logos/default/WavelengthDefaultIcon.tsx
|
|
1449
|
-
import { jsx as
|
|
1989
|
+
import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1450
1990
|
function WavelengthDefaultIcon({ width = "180", height = 140, id, name }) {
|
|
1451
|
-
return /* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1453
|
-
/* @__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(
|
|
1454
1994
|
"path",
|
|
1455
1995
|
{
|
|
1456
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",
|
|
@@ -1459,20 +1999,20 @@ function WavelengthDefaultIcon({ width = "180", height = 140, id, name }) {
|
|
|
1459
1999
|
stroke: "#6B6B6B"
|
|
1460
2000
|
}
|
|
1461
2001
|
),
|
|
1462
|
-
/* @__PURE__ */
|
|
1463
|
-
/* @__PURE__ */
|
|
1464
|
-
/* @__PURE__ */
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1467
|
-
/* @__PURE__ */
|
|
1468
|
-
/* @__PURE__ */
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
/* @__PURE__ */
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
/* @__PURE__ */
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
/* @__PURE__ */
|
|
1475
|
-
/* @__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" })
|
|
1476
2016
|
] }) })
|
|
1477
2017
|
] }) });
|
|
1478
2018
|
}
|
|
@@ -1480,7 +2020,7 @@ WavelengthDefaultIcon.displayName = "WavelengthDefaultIcon";
|
|
|
1480
2020
|
|
|
1481
2021
|
// src/components/CSFD/WavelengthManyPlanes.tsx
|
|
1482
2022
|
import { useRef as useRef16, useEffect as useEffect16 } from "react";
|
|
1483
|
-
import { jsx as
|
|
2023
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1484
2024
|
var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color, gradient, spaced, ...rest }) => {
|
|
1485
2025
|
const ref = useRef16(null);
|
|
1486
2026
|
useEffect16(() => {
|
|
@@ -1505,14 +2045,14 @@ var WavelengthManyPlanes = ({ children, numberOfPlanes, trailDir, opacity, color
|
|
|
1505
2045
|
el.spaced = spaced;
|
|
1506
2046
|
}
|
|
1507
2047
|
}, [numberOfPlanes, trailDir, opacity, color, gradient, spaced]);
|
|
1508
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx21("wavelength-manyplanes", { ref, trailDir, opacity, color, gradient, spaced: spaced?.toString(), ...rest, children });
|
|
1509
2049
|
};
|
|
1510
2050
|
WavelengthManyPlanes.displayName = "WavelengthManyPlanes";
|
|
1511
2051
|
|
|
1512
2052
|
// src/components/separators/WavelengthPlaneTrail/WavelengthPlaneTrail.tsx
|
|
1513
2053
|
import { useRef as useRef17, useEffect as useEffect17 } from "react";
|
|
1514
2054
|
import "@wavelengthusaf/web-components";
|
|
1515
|
-
import { jsx as
|
|
2055
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1516
2056
|
var WavelengthPlaneTrail = ({
|
|
1517
2057
|
trailDir,
|
|
1518
2058
|
color,
|
|
@@ -1540,13 +2080,13 @@ var WavelengthPlaneTrail = ({
|
|
|
1540
2080
|
el.setAttribute("id", id);
|
|
1541
2081
|
}
|
|
1542
2082
|
}, [trailDir]);
|
|
1543
|
-
return /* @__PURE__ */
|
|
2083
|
+
return /* @__PURE__ */ jsx22("wavelength-planetrail", { ref, trailDir, color, id, customStyle, ...rest, children });
|
|
1544
2084
|
};
|
|
1545
2085
|
WavelengthPlaneTrail.displayName = "WavelengthPlaneTrail";
|
|
1546
2086
|
|
|
1547
2087
|
// src/components/modals/WavelengthConfirmationModal.tsx
|
|
1548
2088
|
import { useEffect as useEffect18, useRef as useRef18 } from "react";
|
|
1549
|
-
import { jsx as
|
|
2089
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1550
2090
|
function WavelengthConfirmationModal(props) {
|
|
1551
2091
|
const { show, setShow, id, name } = props;
|
|
1552
2092
|
const modalRef = useRef18(null);
|
|
@@ -1564,7 +2104,7 @@ function WavelengthConfirmationModal(props) {
|
|
|
1564
2104
|
}
|
|
1565
2105
|
};
|
|
1566
2106
|
}, [setShow]);
|
|
1567
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ jsxs9(
|
|
1568
2108
|
"wavelength-confirmation-modal",
|
|
1569
2109
|
{
|
|
1570
2110
|
ref: modalRef,
|
|
@@ -1579,8 +2119,8 @@ function WavelengthConfirmationModal(props) {
|
|
|
1579
2119
|
"title-text": props.textObj?.title,
|
|
1580
2120
|
"dialog-text": props.textObj?.dialog,
|
|
1581
2121
|
children: [
|
|
1582
|
-
props.cancelButton && /* @__PURE__ */
|
|
1583
|
-
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 })
|
|
1584
2124
|
]
|
|
1585
2125
|
}
|
|
1586
2126
|
);
|
|
@@ -1589,7 +2129,7 @@ WavelengthConfirmationModal.displayName = "WavelengthConfirmationModal";
|
|
|
1589
2129
|
|
|
1590
2130
|
// src/components/modals/WavelengthPopUpMenu.tsx
|
|
1591
2131
|
import React16, { useRef as useRef19, useEffect as useEffect19 } from "react";
|
|
1592
|
-
import { jsx as
|
|
2132
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1593
2133
|
var WavelengthPopUpMenu = React16.forwardRef(
|
|
1594
2134
|
({ children, customStyle = {}, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel, ...rest }, externalRef) => {
|
|
1595
2135
|
const internalRef = useRef19(null);
|
|
@@ -1614,15 +2154,15 @@ var WavelengthPopUpMenu = React16.forwardRef(
|
|
|
1614
2154
|
el.setAttribute("menu-items", JSON.stringify(menuItems));
|
|
1615
2155
|
}
|
|
1616
2156
|
}, [customStyle, variant, trigger, menuDirection, menuOffset, menuItems, badgeLabel]);
|
|
1617
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ jsx24("wavelength-popup-menu", { ref: internalRef, ...rest, children });
|
|
1618
2158
|
}
|
|
1619
2159
|
);
|
|
1620
2160
|
WavelengthPopUpMenu.displayName = "WavelengthPopUpMenu";
|
|
1621
2161
|
|
|
1622
2162
|
// src/components/modals/WavelengthDropdown.tsx
|
|
1623
|
-
import { forwardRef, useEffect as useEffect20, useImperativeHandle as
|
|
1624
|
-
import { jsx as
|
|
1625
|
-
var WavelengthDropdown =
|
|
2163
|
+
import { forwardRef as forwardRef2, useEffect as useEffect20, useImperativeHandle as useImperativeHandle3, useRef as useRef20 } from "react";
|
|
2164
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2165
|
+
var WavelengthDropdown = forwardRef2((props, ref) => {
|
|
1626
2166
|
const {
|
|
1627
2167
|
options,
|
|
1628
2168
|
defaultValue,
|
|
@@ -1647,7 +2187,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
|
|
|
1647
2187
|
...rest
|
|
1648
2188
|
} = props;
|
|
1649
2189
|
const elementRef = useRef20(null);
|
|
1650
|
-
|
|
2190
|
+
useImperativeHandle3(ref, () => elementRef.current);
|
|
1651
2191
|
useEffect20(() => {
|
|
1652
2192
|
const el = elementRef.current;
|
|
1653
2193
|
if (!el || !onChange) return;
|
|
@@ -1663,7 +2203,7 @@ var WavelengthDropdown = forwardRef((props, ref) => {
|
|
|
1663
2203
|
elementRef.current.value = value;
|
|
1664
2204
|
}
|
|
1665
2205
|
}, [value]);
|
|
1666
|
-
return /* @__PURE__ */
|
|
2206
|
+
return /* @__PURE__ */ jsx25(
|
|
1667
2207
|
"wavelength-dropdown",
|
|
1668
2208
|
{
|
|
1669
2209
|
ref: elementRef,
|
|
@@ -1693,7 +2233,7 @@ WavelengthDropdown.displayName = "WavelengthDropdown";
|
|
|
1693
2233
|
|
|
1694
2234
|
// src/components/modals/WavelengthMenu.tsx
|
|
1695
2235
|
import { useRef as useRef21, useEffect as useEffect21 } from "react";
|
|
1696
|
-
import { jsx as
|
|
2236
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1697
2237
|
var WavelengthMenu = ({
|
|
1698
2238
|
backgroundColor,
|
|
1699
2239
|
textColor,
|
|
@@ -1736,7 +2276,7 @@ var WavelengthMenu = ({
|
|
|
1736
2276
|
el.removeEventListener("wavelength-menu-select", handleSelect);
|
|
1737
2277
|
};
|
|
1738
2278
|
}, [backgroundColor, textColor, font, fontSize, border, padding, borderRadius, selectedColor, disabledColor, items, WavelengthMenuSelect]);
|
|
1739
|
-
return /* @__PURE__ */
|
|
2279
|
+
return /* @__PURE__ */ jsx26(
|
|
1740
2280
|
"wavelength-menu",
|
|
1741
2281
|
{
|
|
1742
2282
|
ref,
|
|
@@ -1758,7 +2298,7 @@ WavelengthMenu.displayName = "WavelengthMenu";
|
|
|
1758
2298
|
|
|
1759
2299
|
// src/components/modals/WavelengthSwitch.tsx
|
|
1760
2300
|
import { useRef as useRef22, useEffect as useEffect22 } from "react";
|
|
1761
|
-
import { jsx as
|
|
2301
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1762
2302
|
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color, labelFont, checked, value, onWavelengthSwitchChange, customStyle, ...rest }) => {
|
|
1763
2303
|
const ref = useRef22(null);
|
|
1764
2304
|
useEffect22(() => {
|
|
@@ -1790,13 +2330,13 @@ var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color, labelFon
|
|
|
1790
2330
|
el.addEventListener("wavelength-switch-change", handleEvent);
|
|
1791
2331
|
return () => el.removeEventListener("wavelength-switch-change", handleEvent);
|
|
1792
2332
|
}, [onWavelengthSwitchChange]);
|
|
1793
|
-
return /* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ jsx27("wavelength-switch", { ref, ...rest });
|
|
1794
2334
|
};
|
|
1795
2335
|
WavelengthSwitch.displayName = "WavelengthSwitch";
|
|
1796
2336
|
|
|
1797
2337
|
// src/components/modals/WavelengthDialog.tsx
|
|
1798
2338
|
import { useRef as useRef23, useEffect as useEffect23 } from "react";
|
|
1799
|
-
import { jsx as
|
|
2339
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1800
2340
|
var WavelengthDialog = ({
|
|
1801
2341
|
children,
|
|
1802
2342
|
customStyle,
|
|
@@ -1886,13 +2426,13 @@ var WavelengthDialog = ({
|
|
|
1886
2426
|
rightBtnColor,
|
|
1887
2427
|
fontFamily
|
|
1888
2428
|
]);
|
|
1889
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx28("wavelength-dialog", { ref, ...rest, children });
|
|
1890
2430
|
};
|
|
1891
2431
|
WavelengthDialog.displayName = "WavelengthDialog";
|
|
1892
2432
|
|
|
1893
2433
|
// src/components/modals/WavelengthPagination.tsx
|
|
1894
2434
|
import { useRef as useRef24, useEffect as useEffect24 } from "react";
|
|
1895
|
-
import { jsx as
|
|
2435
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1896
2436
|
var WavelengthPagination = ({
|
|
1897
2437
|
testProp,
|
|
1898
2438
|
children,
|
|
@@ -1948,7 +2488,7 @@ var WavelengthPagination = ({
|
|
|
1948
2488
|
el.removeEventListener("page-change", handlePageChange);
|
|
1949
2489
|
};
|
|
1950
2490
|
}, [testProp, textColor, font, fontSize, border, borderRadius, padding, variant, totalPages, currentPage, activeColor, activeTextColor, backgroundColor, disabledColor, onPageChange]);
|
|
1951
|
-
return /* @__PURE__ */
|
|
2491
|
+
return /* @__PURE__ */ jsx29("wavelength-pagination", { ref, variant, "total-pages": totalPages, "current-page": currentPage, ...rest });
|
|
1952
2492
|
};
|
|
1953
2493
|
WavelengthPagination.displayName = "WavelengthPagination";
|
|
1954
2494
|
|
|
@@ -1957,7 +2497,7 @@ import { WavelengthPagination as WavelengthPagination2 } from "@wavelengthusaf/w
|
|
|
1957
2497
|
|
|
1958
2498
|
// src/components/sliders/WavelengthSlider.tsx
|
|
1959
2499
|
import { useRef as useRef25, useEffect as useEffect25 } from "react";
|
|
1960
|
-
import { jsx as
|
|
2500
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1961
2501
|
var WavelengthSlider = ({ children, customStyle, value, maxVal, minVal, step, handleChange, labelFunc, valueDisplayed, marks, color, width, ...rest }) => {
|
|
1962
2502
|
const ref = useRef25(null);
|
|
1963
2503
|
useEffect25(() => {
|
|
@@ -1985,15 +2525,15 @@ var WavelengthSlider = ({ children, customStyle, value, maxVal, minVal, step, ha
|
|
|
1985
2525
|
el.addEventListener("slider-change", onSliderChange);
|
|
1986
2526
|
return () => el.removeEventListener("slider-change", onSliderChange);
|
|
1987
2527
|
}, [handleChange]);
|
|
1988
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsx30("wavelength-slider", { ref, ...rest, children });
|
|
1989
2529
|
};
|
|
1990
2530
|
WavelengthSlider.displayName = "WavelengthSlider";
|
|
1991
2531
|
|
|
1992
2532
|
// src/components/TextField/WavelengthInput.tsx
|
|
1993
|
-
import { useRef as useRef26, useEffect as useEffect26, forwardRef as
|
|
2533
|
+
import { useRef as useRef26, useEffect as useEffect26, forwardRef as forwardRef3, useImperativeHandle as useImperativeHandle4 } from "react";
|
|
1994
2534
|
import "@wavelengthusaf/web-components";
|
|
1995
|
-
import { jsx as
|
|
1996
|
-
var WavelengthInput =
|
|
2535
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2536
|
+
var WavelengthInput = forwardRef3(
|
|
1997
2537
|
({
|
|
1998
2538
|
id,
|
|
1999
2539
|
name,
|
|
@@ -2031,7 +2571,7 @@ var WavelengthInput = forwardRef2(
|
|
|
2031
2571
|
...rest
|
|
2032
2572
|
}, ref) => {
|
|
2033
2573
|
const internalRef = useRef26(null);
|
|
2034
|
-
|
|
2574
|
+
useImperativeHandle4(ref, () => ({
|
|
2035
2575
|
...internalRef.current,
|
|
2036
2576
|
validate: () => internalRef.current?.validate?.(true)
|
|
2037
2577
|
}));
|
|
@@ -2141,7 +2681,7 @@ var WavelengthInput = forwardRef2(
|
|
|
2141
2681
|
...style,
|
|
2142
2682
|
...backgroundColor ? { ["--wavelength-label-background"]: backgroundColor } : {}
|
|
2143
2683
|
};
|
|
2144
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ jsx31("wavelength-input", { ref: internalRef, style: combinedStyle, ...rest });
|
|
2145
2685
|
}
|
|
2146
2686
|
);
|
|
2147
2687
|
WavelengthInput.displayName = "WavelengthInput";
|
|
@@ -2151,9 +2691,9 @@ import { WavelengthInput as WavelengthInput2 } from "@wavelengthusaf/web-compone
|
|
|
2151
2691
|
|
|
2152
2692
|
// src/components/DataTable/WavelengthDataTable.tsx
|
|
2153
2693
|
import { useEffect as useEffect27, useRef as useRef27, useState } from "react";
|
|
2154
|
-
import
|
|
2155
|
-
import { jsx as
|
|
2156
|
-
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`
|
|
2157
2697
|
display: flex;
|
|
2158
2698
|
flex-direction: column; /* Corrected this line */
|
|
2159
2699
|
gap: 3px;
|
|
@@ -2183,7 +2723,7 @@ var ModalInputDiv = styled.div`
|
|
|
2183
2723
|
}
|
|
2184
2724
|
}
|
|
2185
2725
|
`;
|
|
2186
|
-
var ModalOverlay =
|
|
2726
|
+
var ModalOverlay = styled2.div`
|
|
2187
2727
|
position: fixed;
|
|
2188
2728
|
bottom: 19%;
|
|
2189
2729
|
right: 15%;
|
|
@@ -2195,7 +2735,7 @@ var ModalOverlay = styled.div`
|
|
|
2195
2735
|
align-items: center;
|
|
2196
2736
|
z-index: 1;
|
|
2197
2737
|
`;
|
|
2198
|
-
var ModalWrapper =
|
|
2738
|
+
var ModalWrapper = styled2.div`
|
|
2199
2739
|
background-color: white;
|
|
2200
2740
|
border-radius: 8px;
|
|
2201
2741
|
padding: 20px;
|
|
@@ -2206,7 +2746,7 @@ var ModalWrapper = styled.div`
|
|
|
2206
2746
|
display: flex;
|
|
2207
2747
|
align-items: center;
|
|
2208
2748
|
`;
|
|
2209
|
-
var ModalClose =
|
|
2749
|
+
var ModalClose = styled2.button`
|
|
2210
2750
|
position: absolute;
|
|
2211
2751
|
top: 10px;
|
|
2212
2752
|
right: 10px;
|
|
@@ -2216,16 +2756,16 @@ var ModalClose = styled.button`
|
|
|
2216
2756
|
background: none;
|
|
2217
2757
|
z-index: 2;
|
|
2218
2758
|
`;
|
|
2219
|
-
var TableHeadStyle =
|
|
2759
|
+
var TableHeadStyle = styled2.th`
|
|
2220
2760
|
position: relative;
|
|
2221
2761
|
`;
|
|
2222
|
-
var KebabMenu =
|
|
2762
|
+
var KebabMenu = styled2.div`
|
|
2223
2763
|
display: inline-block;
|
|
2224
2764
|
position: absolute;
|
|
2225
2765
|
right: 0;
|
|
2226
2766
|
top: 2px;
|
|
2227
2767
|
`;
|
|
2228
|
-
var KebabIcon =
|
|
2768
|
+
var KebabIcon = styled2.div`
|
|
2229
2769
|
cursor: pointer;
|
|
2230
2770
|
font-size: 20px;
|
|
2231
2771
|
padding: 5px;
|
|
@@ -2238,7 +2778,7 @@ var KebabIcon = styled.div`
|
|
|
2238
2778
|
color: #8fd8ff;
|
|
2239
2779
|
}
|
|
2240
2780
|
`;
|
|
2241
|
-
var MenuOptions =
|
|
2781
|
+
var MenuOptions = styled2.ul`
|
|
2242
2782
|
position: absolute;
|
|
2243
2783
|
right: 0;
|
|
2244
2784
|
top: 100%;
|
|
@@ -2261,7 +2801,7 @@ var MenuOptions = styled.ul`
|
|
|
2261
2801
|
}
|
|
2262
2802
|
}
|
|
2263
2803
|
`;
|
|
2264
|
-
var StyledBoxDiv =
|
|
2804
|
+
var StyledBoxDiv = styled2.div`
|
|
2265
2805
|
background-color: white;
|
|
2266
2806
|
width: 700px;
|
|
2267
2807
|
height: 480px;
|
|
@@ -2269,7 +2809,7 @@ var StyledBoxDiv = styled.div`
|
|
|
2269
2809
|
border-top-left-radius: 10px;
|
|
2270
2810
|
border-top-right-radius: 10px;
|
|
2271
2811
|
`;
|
|
2272
|
-
var StyledNavBoxDiv =
|
|
2812
|
+
var StyledNavBoxDiv = styled2.div`
|
|
2273
2813
|
background-color: white;
|
|
2274
2814
|
width: 700px;
|
|
2275
2815
|
display: flex; /* Make parent a flex-container */
|
|
@@ -2279,13 +2819,13 @@ var StyledNavBoxDiv = styled.div`
|
|
|
2279
2819
|
|
|
2280
2820
|
box-shadow: 0.5px 3px 5px black;
|
|
2281
2821
|
`;
|
|
2282
|
-
var StyledTd =
|
|
2822
|
+
var StyledTd = styled2.td`
|
|
2283
2823
|
border-top: 1px solid #c6c7cc;
|
|
2284
2824
|
border-bottom: 1px solid #c6c7cc;
|
|
2285
2825
|
padding: 10px 15px;
|
|
2286
2826
|
vertical-align: middle;
|
|
2287
2827
|
`;
|
|
2288
|
-
var StyledTableTwo =
|
|
2828
|
+
var StyledTableTwo = styled2.table`
|
|
2289
2829
|
width: 95%;
|
|
2290
2830
|
height: 95%;
|
|
2291
2831
|
border-collapse: collapse;
|
|
@@ -2311,7 +2851,7 @@ var StyledTableTwo = styled.table`
|
|
|
2311
2851
|
}
|
|
2312
2852
|
}
|
|
2313
2853
|
`;
|
|
2314
|
-
var StyledInput =
|
|
2854
|
+
var StyledInput = styled2.input`
|
|
2315
2855
|
height: 100%;
|
|
2316
2856
|
width: 100%;
|
|
2317
2857
|
outline: none;
|
|
@@ -2427,10 +2967,10 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2427
2967
|
setEditingId(null);
|
|
2428
2968
|
};
|
|
2429
2969
|
const headers = columns.map((column, index) => {
|
|
2430
|
-
return /* @__PURE__ */
|
|
2970
|
+
return /* @__PURE__ */ jsxs10(TableHeadStyle, { children: [
|
|
2431
2971
|
column.title,
|
|
2432
|
-
/* @__PURE__ */
|
|
2433
|
-
/* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ jsxs10(KebabMenu, { ref: menuRef, children: [
|
|
2973
|
+
/* @__PURE__ */ jsx32(
|
|
2434
2974
|
KebabIcon,
|
|
2435
2975
|
{
|
|
2436
2976
|
title: `KebabIcon-${index}`,
|
|
@@ -2440,27 +2980,27 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2440
2980
|
children: "\u22EE"
|
|
2441
2981
|
}
|
|
2442
2982
|
),
|
|
2443
|
-
isOpen && editingMenuKey === column.key && /* @__PURE__ */
|
|
2444
|
-
sortOrder === "asc" ? /* @__PURE__ */
|
|
2445
|
-
/* @__PURE__ */
|
|
2983
|
+
isOpen && editingMenuKey === column.key && /* @__PURE__ */ jsxs10(MenuOptions, { children: [
|
|
2984
|
+
sortOrder === "asc" ? /* @__PURE__ */ jsxs10("li", { title: `MenuListASC-${index}`, onClick: () => handleSort(column.key, "asc"), children: [
|
|
2985
|
+
/* @__PURE__ */ jsx32("span", { children: "\u2B06" }),
|
|
2446
2986
|
" Sort ASC"
|
|
2447
|
-
] }) : /* @__PURE__ */
|
|
2448
|
-
/* @__PURE__ */
|
|
2987
|
+
] }) : /* @__PURE__ */ jsxs10("li", { title: `MenuListDES-${index}`, onClick: () => handleSort(column.key, "desc"), children: [
|
|
2988
|
+
/* @__PURE__ */ jsx32("span", { children: "\u2B07" }),
|
|
2449
2989
|
" Sort DESC"
|
|
2450
2990
|
] }),
|
|
2451
|
-
/* @__PURE__ */
|
|
2452
|
-
/* @__PURE__ */
|
|
2991
|
+
/* @__PURE__ */ jsxs10("li", { title: `MenuListFilterButton-${index}`, onClick: openModal, children: [
|
|
2992
|
+
/* @__PURE__ */ jsx32("span", { children: "\u23F7" }),
|
|
2453
2993
|
" Filter"
|
|
2454
2994
|
] }),
|
|
2455
|
-
isModalOpen && /* @__PURE__ */
|
|
2456
|
-
/* @__PURE__ */
|
|
2457
|
-
/* @__PURE__ */
|
|
2458
|
-
/* @__PURE__ */
|
|
2459
|
-
/* @__PURE__ */
|
|
2995
|
+
isModalOpen && /* @__PURE__ */ jsx32(ModalOverlay, { children: /* @__PURE__ */ jsxs10(ModalWrapper, { ref: modalRef, children: [
|
|
2996
|
+
/* @__PURE__ */ jsx32(ModalClose, { title: `ModalClose-${index}`, onClick: closeModal, children: "\xD7" }),
|
|
2997
|
+
/* @__PURE__ */ jsxs10(ModalInputDiv, { children: [
|
|
2998
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "filterSelectId", children: "Columns: " }),
|
|
2999
|
+
/* @__PURE__ */ jsx32("select", { title: `filterSelect-${index}`, id: "filterSelectId", value: selectedValue, onChange: handleChange, children: columns.map((item) => /* @__PURE__ */ jsx32("option", { children: item.key }, item.key)) })
|
|
2460
3000
|
] }),
|
|
2461
|
-
/* @__PURE__ */
|
|
2462
|
-
/* @__PURE__ */
|
|
2463
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ jsxs10(ModalInputDiv, { children: [
|
|
3002
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "filterInputId", children: "Values: " }),
|
|
3003
|
+
/* @__PURE__ */ jsx32(
|
|
2464
3004
|
"input",
|
|
2465
3005
|
{
|
|
2466
3006
|
title: `Inputfiltertest-${index}`,
|
|
@@ -2481,8 +3021,8 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2481
3021
|
] }, index)
|
|
2482
3022
|
] }, `headCell-${index}`);
|
|
2483
3023
|
});
|
|
2484
|
-
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */
|
|
2485
|
-
return /* @__PURE__ */
|
|
3024
|
+
const rows = !currentPageData?.length || noRowsOpen ? /* @__PURE__ */ jsx32("tr", { children: /* @__PURE__ */ jsx32("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : currentPageData?.map((item) => /* @__PURE__ */ jsx32("tr", { children: columns.map((column, index2) => {
|
|
3025
|
+
return /* @__PURE__ */ jsx32(StyledTd, { children: editingId === item.id && editedColumnKey === column.key ? /* @__PURE__ */ jsx32(
|
|
2486
3026
|
StyledInput,
|
|
2487
3027
|
{
|
|
2488
3028
|
title: `styledRow-${item.id}-${column.key}-${index2}`,
|
|
@@ -2499,21 +3039,21 @@ var WavelengthDataTable = ({ data, columns, itemsPerPage, totalPages, id }) => {
|
|
|
2499
3039
|
},
|
|
2500
3040
|
autoFocus: true
|
|
2501
3041
|
}
|
|
2502
|
-
) : /* @__PURE__ */
|
|
3042
|
+
) : /* @__PURE__ */ jsx32("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, onDoubleClick: () => handleEdit(item.id, item[column.key], column.key), children: item[column.key] }) }, index2);
|
|
2503
3043
|
}) }, item.id));
|
|
2504
|
-
return /* @__PURE__ */
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
2507
|
-
/* @__PURE__ */
|
|
3044
|
+
return /* @__PURE__ */ jsxs10("div", { id, children: [
|
|
3045
|
+
/* @__PURE__ */ jsx32(StyledBoxDiv, { title: "StyledBoxDiv", children: /* @__PURE__ */ jsxs10(StyledTableTwo, { title: "StyledTable", children: [
|
|
3046
|
+
/* @__PURE__ */ jsx32("thead", { children: /* @__PURE__ */ jsx32("tr", { children: headers }) }),
|
|
3047
|
+
/* @__PURE__ */ jsx32("tbody", { children: rows })
|
|
2508
3048
|
] }) }),
|
|
2509
|
-
/* @__PURE__ */
|
|
3049
|
+
/* @__PURE__ */ jsx32(StyledNavBoxDiv, { children: /* @__PURE__ */ jsx32(WavelengthPagination, { customStyle: {}, totalPages, currentPage, onPageChange: setCurrentPage, variant: "basic" }) })
|
|
2510
3050
|
] });
|
|
2511
3051
|
};
|
|
2512
3052
|
WavelengthDataTable.displayName = "WavelengthDataTable";
|
|
2513
3053
|
|
|
2514
3054
|
// src/components/DataTable/WavelengthDataGrid.tsx
|
|
2515
3055
|
import { useRef as useRef28, useEffect as useEffect28 } from "react";
|
|
2516
|
-
import { jsx as
|
|
3056
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2517
3057
|
var WavelengthDataGrid = ({ columns, rows, pageSize = 10, checkboxSelection = false, hidePagination = false, onSelectionChange, customStyle, ...rest }) => {
|
|
2518
3058
|
const ref = useRef28(null);
|
|
2519
3059
|
useEffect28(() => {
|
|
@@ -2537,34 +3077,34 @@ var WavelengthDataGrid = ({ columns, rows, pageSize = 10, checkboxSelection = fa
|
|
|
2537
3077
|
el.removeEventListener("selection-change", handleSelectionChange);
|
|
2538
3078
|
};
|
|
2539
3079
|
}, [columns, rows, pageSize, checkboxSelection, hidePagination, customStyle, onSelectionChange]);
|
|
2540
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsx33("wavelength-data-grid", { ref, ...rest });
|
|
2541
3081
|
};
|
|
2542
3082
|
WavelengthDataGrid.displayName = "WavelengthDataGrid";
|
|
2543
3083
|
|
|
2544
3084
|
// src/components/DataTable/SubRowTable/ChildSubTable.tsx
|
|
2545
|
-
import { useMemo as
|
|
2546
|
-
import
|
|
2547
|
-
import { Fragment as Fragment5, jsx as
|
|
2548
|
-
var TableContainer =
|
|
3085
|
+
import { useMemo as useMemo3, useState as useState2, Fragment as Fragment4 } from "react";
|
|
3086
|
+
import styled3 from "styled-components";
|
|
3087
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3088
|
+
var TableContainer = styled3.div`
|
|
2549
3089
|
width: 1200px;
|
|
2550
3090
|
border-radius: 16px;
|
|
2551
3091
|
`;
|
|
2552
|
-
var TableRow =
|
|
3092
|
+
var TableRow = styled3.div`
|
|
2553
3093
|
display: grid;
|
|
2554
3094
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
2555
3095
|
`;
|
|
2556
|
-
var TablePrimaryRow =
|
|
3096
|
+
var TablePrimaryRow = styled3.div`
|
|
2557
3097
|
display: grid;
|
|
2558
3098
|
grid-template-columns: ${({ $amountofColumns }) => `repeat(${$amountofColumns}, 1fr)`};
|
|
2559
3099
|
`;
|
|
2560
|
-
var BodyRowContainer =
|
|
3100
|
+
var BodyRowContainer = styled3.div`
|
|
2561
3101
|
border: 1px solid black;
|
|
2562
3102
|
background-color: white;
|
|
2563
3103
|
border-radius: 16px;
|
|
2564
3104
|
overflow: hidden;
|
|
2565
3105
|
margin-bottom: 10px;
|
|
2566
3106
|
`;
|
|
2567
|
-
var TableHeaderCell =
|
|
3107
|
+
var TableHeaderCell = styled3.div`
|
|
2568
3108
|
padding-left: 12px;
|
|
2569
3109
|
padding-right: 25px;
|
|
2570
3110
|
height: 60px;
|
|
@@ -2572,7 +3112,7 @@ var TableHeaderCell = styled2.div`
|
|
|
2572
3112
|
display: flex;
|
|
2573
3113
|
align-items: center;
|
|
2574
3114
|
`;
|
|
2575
|
-
var TableBodyCell =
|
|
3115
|
+
var TableBodyCell = styled3.div`
|
|
2576
3116
|
background-color: #fff;
|
|
2577
3117
|
color: black;
|
|
2578
3118
|
position: relative;
|
|
@@ -2581,27 +3121,27 @@ var TableBodyCell = styled2.div`
|
|
|
2581
3121
|
font-size: ${(props) => props.$primaryBoldState ? "24px" : "16px"};
|
|
2582
3122
|
font-weight: ${(props) => props.$primaryBoldState ? "bold" : "normal"};
|
|
2583
3123
|
`;
|
|
2584
|
-
var ButtonStylingRow =
|
|
3124
|
+
var ButtonStylingRow = styled3.div`
|
|
2585
3125
|
display: flex;
|
|
2586
3126
|
flex-direction: row;
|
|
2587
3127
|
`;
|
|
2588
|
-
var BottomArrowBar =
|
|
3128
|
+
var BottomArrowBar = styled3.div`
|
|
2589
3129
|
background-color: #e9e9e9;
|
|
2590
3130
|
text-align: center;
|
|
2591
3131
|
`;
|
|
2592
|
-
var BottomUpArrowBar =
|
|
3132
|
+
var BottomUpArrowBar = styled3.div`
|
|
2593
3133
|
background-color: #e9e9e9;
|
|
2594
3134
|
text-align: center;
|
|
2595
3135
|
position: relative;
|
|
2596
3136
|
`;
|
|
2597
|
-
var SubDataTable =
|
|
3137
|
+
var SubDataTable = styled3.table`
|
|
2598
3138
|
background-color: white;
|
|
2599
3139
|
color: black;
|
|
2600
3140
|
width: 100%;
|
|
2601
3141
|
border-collapse: collapse;
|
|
2602
3142
|
line-height: 1.2;
|
|
2603
3143
|
`;
|
|
2604
|
-
var SubDataTableHeaderRow =
|
|
3144
|
+
var SubDataTableHeaderRow = styled3.tr`
|
|
2605
3145
|
height: 50px;
|
|
2606
3146
|
background-color: #304359;
|
|
2607
3147
|
color: white;
|
|
@@ -2612,10 +3152,10 @@ var SubDataTableHeaderRow = styled2.tr`
|
|
|
2612
3152
|
white-space: nowrap;
|
|
2613
3153
|
}
|
|
2614
3154
|
`;
|
|
2615
|
-
var SubDataTableBodyRow =
|
|
3155
|
+
var SubDataTableBodyRow = styled3.tbody`
|
|
2616
3156
|
font-size: 14px;
|
|
2617
3157
|
`;
|
|
2618
|
-
var SubDataTableBodyRowContainer =
|
|
3158
|
+
var SubDataTableBodyRowContainer = styled3.tr`
|
|
2619
3159
|
td {
|
|
2620
3160
|
padding: 10px 0;
|
|
2621
3161
|
max-width: 100px;
|
|
@@ -2625,13 +3165,13 @@ var SubDataTableBodyRowContainer = styled2.tr`
|
|
|
2625
3165
|
background-color: #96e0e5;
|
|
2626
3166
|
}
|
|
2627
3167
|
`;
|
|
2628
|
-
var SubDataTableCell =
|
|
3168
|
+
var SubDataTableCell = styled3.td`
|
|
2629
3169
|
text-align: center;
|
|
2630
3170
|
`;
|
|
2631
|
-
var SubDataHeaderColumn =
|
|
3171
|
+
var SubDataHeaderColumn = styled3.thead`
|
|
2632
3172
|
background-color: #304359;
|
|
2633
3173
|
`;
|
|
2634
|
-
var SortButton =
|
|
3174
|
+
var SortButton = styled3.button`
|
|
2635
3175
|
font-size: 16px;
|
|
2636
3176
|
font-weight: bold;
|
|
2637
3177
|
color: white;
|
|
@@ -2639,7 +3179,7 @@ var SortButton = styled2.button`
|
|
|
2639
3179
|
border: none;
|
|
2640
3180
|
white-space: nowrap;
|
|
2641
3181
|
`;
|
|
2642
|
-
var DownloadMissionButton =
|
|
3182
|
+
var DownloadMissionButton = styled3.button`
|
|
2643
3183
|
width: 217px;
|
|
2644
3184
|
height: 45px;
|
|
2645
3185
|
padding: 12px 32px 12px 32px;
|
|
@@ -2668,7 +3208,7 @@ var DownloadMissionButton = styled2.button`
|
|
|
2668
3208
|
transition: background-color 0.2s ease;
|
|
2669
3209
|
}
|
|
2670
3210
|
`;
|
|
2671
|
-
var AddButton =
|
|
3211
|
+
var AddButton = styled3.button`
|
|
2672
3212
|
width: 130px;
|
|
2673
3213
|
height: 45px;
|
|
2674
3214
|
border: 1px solid #1a8083;
|
|
@@ -2698,7 +3238,7 @@ var AddButton = styled2.button`
|
|
|
2698
3238
|
transition: background-color 0.2s ease;
|
|
2699
3239
|
}
|
|
2700
3240
|
`;
|
|
2701
|
-
var DownloadArrow =
|
|
3241
|
+
var DownloadArrow = styled3.button`
|
|
2702
3242
|
background-color: transparent;
|
|
2703
3243
|
border: none;
|
|
2704
3244
|
|
|
@@ -2732,7 +3272,7 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2732
3272
|
const index = text.indexOf(".");
|
|
2733
3273
|
return index === -1 ? text : text.substring(index + 1);
|
|
2734
3274
|
}
|
|
2735
|
-
const processedRowData =
|
|
3275
|
+
const processedRowData = useMemo3(() => {
|
|
2736
3276
|
const result = [...data ?? []];
|
|
2737
3277
|
if (sortOrder) {
|
|
2738
3278
|
result.sort((a, b) => {
|
|
@@ -2781,45 +3321,45 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2781
3321
|
return result;
|
|
2782
3322
|
}, [data, sortKey, sortOrder, sortSubKey, sortSubOrder]);
|
|
2783
3323
|
const renderSortButton = (column, sortOrder2, sortKey2) => {
|
|
2784
|
-
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */
|
|
3324
|
+
return sortKey2 === column.key ? sortOrder2 === "asc" ? /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2785
3325
|
column.title,
|
|
2786
3326
|
" ",
|
|
2787
|
-
/* @__PURE__ */
|
|
2788
|
-
] }) }) : /* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
3328
|
+
] }) }) : /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2789
3329
|
column.title,
|
|
2790
3330
|
" ",
|
|
2791
|
-
/* @__PURE__ */
|
|
2792
|
-
] }) }) : /* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
3332
|
+
] }) }) : /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "black", onClick: () => toggleSortOrder(column.key), children: [
|
|
2793
3333
|
column.title,
|
|
2794
3334
|
" ",
|
|
2795
|
-
/* @__PURE__ */
|
|
3335
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
2796
3336
|
] }) });
|
|
2797
3337
|
};
|
|
2798
3338
|
const renderSortSubButton = (column, sortSubOrder2, sortSubKey2) => {
|
|
2799
3339
|
const columnKey = trimBeforePeriod2(column.key);
|
|
2800
|
-
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */
|
|
3340
|
+
return sortSubKey2 === columnKey ? sortSubOrder2 === "asc" ? /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2801
3341
|
column.title,
|
|
2802
3342
|
" ",
|
|
2803
|
-
/* @__PURE__ */
|
|
2804
|
-
] }) : /* @__PURE__ */
|
|
3343
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
3344
|
+
] }) : /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2805
3345
|
column.title,
|
|
2806
3346
|
" ",
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
-
] }) : /* @__PURE__ */
|
|
3347
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 9.2627L7.5 3.5377L1.7625 9.2627L0 7.5002L7.5 0.000196457L15 7.5002L13.2375 9.2627Z", fill: "white" }) })
|
|
3348
|
+
] }) : /* @__PURE__ */ jsxs11(SortButton, { $sortColor: "white", onClick: () => toggleSubSortOrder(columnKey), children: [
|
|
2809
3349
|
column.title,
|
|
2810
3350
|
" ",
|
|
2811
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ jsx34("svg", { width: "15", height: "10", viewBox: "0 0 15 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M13.2375 0.368774L7.5 6.09377L1.7625 0.368774L0 2.13127L7.5 9.63127L15 2.13127L13.2375 0.368774Z", fill: "white" }) })
|
|
2812
3352
|
] });
|
|
2813
3353
|
};
|
|
2814
3354
|
const headers = HeadColumns.map((column) => {
|
|
2815
|
-
return /* @__PURE__ */
|
|
3355
|
+
return /* @__PURE__ */ jsx34(TableHeaderCell, { children: renderSortButton(column, sortOrder, sortKey) }, `HeaderCell-${column.key}`);
|
|
2816
3356
|
});
|
|
2817
3357
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
2818
|
-
return /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ jsx34("th", { children: renderSortSubButton(column, sortSubOrder, sortSubKey) }, `SubHeadCell-${index}`);
|
|
2819
3359
|
});
|
|
2820
3360
|
const subDataRows = (itemId) => {
|
|
2821
|
-
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */
|
|
2822
|
-
/* @__PURE__ */
|
|
3361
|
+
return processedRowData.filter((item) => item.Details?.relationId === itemId).map((item) => /* @__PURE__ */ jsx34(Fragment4, { children: item.Details?.fileObjects.map((fileItem, index) => /* @__PURE__ */ jsxs11(SubDataTableBodyRowContainer, { children: [
|
|
3362
|
+
/* @__PURE__ */ jsx34("td", { children: /* @__PURE__ */ jsx34(DownloadArrow, { onClick: downloadArrowOnClick, children: /* @__PURE__ */ jsx34("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34(
|
|
2823
3363
|
"path",
|
|
2824
3364
|
{
|
|
2825
3365
|
d: "M8.5 12L3.5 7L4.9 5.55L7.5 8.15V0H9.5V8.15L12.1 5.55L13.5 7L8.5 12ZM2.5 16C1.95 16 1.47917 15.8042 1.0875 15.4125C0.695833 15.0208 0.5 14.55 0.5 14V11H2.5V14H14.5V11H16.5V14C16.5 14.55 16.3042 15.0208 15.9125 15.4125C15.5208 15.8042 15.05 16 14.5 16H2.5Z",
|
|
@@ -2830,41 +3370,41 @@ var ChildDataTable = ({ data, columns, downloadArrowOnClick, downloadMissionOnCl
|
|
|
2830
3370
|
const columnKey = trimBeforePeriod2(column.key);
|
|
2831
3371
|
const value = fileItem[columnKey];
|
|
2832
3372
|
if (value !== void 0) {
|
|
2833
|
-
return /* @__PURE__ */
|
|
3373
|
+
return /* @__PURE__ */ jsx34(SubDataTableCell, { children: /* @__PURE__ */ jsx34("span", { children: value }, `span-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`) }, `fileitem-${item}-${item.Details?.relationId}-${fileItem.id}-${index}-${column.title}`);
|
|
2834
3374
|
}
|
|
2835
3375
|
})
|
|
2836
3376
|
] }, `${item}-${item.Details?.relationId}-${fileItem.id}-${index}`)) }, `SDR-${item.id}-${item.Details?.relationId}`));
|
|
2837
3377
|
};
|
|
2838
|
-
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2840
|
-
/* @__PURE__ */
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
/* @__PURE__ */
|
|
3378
|
+
const dataRows = processedRowData?.map((item, index) => /* @__PURE__ */ jsxs11(BodyRowContainer, { children: [
|
|
3379
|
+
/* @__PURE__ */ jsx34(TableRow, { $amountofColumns: HeadColumns.length, children: HeadColumns.map((column) => /* @__PURE__ */ jsx34(TableBodyCell, { $primaryBoldState: column.PrimaryBoldText, children: item[column.key] }, `TableBodycell-${item.id}-${column.key}`)) }),
|
|
3380
|
+
/* @__PURE__ */ jsxs11(ButtonStylingRow, { children: [
|
|
3381
|
+
/* @__PURE__ */ jsx34(DownloadMissionButton, { onClick: downloadMissionOnClick, children: "Download Mission" }),
|
|
3382
|
+
/* @__PURE__ */ jsx34(AddButton, { onClick: addFilesOnClick, children: "Add files" })
|
|
2843
3383
|
] }),
|
|
2844
|
-
openRow !== item.id && /* @__PURE__ */
|
|
2845
|
-
openRow === item.id && /* @__PURE__ */
|
|
2846
|
-
/* @__PURE__ */
|
|
2847
|
-
/* @__PURE__ */
|
|
2848
|
-
/* @__PURE__ */
|
|
3384
|
+
openRow !== item.id && /* @__PURE__ */ jsx34(BottomArrowBar, { onClick: () => toggleDropdown(item.id), children: /* @__PURE__ */ jsx34("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M64 0L44 6L24 0H0L44 14L92 0H64Z", fill: "#7A7A7A" }) }) }),
|
|
3385
|
+
openRow === item.id && /* @__PURE__ */ jsxs11("div", { children: [
|
|
3386
|
+
/* @__PURE__ */ jsxs11(SubDataTable, { children: [
|
|
3387
|
+
/* @__PURE__ */ jsx34(SubDataHeaderColumn, { children: /* @__PURE__ */ jsxs11(SubDataTableHeaderRow, { children: [
|
|
3388
|
+
/* @__PURE__ */ jsx34("th", {}),
|
|
2849
3389
|
SubDataHeaders
|
|
2850
3390
|
] }) }),
|
|
2851
|
-
/* @__PURE__ */
|
|
3391
|
+
/* @__PURE__ */ jsx34(SubDataTableBodyRow, { children: subDataRows(item.id) })
|
|
2852
3392
|
] }),
|
|
2853
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsx34(BottomUpArrowBar, { onClick: () => toggleUpward(), children: /* @__PURE__ */ jsx34("svg", { width: "92", height: "14", viewBox: "0 0 92 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("path", { d: "M64 14L44 8L24 14H0L44 0L92 14H64Z", fill: "#7A7A7A" }) }) })
|
|
2854
3394
|
] })
|
|
2855
3395
|
] }, `Bodycontainer-${item.id}-${index}`));
|
|
2856
|
-
return /* @__PURE__ */
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
/* @__PURE__ */
|
|
3396
|
+
return /* @__PURE__ */ jsxs11(TableContainer, { children: [
|
|
3397
|
+
/* @__PURE__ */ jsx34(TablePrimaryRow, { $amountofColumns: HeadColumns.length, children: headers }),
|
|
3398
|
+
/* @__PURE__ */ jsx34("div", { title: "tablebodies", children: dataRows })
|
|
2859
3399
|
] });
|
|
2860
3400
|
};
|
|
2861
3401
|
ChildDataTable.displayName = "ChildDataTable";
|
|
2862
3402
|
|
|
2863
3403
|
// src/components/DataTable/SubRowTable/ChildDataTable.tsx
|
|
2864
|
-
import { useRef as useRef29, useEffect as useEffect29, useMemo as
|
|
3404
|
+
import { useRef as useRef29, useEffect as useEffect29, useMemo as useMemo4 } from "react";
|
|
2865
3405
|
import { createRoot } from "react-dom/client";
|
|
2866
3406
|
import "@wavelengthusaf/web-components";
|
|
2867
|
-
import { jsx as
|
|
3407
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2868
3408
|
var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdownButtonIcon, externalSort, sortKey, sortOrder, onAction, ...rest }) => {
|
|
2869
3409
|
const tableRef = useRef29(null);
|
|
2870
3410
|
const cellRoots = useRef29(/* @__PURE__ */ new Map());
|
|
@@ -2877,7 +3417,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
2877
3417
|
root.render(element);
|
|
2878
3418
|
return container;
|
|
2879
3419
|
};
|
|
2880
|
-
const processedColumns =
|
|
3420
|
+
const processedColumns = useMemo4(() => {
|
|
2881
3421
|
if (!Array.isArray(columns)) return columns;
|
|
2882
3422
|
return columns.map((col) => {
|
|
2883
3423
|
if (typeof col.renderCell === "function") {
|
|
@@ -2960,7 +3500,7 @@ var ChildDataTable2 = ({ columns, data, dropdownArrowLocation, sortIcon, dropdow
|
|
|
2960
3500
|
dropdownRoots.current.clear();
|
|
2961
3501
|
};
|
|
2962
3502
|
}, [data, onAction]);
|
|
2963
|
-
return /* @__PURE__ */
|
|
3503
|
+
return /* @__PURE__ */ jsx35("wavelength-child-data-table", { ref: tableRef, ...rest });
|
|
2964
3504
|
};
|
|
2965
3505
|
ChildDataTable2.displayName = "ChildDataTable";
|
|
2966
3506
|
|
|
@@ -2969,9 +3509,9 @@ import { ChildDataTable as ChildDataTable3 } from "@wavelengthusaf/web-component
|
|
|
2969
3509
|
|
|
2970
3510
|
// src/components/DataTable/NestedDataTable/NestedDataTable.tsx
|
|
2971
3511
|
import { useState as useState3 } from "react";
|
|
2972
|
-
import
|
|
2973
|
-
import { Fragment as Fragment6, jsx as
|
|
2974
|
-
var TableStyle =
|
|
3512
|
+
import styled4 from "styled-components";
|
|
3513
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3514
|
+
var TableStyle = styled4.table`
|
|
2975
3515
|
width: 100%;
|
|
2976
3516
|
height: 100%;
|
|
2977
3517
|
border-collapse: collapse;
|
|
@@ -2987,26 +3527,26 @@ var TableStyle = styled3.table`
|
|
|
2987
3527
|
margin-right: auto;
|
|
2988
3528
|
position: absolute;
|
|
2989
3529
|
`;
|
|
2990
|
-
var MainThHeaders =
|
|
3530
|
+
var MainThHeaders = styled4.th`
|
|
2991
3531
|
&:not(:last-child) {
|
|
2992
3532
|
border-right: 1px solid #c6c7cc;
|
|
2993
3533
|
}
|
|
2994
3534
|
`;
|
|
2995
|
-
var SubDataTr =
|
|
3535
|
+
var SubDataTr = styled4.tr`
|
|
2996
3536
|
background-color: white;
|
|
2997
3537
|
|
|
2998
3538
|
&:nth-child(even) {
|
|
2999
3539
|
background-color: #e0ffff;
|
|
3000
3540
|
}
|
|
3001
3541
|
`;
|
|
3002
|
-
var PrimaryTrRows =
|
|
3542
|
+
var PrimaryTrRows = styled4.tr`
|
|
3003
3543
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
3004
3544
|
`;
|
|
3005
|
-
var SubTrRows =
|
|
3545
|
+
var SubTrRows = styled4.tr`
|
|
3006
3546
|
background-color: ${(props) => props.$index % 2 === 0 ? "white" : "#e0ffff"};
|
|
3007
3547
|
height: 120px;
|
|
3008
3548
|
`;
|
|
3009
|
-
var SubTableStyle =
|
|
3549
|
+
var SubTableStyle = styled4.table`
|
|
3010
3550
|
width: 95%;
|
|
3011
3551
|
border-collapse: collapse;
|
|
3012
3552
|
margin-top: -15px;
|
|
@@ -3026,7 +3566,7 @@ var SubTableStyle = styled3.table`
|
|
|
3026
3566
|
}
|
|
3027
3567
|
}
|
|
3028
3568
|
`;
|
|
3029
|
-
var DropdownButton =
|
|
3569
|
+
var DropdownButton = styled4.button`
|
|
3030
3570
|
background-color: transparent;
|
|
3031
3571
|
background-repeat: no-repeat;
|
|
3032
3572
|
border: none;
|
|
@@ -3036,7 +3576,7 @@ var DropdownButton = styled3.button`
|
|
|
3036
3576
|
font-weight: bold; /* This makes the UTF symbols bold */
|
|
3037
3577
|
font-size: 20px;
|
|
3038
3578
|
`;
|
|
3039
|
-
var PrimaryTdSpan =
|
|
3579
|
+
var PrimaryTdSpan = styled4.td`
|
|
3040
3580
|
&:not(:last-child) {
|
|
3041
3581
|
border-right: 1px solid black;
|
|
3042
3582
|
}
|
|
@@ -3057,57 +3597,57 @@ var NestedDataTable = ({ data, columns, id }) => {
|
|
|
3057
3597
|
setPrimaryRowIndex(rowIndex);
|
|
3058
3598
|
};
|
|
3059
3599
|
const headers = HeadColumns.map((column, index) => {
|
|
3060
|
-
return /* @__PURE__ */
|
|
3600
|
+
return /* @__PURE__ */ jsx36(MainThHeaders, { children: column.title }, `headCell-${index}`);
|
|
3061
3601
|
});
|
|
3062
3602
|
const SubDataHeaders = SubDataColumns.map((column, index) => {
|
|
3063
|
-
return /* @__PURE__ */
|
|
3603
|
+
return /* @__PURE__ */ jsx36("th", { children: column.title }, `SubHeadCell-${index}`);
|
|
3064
3604
|
});
|
|
3065
|
-
const subDataRows = !data?.length ? /* @__PURE__ */
|
|
3605
|
+
const subDataRows = !data?.length ? /* @__PURE__ */ jsx36("tr", { children: /* @__PURE__ */ jsx36("td", { title: "NoSubDataRows", colSpan: columns.length, children: "No data" }) }) : data.map((item, index) => /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsx36(SubDataTr, { children: SubDataColumns.map((column, colIndex) => {
|
|
3066
3606
|
const columnKey = trimBeforePeriod(column.key);
|
|
3067
3607
|
const value = item.Details?.[columnKey];
|
|
3068
3608
|
console.log("value: ", value);
|
|
3069
3609
|
if (value !== void 0) {
|
|
3070
|
-
return /* @__PURE__ */
|
|
3610
|
+
return /* @__PURE__ */ jsx36("td", { children: /* @__PURE__ */ jsx36("span", { children: value }) }, `Span-${item.id}-${colIndex}`);
|
|
3071
3611
|
}
|
|
3072
3612
|
}) }, `Sub-${item.id}-${index}`) }));
|
|
3073
|
-
const childRows = /* @__PURE__ */
|
|
3074
|
-
/* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3613
|
+
const childRows = /* @__PURE__ */ jsxs12(SubTableStyle, { children: [
|
|
3614
|
+
/* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsx36("tr", { children: SubDataHeaders }) }),
|
|
3615
|
+
/* @__PURE__ */ jsx36("tbody", { children: subDataRows })
|
|
3076
3616
|
] });
|
|
3077
|
-
const rows = !data?.length ? /* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3617
|
+
const rows = !data?.length ? /* @__PURE__ */ jsx36("tr", { children: /* @__PURE__ */ jsx36("td", { title: "NoDataRows", colSpan: columns.length, children: "No data" }) }) : data?.map((item, index) => /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
3618
|
+
/* @__PURE__ */ jsxs12(PrimaryTrRows, { $index: index, children: [
|
|
3619
|
+
/* @__PURE__ */ jsx36(DropdownButton, { onClick: () => toggleDropdown(index), children: isAscending && isOpen && primaryRowIndex === index ? /* @__PURE__ */ jsx36(Fragment6, { children: "\u2227" }) : /* @__PURE__ */ jsx36(Fragment6, { children: "\u2228" }) }),
|
|
3080
3620
|
HeadColumns.map((column, index2) => {
|
|
3081
|
-
return /* @__PURE__ */
|
|
3621
|
+
return /* @__PURE__ */ jsx36(PrimaryTdSpan, { children: /* @__PURE__ */ jsx36("span", { title: `spanRow-${item.id}-${column.key}-${index2}`, children: item[column.key] }) }, `${item.id}-${index}=${index2}`);
|
|
3082
3622
|
})
|
|
3083
3623
|
] }, index),
|
|
3084
|
-
isOpen && primaryRowIndex === index && /* @__PURE__ */
|
|
3624
|
+
isOpen && primaryRowIndex === index && /* @__PURE__ */ jsx36(SubTrRows, { $index: index, children: /* @__PURE__ */ jsx36("td", { colSpan: HeadColumns.length + 1, children: childRows }) }, index)
|
|
3085
3625
|
] }));
|
|
3086
|
-
return /* @__PURE__ */
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3626
|
+
return /* @__PURE__ */ jsx36("div", { id, children: /* @__PURE__ */ jsxs12(TableStyle, { children: [
|
|
3627
|
+
/* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsxs12("tr", { children: [
|
|
3628
|
+
/* @__PURE__ */ jsx36("th", { title: "dropdownth" }),
|
|
3089
3629
|
headers
|
|
3090
3630
|
] }) }),
|
|
3091
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ jsx36("tbody", { children: rows })
|
|
3092
3632
|
] }) });
|
|
3093
3633
|
};
|
|
3094
3634
|
NestedDataTable.displayName = "NestedDataTable";
|
|
3095
3635
|
|
|
3096
3636
|
// src/components/AutoComplete/WavelengthAutoComplete.tsx
|
|
3097
3637
|
import { useEffect as useEffect30, useRef as useRef31, useState as useState4 } from "react";
|
|
3098
|
-
import
|
|
3099
|
-
import { Fragment as Fragment7, jsx as
|
|
3100
|
-
var AutoContainer =
|
|
3638
|
+
import styled5 from "styled-components";
|
|
3639
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3640
|
+
var AutoContainer = styled5.div`
|
|
3101
3641
|
//position: relative;
|
|
3102
3642
|
position: relative;
|
|
3103
3643
|
width: ${(props) => props.$inputWidth || "320px"};
|
|
3104
3644
|
height: ${(props) => props.$inputHeight || "51px"};
|
|
3105
3645
|
`;
|
|
3106
|
-
var InputWrapper =
|
|
3646
|
+
var InputWrapper = styled5.div`
|
|
3107
3647
|
width: 100%;
|
|
3108
3648
|
height: 100%;
|
|
3109
3649
|
`;
|
|
3110
|
-
var Label =
|
|
3650
|
+
var Label = styled5.label`
|
|
3111
3651
|
position: absolute;
|
|
3112
3652
|
top: 50%;
|
|
3113
3653
|
left: 10px;
|
|
@@ -3119,7 +3659,7 @@ var Label = styled4.label`
|
|
|
3119
3659
|
padding: 0 5px;
|
|
3120
3660
|
background-color: transparent;
|
|
3121
3661
|
`;
|
|
3122
|
-
var Input =
|
|
3662
|
+
var Input = styled5.input`
|
|
3123
3663
|
width: 100%; //this must be 100%, as width inherit inherits the literal expression, not the value
|
|
3124
3664
|
height: 100%;
|
|
3125
3665
|
padding: 0.5rem 0.75rem;
|
|
@@ -3161,7 +3701,7 @@ var Input = styled4.input`
|
|
|
3161
3701
|
color: ${(props) => props.$defaultLabelColor || "#ccc"};
|
|
3162
3702
|
}
|
|
3163
3703
|
`;
|
|
3164
|
-
var DropDownList =
|
|
3704
|
+
var DropDownList = styled5.ul`
|
|
3165
3705
|
position: absolute;
|
|
3166
3706
|
z-index: 5;
|
|
3167
3707
|
width: 100%;
|
|
@@ -3175,7 +3715,7 @@ var DropDownList = styled4.ul`
|
|
|
3175
3715
|
overflow: scroll; //necessary for limiting scroll options
|
|
3176
3716
|
max-height: 390px; //necessary for limiting scroll options, limit to 10 per view
|
|
3177
3717
|
`;
|
|
3178
|
-
var ActiveListItem =
|
|
3718
|
+
var ActiveListItem = styled5.li`
|
|
3179
3719
|
position: relative;
|
|
3180
3720
|
width: 100%;
|
|
3181
3721
|
z-index: 9999;
|
|
@@ -3192,7 +3732,7 @@ var ActiveListItem = styled4.li`
|
|
|
3192
3732
|
background-color: #d8d8d8;
|
|
3193
3733
|
}
|
|
3194
3734
|
`;
|
|
3195
|
-
var NoHoverListItem =
|
|
3735
|
+
var NoHoverListItem = styled5.li`
|
|
3196
3736
|
position: relative;
|
|
3197
3737
|
z-index: 9999;
|
|
3198
3738
|
padding: 10px;
|
|
@@ -3313,9 +3853,9 @@ var WavelengthAutoComplete = ({
|
|
|
3313
3853
|
break;
|
|
3314
3854
|
}
|
|
3315
3855
|
};
|
|
3316
|
-
return /* @__PURE__ */
|
|
3317
|
-
/* @__PURE__ */
|
|
3318
|
-
/* @__PURE__ */
|
|
3856
|
+
return /* @__PURE__ */ jsx37(Fragment7, { children: /* @__PURE__ */ jsxs13(AutoContainer, { $inputHeight: height, $inputWidth: width, children: [
|
|
3857
|
+
/* @__PURE__ */ jsxs13(InputWrapper, { id: `${idName}-input-wrapper`, $inputHeight: height, $inputWidth: width, children: [
|
|
3858
|
+
/* @__PURE__ */ jsx37(
|
|
3319
3859
|
Input,
|
|
3320
3860
|
{
|
|
3321
3861
|
id: idName,
|
|
@@ -3344,11 +3884,11 @@ var WavelengthAutoComplete = ({
|
|
|
3344
3884
|
autoComplete: "off"
|
|
3345
3885
|
}
|
|
3346
3886
|
),
|
|
3347
|
-
/* @__PURE__ */
|
|
3887
|
+
/* @__PURE__ */ jsx37(Label, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
3348
3888
|
] }),
|
|
3349
|
-
isDropdownVisible && /* @__PURE__ */
|
|
3889
|
+
isDropdownVisible && /* @__PURE__ */ jsx37(DropDownList, { id: `${idName}-drop-list`, ref: listRef, $inputWidth: width, "data-testid": "InputSearchOptionsList", children: suggestHasItems ? (
|
|
3350
3890
|
//suggestions length controls showing the suggestions
|
|
3351
|
-
suggestions.map((item, index) => /* @__PURE__ */
|
|
3891
|
+
suggestions.map((item, index) => /* @__PURE__ */ jsx37(
|
|
3352
3892
|
ActiveListItem,
|
|
3353
3893
|
{
|
|
3354
3894
|
"data-testid": `${idName}-input-search-list-${index + 1}`,
|
|
@@ -3361,16 +3901,16 @@ var WavelengthAutoComplete = ({
|
|
|
3361
3901
|
},
|
|
3362
3902
|
`active-list-item-${item}-${index}`
|
|
3363
3903
|
))
|
|
3364
|
-
) : /* @__PURE__ */
|
|
3904
|
+
) : /* @__PURE__ */ jsx37(NoHoverListItem, { "data-testid": "NoOptionsListitem", ref: noItemListRef, id: "No-Option-List-item", onMouseDown: (e) => e.preventDefault(), children: "No Options found" }) })
|
|
3365
3905
|
] }) });
|
|
3366
3906
|
};
|
|
3367
3907
|
WavelengthAutoComplete.displayName = "WavelengthAutoComplete";
|
|
3368
3908
|
|
|
3369
3909
|
// src/components/inputs/WavelengthDatePicker.tsx
|
|
3370
3910
|
import { useEffect as useEffect31, useState as useState5 } from "react";
|
|
3371
|
-
import
|
|
3372
|
-
import { jsx as
|
|
3373
|
-
var Label2 =
|
|
3911
|
+
import styled6 from "styled-components";
|
|
3912
|
+
import { jsx as jsx38, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3913
|
+
var Label2 = styled6.label`
|
|
3374
3914
|
position: absolute;
|
|
3375
3915
|
top: 50%;
|
|
3376
3916
|
left: 10px;
|
|
@@ -3382,7 +3922,7 @@ var Label2 = styled5.label`
|
|
|
3382
3922
|
padding: 0 5px;
|
|
3383
3923
|
background-color: transparent;
|
|
3384
3924
|
`;
|
|
3385
|
-
var InputWrapper2 =
|
|
3925
|
+
var InputWrapper2 = styled6.div`
|
|
3386
3926
|
position: relative;
|
|
3387
3927
|
width: ${(props) => props.$inputWidth || "320px"};
|
|
3388
3928
|
height: ${(props) => props.$inputHeight || "51px"};
|
|
@@ -3480,7 +4020,7 @@ var WavelengthDatePicker = ({
|
|
|
3480
4020
|
setValue(dateString);
|
|
3481
4021
|
if (OnDataChange !== void 0) OnDataChange(new Date(dateString));
|
|
3482
4022
|
};
|
|
3483
|
-
return /* @__PURE__ */
|
|
4023
|
+
return /* @__PURE__ */ jsxs14(
|
|
3484
4024
|
InputWrapper2,
|
|
3485
4025
|
{
|
|
3486
4026
|
id: `${idName}-inputWrapper`,
|
|
@@ -3492,7 +4032,7 @@ var WavelengthDatePicker = ({
|
|
|
3492
4032
|
$FocusLabelColor: FocusLabelColor,
|
|
3493
4033
|
$inputBackGroundColor: backgroundColor,
|
|
3494
4034
|
children: [
|
|
3495
|
-
/* @__PURE__ */
|
|
4035
|
+
/* @__PURE__ */ jsx38(
|
|
3496
4036
|
"input",
|
|
3497
4037
|
{
|
|
3498
4038
|
type: inputType,
|
|
@@ -3513,7 +4053,7 @@ var WavelengthDatePicker = ({
|
|
|
3513
4053
|
max: maxAdjusted
|
|
3514
4054
|
}
|
|
3515
4055
|
),
|
|
3516
|
-
/* @__PURE__ */
|
|
4056
|
+
/* @__PURE__ */ jsx38(Label2, { id: `${idName}-label`, htmlFor: idName, children: floatLabel })
|
|
3517
4057
|
]
|
|
3518
4058
|
}
|
|
3519
4059
|
);
|
|
@@ -3526,7 +4066,7 @@ import { WavelengthDatePicker as WavelengthDatePicker2 } from "@wavelengthusaf/w
|
|
|
3526
4066
|
// src/components/inputs/WavelengthCheckbox.tsx
|
|
3527
4067
|
import { useRef as useRef32, useEffect as useEffect32 } from "react";
|
|
3528
4068
|
import "@wavelengthusaf/web-components";
|
|
3529
|
-
import { jsx as
|
|
4069
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3530
4070
|
var WavelengthCheckbox = ({
|
|
3531
4071
|
size,
|
|
3532
4072
|
color,
|
|
@@ -3561,13 +4101,13 @@ var WavelengthCheckbox = ({
|
|
|
3561
4101
|
el.setAttribute("text-size", textSize);
|
|
3562
4102
|
}
|
|
3563
4103
|
}, [size, color, theme, disabled, text, textSize]);
|
|
3564
|
-
return /* @__PURE__ */
|
|
4104
|
+
return /* @__PURE__ */ jsx39("wavelength-checkbox", { ref, ...rest });
|
|
3565
4105
|
};
|
|
3566
4106
|
WavelengthCheckbox.displayName = "WavelengthCheckbox";
|
|
3567
4107
|
|
|
3568
4108
|
// src/components/samples/SampleComponent.tsx
|
|
3569
4109
|
import { useRef as useRef33, useEffect as useEffect33 } from "react";
|
|
3570
|
-
import { jsx as
|
|
4110
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3571
4111
|
var SampleComponent = ({
|
|
3572
4112
|
testProp,
|
|
3573
4113
|
children,
|
|
@@ -3585,14 +4125,14 @@ var SampleComponent = ({
|
|
|
3585
4125
|
el.setAttribute("test-prop", testProp);
|
|
3586
4126
|
}
|
|
3587
4127
|
}, [testProp]);
|
|
3588
|
-
return /* @__PURE__ */
|
|
4128
|
+
return /* @__PURE__ */ jsx40("sample-component", { ref, ...rest, children });
|
|
3589
4129
|
};
|
|
3590
4130
|
SampleComponent.displayName = "SampleComponent";
|
|
3591
4131
|
|
|
3592
4132
|
// src/components/NotificationPanel/WavelengthNotificationPanel.tsx
|
|
3593
4133
|
import { useRef as useRef34, useEffect as useEffect34 } from "react";
|
|
3594
4134
|
import "@wavelengthusaf/web-components";
|
|
3595
|
-
import { jsx as
|
|
4135
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3596
4136
|
var WavelengthNotificationPanel = ({
|
|
3597
4137
|
children,
|
|
3598
4138
|
username,
|
|
@@ -3604,9 +4144,6 @@ var WavelengthNotificationPanel = ({
|
|
|
3604
4144
|
useEffect34(() => {
|
|
3605
4145
|
const el = ref.current;
|
|
3606
4146
|
if (!el) return;
|
|
3607
|
-
if (typeof rest.onSignOut === "function") {
|
|
3608
|
-
el.onSignOut = rest.onSignOut;
|
|
3609
|
-
}
|
|
3610
4147
|
if (username !== void 0) {
|
|
3611
4148
|
el.username = username;
|
|
3612
4149
|
}
|
|
@@ -3614,7 +4151,7 @@ var WavelengthNotificationPanel = ({
|
|
|
3614
4151
|
el.actions = action;
|
|
3615
4152
|
}
|
|
3616
4153
|
}, [action, username]);
|
|
3617
|
-
return /* @__PURE__ */
|
|
4154
|
+
return /* @__PURE__ */ jsx41("wavelength-notification-panel", { ref, ...rest, children });
|
|
3618
4155
|
};
|
|
3619
4156
|
|
|
3620
4157
|
// src/index.ts
|
|
@@ -3622,7 +4159,7 @@ import { SampleComponent as SampleComponent2 } from "@wavelengthusaf/web-compone
|
|
|
3622
4159
|
|
|
3623
4160
|
// src/components/MultiSelect/WavelengthMultiSelectAutocomplete.tsx
|
|
3624
4161
|
import { useEffect as useEffect35, useRef as useRef35 } from "react";
|
|
3625
|
-
import { jsx as
|
|
4162
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3626
4163
|
var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Options", label, name, style, onChange, value, disabled, ...rest }) => {
|
|
3627
4164
|
const componentRef = useRef35(null);
|
|
3628
4165
|
useEffect35(() => {
|
|
@@ -3654,7 +4191,7 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
3654
4191
|
component.value = value;
|
|
3655
4192
|
}
|
|
3656
4193
|
}, [value]);
|
|
3657
|
-
return /* @__PURE__ */
|
|
4194
|
+
return /* @__PURE__ */ jsx42("wavelength-multi-select-autocomplete", { ref: componentRef, ...rest });
|
|
3658
4195
|
};
|
|
3659
4196
|
|
|
3660
4197
|
// src/index.ts
|
|
@@ -3663,7 +4200,7 @@ import { WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocomplete2
|
|
|
3663
4200
|
// src/components/inputs/WavelengthCheckboxList.tsx
|
|
3664
4201
|
import { useRef as useRef36, useEffect as useEffect36 } from "react";
|
|
3665
4202
|
import "@wavelengthusaf/web-components";
|
|
3666
|
-
import { jsx as
|
|
4203
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3667
4204
|
var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children, ...rest }) => {
|
|
3668
4205
|
const ref = useRef36(null);
|
|
3669
4206
|
useEffect36(() => {
|
|
@@ -3680,7 +4217,7 @@ var WavelengthCheckboxList = ({ label, helperText, checkboxInformation, children
|
|
|
3680
4217
|
verifyAttribute("helper-text", helperText);
|
|
3681
4218
|
verifyAttribute("checkbox-information", JSON.stringify(checkboxInformation));
|
|
3682
4219
|
}, [label, helperText, checkboxInformation]);
|
|
3683
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ jsx43("wavelength-checkbox-list", { ref, "checkbox-information": checkboxInformation, ...rest, children });
|
|
3684
4221
|
};
|
|
3685
4222
|
WavelengthCheckboxList.displayName = "WavelengthCheckboxList";
|
|
3686
4223
|
export {
|
|
@@ -3709,6 +4246,7 @@ export {
|
|
|
3709
4246
|
WavelengthDatePicker2 as WavelengthDatePickerElement,
|
|
3710
4247
|
WavelengthDefaultIcon,
|
|
3711
4248
|
WavelengthDialog,
|
|
4249
|
+
WavelengthDragAndDrop,
|
|
3712
4250
|
WavelengthDropdown,
|
|
3713
4251
|
WavelengthExampleComponent,
|
|
3714
4252
|
WavelengthFileDropZone,
|
|
@@ -3733,12 +4271,13 @@ export {
|
|
|
3733
4271
|
WavelengthSearch,
|
|
3734
4272
|
WavelengthSideBar,
|
|
3735
4273
|
WavelengthSlider,
|
|
4274
|
+
WavelengthSnackbar,
|
|
3736
4275
|
WavelengthSpinningLogo,
|
|
4276
|
+
WavelengthStyledButton,
|
|
3737
4277
|
WavelengthSwitch,
|
|
3738
4278
|
WavelengthTitleBar,
|
|
3739
4279
|
WavelengthTitleBar2 as WavelengthTitleBarElement,
|
|
3740
4280
|
WavelengthToolTip,
|
|
3741
|
-
WavelengthWebSnackbar,
|
|
3742
4281
|
add,
|
|
3743
4282
|
concat,
|
|
3744
4283
|
useThemeContext
|