@wavelengthusaf/components 4.9.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +111 -551
- package/dist/cjs/index.d.cts +36 -33
- package/dist/esm/index.d.ts +36 -33
- package/dist/esm/index.js +421 -861
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
|
|
|
206
206
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
207
207
|
var Element = REACT_ELEMENT_TYPE;
|
|
208
208
|
var ForwardRef2 = REACT_FORWARD_REF_TYPE;
|
|
209
|
-
var
|
|
209
|
+
var Fragment16 = REACT_FRAGMENT_TYPE;
|
|
210
210
|
var Lazy = REACT_LAZY_TYPE;
|
|
211
211
|
var Memo2 = REACT_MEMO_TYPE;
|
|
212
212
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
|
|
|
265
265
|
exports.ContextProvider = ContextProvider;
|
|
266
266
|
exports.Element = Element;
|
|
267
267
|
exports.ForwardRef = ForwardRef2;
|
|
268
|
-
exports.Fragment =
|
|
268
|
+
exports.Fragment = Fragment16;
|
|
269
269
|
exports.Lazy = Lazy;
|
|
270
270
|
exports.Memo = Memo2;
|
|
271
271
|
exports.Portal = Portal;
|
|
@@ -3728,564 +3728,85 @@ function WavelengthExampleComponent({ width: width2 = 100, height: height2 = 100
|
|
|
3728
3728
|
WavelengthExampleComponent.displayName = "WavelengthExampleComponent";
|
|
3729
3729
|
|
|
3730
3730
|
// src/components/search/WavelengthSearch.tsx
|
|
3731
|
-
var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);
|
|
3732
|
-
var _InputAdornment = require('@mui/material/InputAdornment'); var _InputAdornment2 = _interopRequireDefault(_InputAdornment);
|
|
3733
|
-
var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);
|
|
3734
|
-
var _Icon = require('@mui/material/Icon'); var _Icon2 = _interopRequireDefault(_Icon);
|
|
3735
|
-
|
|
3736
|
-
var _ListItem = require('@mui/material/ListItem'); var _ListItem2 = _interopRequireDefault(_ListItem);
|
|
3737
|
-
var _Popper = require('@mui/material/Popper'); var _Popper2 = _interopRequireDefault(_Popper);
|
|
3738
|
-
var _Autocomplete = require('@mui/material/Autocomplete'); var _Autocomplete2 = _interopRequireDefault(_Autocomplete);
|
|
3739
|
-
var _ListItemText = require('@mui/material/ListItemText'); var _ListItemText2 = _interopRequireDefault(_ListItemText);
|
|
3740
3731
|
|
|
3741
3732
|
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3745
|
-
_Popper2.default,
|
|
3746
|
-
{
|
|
3747
|
-
sx: {
|
|
3748
|
-
"&.MuiAutocomplete-popper": {
|
|
3749
|
-
zIndex: 5
|
|
3750
|
-
}
|
|
3751
|
-
},
|
|
3752
|
-
...props,
|
|
3753
|
-
placement: "bottom",
|
|
3754
|
-
disablePortal: true,
|
|
3755
|
-
modifiers: [
|
|
3756
|
-
{
|
|
3757
|
-
name: "flip",
|
|
3758
|
-
enabled: true,
|
|
3759
|
-
options: {
|
|
3760
|
-
altBoundary: true,
|
|
3761
|
-
rootBoundary: "document",
|
|
3762
|
-
padding: 8
|
|
3763
|
-
}
|
|
3764
|
-
},
|
|
3765
|
-
{
|
|
3766
|
-
name: "preventOverflow",
|
|
3767
|
-
enabled: true,
|
|
3768
|
-
options: {
|
|
3769
|
-
altAxis: false,
|
|
3770
|
-
altBoundary: true,
|
|
3771
|
-
tether: true,
|
|
3772
|
-
rootBoundary: "document",
|
|
3773
|
-
padding: 8
|
|
3774
|
-
}
|
|
3775
|
-
}
|
|
3776
|
-
]
|
|
3777
|
-
}
|
|
3778
|
-
);
|
|
3779
|
-
};
|
|
3780
|
-
var AutocompleteCustomEndAdornment = _styledcomponents2.default.call(void 0, "div")({
|
|
3781
|
-
position: "absolute",
|
|
3782
|
-
right: "12px",
|
|
3783
|
-
top: "50%",
|
|
3784
|
-
transform: "translate(0, -50%)"
|
|
3785
|
-
});
|
|
3786
|
-
function WavelengthSearch({
|
|
3787
|
-
id,
|
|
3788
|
-
mode,
|
|
3789
|
-
type,
|
|
3733
|
+
var WavelengthSearch = ({
|
|
3734
|
+
customStyle: customStyle2,
|
|
3790
3735
|
width: width2,
|
|
3736
|
+
mode,
|
|
3737
|
+
fontSize,
|
|
3791
3738
|
height: height2,
|
|
3792
|
-
|
|
3793
|
-
size,
|
|
3739
|
+
borderWidth,
|
|
3794
3740
|
borderRadius: borderRadius2,
|
|
3795
|
-
children,
|
|
3796
|
-
placeholder,
|
|
3797
|
-
onEnter,
|
|
3798
|
-
onSearchItemSelected,
|
|
3799
|
-
options,
|
|
3800
|
-
onChange,
|
|
3801
3741
|
borderColor: borderColor2,
|
|
3802
|
-
hoverColor,
|
|
3803
|
-
textColor,
|
|
3804
|
-
fontSize,
|
|
3805
3742
|
backgroundColor: backgroundColor2,
|
|
3806
|
-
iconPos
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
if (onSearchItemSelected) onSearchItemSelected(value);
|
|
3826
|
-
}
|
|
3827
|
-
}
|
|
3828
|
-
},
|
|
3829
|
-
disableCloseOnSelect: false,
|
|
3830
|
-
getOptionLabel: (options2) => {
|
|
3831
|
-
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
3832
|
-
return returnVal;
|
|
3833
|
-
},
|
|
3834
|
-
options,
|
|
3835
|
-
sx: {
|
|
3836
|
-
width: width2,
|
|
3837
|
-
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3838
|
-
paddingRight: clearIconMarginRight ? clearIconMarginRight : "45px"
|
|
3839
|
-
}
|
|
3840
|
-
},
|
|
3841
|
-
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3842
|
-
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3843
|
-
_TextField2.default,
|
|
3844
|
-
{
|
|
3845
|
-
placeholder,
|
|
3846
|
-
...params,
|
|
3847
|
-
size,
|
|
3848
|
-
InputProps: {
|
|
3849
|
-
...params.InputProps,
|
|
3850
|
-
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3851
|
-
type: "search",
|
|
3852
|
-
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteCustomEndAdornment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { sx: { color: "white" }, children }) })
|
|
3853
|
-
},
|
|
3854
|
-
sx: {
|
|
3855
|
-
"& .MuiInputBase-root": {
|
|
3856
|
-
height: height2
|
|
3857
|
-
},
|
|
3858
|
-
"&.MuiTextField-root": {
|
|
3859
|
-
"& label": { color: `${textColor}` },
|
|
3860
|
-
"& label.Mui-focused": {
|
|
3861
|
-
color: `${hoverColor}`
|
|
3862
|
-
},
|
|
3863
|
-
"& .MuiOutlinedInput-root": {
|
|
3864
|
-
"& fieldset": {
|
|
3865
|
-
borderColor: `${borderColor2}`
|
|
3866
|
-
},
|
|
3867
|
-
"&:hover fieldset": {
|
|
3868
|
-
borderColor: `${hoverColor}`
|
|
3869
|
-
},
|
|
3870
|
-
"&.Mui-focused fieldset": {
|
|
3871
|
-
borderColor: `${hoverColor}`
|
|
3872
|
-
}
|
|
3873
|
-
}
|
|
3874
|
-
}
|
|
3875
|
-
},
|
|
3876
|
-
label,
|
|
3877
|
-
onChange
|
|
3878
|
-
}
|
|
3879
|
-
),
|
|
3880
|
-
PopperComponent: CustomPopper
|
|
3881
|
-
}
|
|
3882
|
-
) });
|
|
3883
|
-
} else if (mode === "automatic" && iconPos === "start") {
|
|
3884
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3885
|
-
_Autocomplete2.default,
|
|
3886
|
-
{
|
|
3887
|
-
id,
|
|
3888
|
-
filterOptions: (x) => x,
|
|
3889
|
-
loading: true,
|
|
3890
|
-
disableListWrap: true,
|
|
3891
|
-
freeSolo: true,
|
|
3892
|
-
onChange: (e, value) => {
|
|
3893
|
-
if (value !== null) {
|
|
3894
|
-
if (typeof value !== "string") {
|
|
3895
|
-
if (onSearchItemSelected) onSearchItemSelected(value);
|
|
3896
|
-
}
|
|
3897
|
-
}
|
|
3898
|
-
},
|
|
3899
|
-
disableCloseOnSelect: false,
|
|
3900
|
-
getOptionLabel: (options2) => {
|
|
3901
|
-
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
3902
|
-
return returnVal;
|
|
3903
|
-
},
|
|
3904
|
-
options,
|
|
3905
|
-
sx: {
|
|
3906
|
-
width: width2,
|
|
3907
|
-
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3908
|
-
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3909
|
-
}
|
|
3910
|
-
},
|
|
3911
|
-
renderOption: (props, results) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: results.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: results.title, secondary: results.subtitle })),
|
|
3912
|
-
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3913
|
-
_TextField2.default,
|
|
3914
|
-
{
|
|
3915
|
-
placeholder,
|
|
3916
|
-
...params,
|
|
3917
|
-
size,
|
|
3918
|
-
InputProps: {
|
|
3919
|
-
...params.InputProps,
|
|
3920
|
-
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3921
|
-
type: "search",
|
|
3922
|
-
endAdornment: null,
|
|
3923
|
-
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _InputAdornment2.default, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Icon2.default, { sx: { color: textColor, paddingRight: "0px" }, children }) })
|
|
3924
|
-
},
|
|
3925
|
-
sx: {
|
|
3926
|
-
"& .MuiInputBase-root": {
|
|
3927
|
-
height: height2
|
|
3928
|
-
},
|
|
3929
|
-
"&.MuiTextField-root": {
|
|
3930
|
-
"& label": { color: `${textColor}` },
|
|
3931
|
-
"& label.Mui-focused": {
|
|
3932
|
-
color: `${hoverColor}`
|
|
3933
|
-
},
|
|
3934
|
-
"& .MuiOutlinedInput-root": {
|
|
3935
|
-
"& fieldset": {
|
|
3936
|
-
borderColor: `${borderColor2}`
|
|
3937
|
-
},
|
|
3938
|
-
"&:hover fieldset": {
|
|
3939
|
-
borderColor: `${hoverColor}`
|
|
3940
|
-
},
|
|
3941
|
-
"&.Mui-focused fieldset": {
|
|
3942
|
-
borderColor: `${hoverColor}`
|
|
3943
|
-
}
|
|
3944
|
-
}
|
|
3945
|
-
}
|
|
3946
|
-
},
|
|
3947
|
-
label,
|
|
3948
|
-
onChange
|
|
3949
|
-
}
|
|
3950
|
-
),
|
|
3951
|
-
PopperComponent: CustomPopper
|
|
3952
|
-
}
|
|
3953
|
-
) });
|
|
3954
|
-
} else if (mode === "manual" && iconPos === "end") {
|
|
3955
|
-
const textRef = _react.useRef.call(void 0, );
|
|
3956
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3957
|
-
_Autocomplete2.default,
|
|
3958
|
-
{
|
|
3959
|
-
id,
|
|
3960
|
-
filterOptions: (x) => x,
|
|
3961
|
-
loading: true,
|
|
3962
|
-
freeSolo: true,
|
|
3963
|
-
onChange: (e, value) => {
|
|
3964
|
-
if (value !== null) {
|
|
3965
|
-
if (typeof value !== "string") {
|
|
3966
|
-
if (onSearchItemSelected) onSearchItemSelected(value);
|
|
3967
|
-
}
|
|
3968
|
-
}
|
|
3969
|
-
},
|
|
3970
|
-
disableCloseOnSelect: false,
|
|
3971
|
-
getOptionLabel: (options2) => {
|
|
3972
|
-
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
3973
|
-
return returnVal;
|
|
3974
|
-
},
|
|
3975
|
-
options,
|
|
3976
|
-
sx: {
|
|
3977
|
-
width: width2,
|
|
3978
|
-
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3979
|
-
paddingRight: clearIconMarginRight ? clearIconMarginRight : "50px"
|
|
3980
|
-
}
|
|
3981
|
-
},
|
|
3982
|
-
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3983
|
-
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3984
|
-
_TextField2.default,
|
|
3985
|
-
{
|
|
3986
|
-
inputRef: textRef,
|
|
3987
|
-
placeholder,
|
|
3988
|
-
onKeyDown: (e) => {
|
|
3989
|
-
if (e.key === "Enter") {
|
|
3990
|
-
if (textRef.current && onEnter) {
|
|
3991
|
-
onEnter(textRef.current.value);
|
|
3992
|
-
}
|
|
3993
|
-
}
|
|
3994
|
-
},
|
|
3995
|
-
...params,
|
|
3996
|
-
size,
|
|
3997
|
-
InputProps: {
|
|
3998
|
-
...params.InputProps,
|
|
3999
|
-
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
4000
|
-
type: "search",
|
|
4001
|
-
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteCustomEndAdornment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4002
|
-
_IconButton2.default,
|
|
4003
|
-
{
|
|
4004
|
-
sx: { color: textColor },
|
|
4005
|
-
onClick: () => {
|
|
4006
|
-
if (textRef.current && onEnter) {
|
|
4007
|
-
onEnter(textRef.current.value);
|
|
4008
|
-
}
|
|
4009
|
-
},
|
|
4010
|
-
children
|
|
4011
|
-
}
|
|
4012
|
-
) })
|
|
4013
|
-
},
|
|
4014
|
-
sx: {
|
|
4015
|
-
"& .MuiInputBase-root": {
|
|
4016
|
-
height: height2
|
|
4017
|
-
},
|
|
4018
|
-
"&.MuiTextField-root": {
|
|
4019
|
-
"& label": { color: `${textColor}`, verticalAlign: "bottom" },
|
|
4020
|
-
"& label.Mui-focused": {
|
|
4021
|
-
color: `${hoverColor}`
|
|
4022
|
-
},
|
|
4023
|
-
"& .MuiOutlinedInput-root": {
|
|
4024
|
-
"& fieldset": {
|
|
4025
|
-
borderColor: `${borderColor2}`
|
|
4026
|
-
},
|
|
4027
|
-
"&:hover fieldset": {
|
|
4028
|
-
borderColor: `${hoverColor}`
|
|
4029
|
-
},
|
|
4030
|
-
"&.Mui-focused fieldset": {
|
|
4031
|
-
borderColor: `${hoverColor}`
|
|
4032
|
-
}
|
|
4033
|
-
}
|
|
4034
|
-
}
|
|
4035
|
-
},
|
|
4036
|
-
label
|
|
4037
|
-
}
|
|
4038
|
-
)
|
|
4039
|
-
}
|
|
4040
|
-
) });
|
|
4041
|
-
} else if (mode === "manual" && iconPos === "start") {
|
|
4042
|
-
const textRef = _react.useRef.call(void 0, );
|
|
4043
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4044
|
-
_Autocomplete2.default,
|
|
4045
|
-
{
|
|
4046
|
-
id,
|
|
4047
|
-
filterOptions: (x) => x,
|
|
4048
|
-
loading: true,
|
|
4049
|
-
freeSolo: true,
|
|
4050
|
-
onChange: (e, value) => {
|
|
4051
|
-
if (value !== null) {
|
|
4052
|
-
if (typeof value !== "string") {
|
|
4053
|
-
if (onSearchItemSelected) onSearchItemSelected(value);
|
|
4054
|
-
}
|
|
4055
|
-
}
|
|
4056
|
-
},
|
|
4057
|
-
disableCloseOnSelect: false,
|
|
4058
|
-
getOptionLabel: (options2) => {
|
|
4059
|
-
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
4060
|
-
return returnVal;
|
|
4061
|
-
},
|
|
4062
|
-
options,
|
|
4063
|
-
sx: {
|
|
4064
|
-
width: width2,
|
|
4065
|
-
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
4066
|
-
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
4067
|
-
}
|
|
4068
|
-
},
|
|
4069
|
-
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
4070
|
-
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4071
|
-
_TextField2.default,
|
|
4072
|
-
{
|
|
4073
|
-
inputRef: textRef,
|
|
4074
|
-
placeholder,
|
|
4075
|
-
onKeyDown: (e) => {
|
|
4076
|
-
if (e.key === "Enter") {
|
|
4077
|
-
if (textRef.current && onEnter) {
|
|
4078
|
-
onEnter(textRef.current.value);
|
|
4079
|
-
}
|
|
4080
|
-
}
|
|
4081
|
-
},
|
|
4082
|
-
...params,
|
|
4083
|
-
size,
|
|
4084
|
-
InputProps: {
|
|
4085
|
-
...params.InputProps,
|
|
4086
|
-
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
4087
|
-
type: "search",
|
|
4088
|
-
endAdornment: null,
|
|
4089
|
-
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _InputAdornment2.default, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4090
|
-
_IconButton2.default,
|
|
4091
|
-
{
|
|
4092
|
-
sx: { color: textColor, paddingRight: "0px" },
|
|
4093
|
-
onClick: () => {
|
|
4094
|
-
if (textRef.current && onEnter) {
|
|
4095
|
-
onEnter(textRef.current.value);
|
|
4096
|
-
}
|
|
4097
|
-
},
|
|
4098
|
-
children
|
|
4099
|
-
}
|
|
4100
|
-
) })
|
|
4101
|
-
},
|
|
4102
|
-
sx: {
|
|
4103
|
-
"& .MuiInputBase-root": {
|
|
4104
|
-
height: height2
|
|
4105
|
-
},
|
|
4106
|
-
"&.MuiTextField-root": {
|
|
4107
|
-
"& label": { color: `${textColor}`, verticalAlign: "bottom" },
|
|
4108
|
-
"& label.Mui-focused": {
|
|
4109
|
-
color: `${hoverColor}`
|
|
4110
|
-
},
|
|
4111
|
-
"& .MuiOutlinedInput-root": {
|
|
4112
|
-
"& fieldset": {
|
|
4113
|
-
borderColor: `${borderColor2}`
|
|
4114
|
-
},
|
|
4115
|
-
"&:hover fieldset": {
|
|
4116
|
-
borderColor: `${hoverColor}`
|
|
4117
|
-
},
|
|
4118
|
-
"&.Mui-focused fieldset": {
|
|
4119
|
-
borderColor: `${hoverColor}`
|
|
4120
|
-
}
|
|
4121
|
-
}
|
|
4122
|
-
}
|
|
4123
|
-
},
|
|
4124
|
-
label
|
|
4125
|
-
}
|
|
4126
|
-
)
|
|
4127
|
-
}
|
|
4128
|
-
) });
|
|
4129
|
-
}
|
|
4130
|
-
} else if (type === "text-box") {
|
|
4131
|
-
if (mode === "automatic") {
|
|
4132
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4133
|
-
_Autocomplete2.default,
|
|
4134
|
-
{
|
|
4135
|
-
id,
|
|
4136
|
-
filterOptions: (x) => x,
|
|
4137
|
-
loading: true,
|
|
4138
|
-
disableListWrap: true,
|
|
4139
|
-
freeSolo: true,
|
|
4140
|
-
disableClearable: true,
|
|
4141
|
-
onChange: (e, value) => {
|
|
4142
|
-
if (value !== null) {
|
|
4143
|
-
if (typeof value !== "string") {
|
|
4144
|
-
if (onSearchItemSelected) onSearchItemSelected(value);
|
|
4145
|
-
}
|
|
4146
|
-
}
|
|
4147
|
-
},
|
|
4148
|
-
disableCloseOnSelect: false,
|
|
4149
|
-
getOptionLabel: (options2) => {
|
|
4150
|
-
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
4151
|
-
return returnVal;
|
|
4152
|
-
},
|
|
4153
|
-
options,
|
|
4154
|
-
sx: {
|
|
4155
|
-
width: width2,
|
|
4156
|
-
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
4157
|
-
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
4158
|
-
}
|
|
4159
|
-
},
|
|
4160
|
-
renderOption: (props, results) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: results.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: results.title, secondary: results.subtitle })),
|
|
4161
|
-
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4162
|
-
_TextField2.default,
|
|
4163
|
-
{
|
|
4164
|
-
placeholder,
|
|
4165
|
-
...params,
|
|
4166
|
-
size,
|
|
4167
|
-
InputProps: {
|
|
4168
|
-
...params.InputProps,
|
|
4169
|
-
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
4170
|
-
type: "search"
|
|
4171
|
-
},
|
|
4172
|
-
sx: {
|
|
4173
|
-
"& .MuiInputBase-root": {
|
|
4174
|
-
height: height2
|
|
4175
|
-
},
|
|
4176
|
-
"& .MuiAutocomplete-endAdornment": {
|
|
4177
|
-
display: "none"
|
|
4178
|
-
},
|
|
4179
|
-
"&.MuiTextField-root": {
|
|
4180
|
-
"& label": { color: `${textColor}` },
|
|
4181
|
-
"& label.Mui-focused": {
|
|
4182
|
-
color: `${hoverColor}`
|
|
4183
|
-
},
|
|
4184
|
-
"& .MuiOutlinedInput-root": {
|
|
4185
|
-
"& fieldset": {
|
|
4186
|
-
borderColor: `${borderColor2}`
|
|
4187
|
-
},
|
|
4188
|
-
"&:hover fieldset": {
|
|
4189
|
-
borderColor: `${hoverColor}`
|
|
4190
|
-
},
|
|
4191
|
-
"&.Mui-focused fieldset": {
|
|
4192
|
-
borderColor: `${hoverColor}`
|
|
4193
|
-
}
|
|
4194
|
-
}
|
|
4195
|
-
}
|
|
4196
|
-
},
|
|
4197
|
-
label,
|
|
4198
|
-
onChange
|
|
4199
|
-
}
|
|
4200
|
-
),
|
|
4201
|
-
PopperComponent: CustomPopper
|
|
4202
|
-
}
|
|
4203
|
-
) });
|
|
4204
|
-
} else if (mode === "manual") {
|
|
4205
|
-
const textRef = _react.useRef.call(void 0, );
|
|
4206
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4207
|
-
_Autocomplete2.default,
|
|
4208
|
-
{
|
|
4209
|
-
id,
|
|
4210
|
-
filterOptions: (x) => x,
|
|
4211
|
-
loading: true,
|
|
4212
|
-
freeSolo: true,
|
|
4213
|
-
onChange: (e, value) => {
|
|
4214
|
-
if (value !== null) {
|
|
4215
|
-
if (typeof value !== "string") {
|
|
4216
|
-
if (onSearchItemSelected) onSearchItemSelected(value);
|
|
4217
|
-
}
|
|
4218
|
-
}
|
|
4219
|
-
},
|
|
4220
|
-
disableCloseOnSelect: false,
|
|
4221
|
-
getOptionLabel: (options2) => {
|
|
4222
|
-
const returnVal = typeof options2 === "string" ? options2 : options2.title;
|
|
4223
|
-
return returnVal;
|
|
4224
|
-
},
|
|
4225
|
-
options,
|
|
4226
|
-
sx: {
|
|
4227
|
-
width: width2,
|
|
4228
|
-
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
4229
|
-
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
4230
|
-
}
|
|
4231
|
-
},
|
|
4232
|
-
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
4233
|
-
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4234
|
-
_TextField2.default,
|
|
4235
|
-
{
|
|
4236
|
-
placeholder,
|
|
4237
|
-
inputRef: textRef,
|
|
4238
|
-
onKeyDown: (e) => {
|
|
4239
|
-
if (e.key === "Enter") {
|
|
4240
|
-
if (textRef.current && onEnter) {
|
|
4241
|
-
onEnter(textRef.current.value);
|
|
4242
|
-
}
|
|
4243
|
-
}
|
|
4244
|
-
},
|
|
4245
|
-
...params,
|
|
4246
|
-
size,
|
|
4247
|
-
InputProps: {
|
|
4248
|
-
...params.InputProps,
|
|
4249
|
-
endAdornment: null,
|
|
4250
|
-
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
4251
|
-
type: "search"
|
|
4252
|
-
},
|
|
4253
|
-
sx: {
|
|
4254
|
-
"& .MuiInputBase-root": {
|
|
4255
|
-
height: height2
|
|
4256
|
-
},
|
|
4257
|
-
"&.MuiTextField-root": {
|
|
4258
|
-
"& label": { color: `${textColor}`, verticalAlign: "bottom" },
|
|
4259
|
-
"& label.Mui-focused": {
|
|
4260
|
-
color: `${hoverColor}`
|
|
4261
|
-
},
|
|
4262
|
-
"& .MuiOutlinedInput-root": {
|
|
4263
|
-
"& fieldset": {
|
|
4264
|
-
borderColor: `${borderColor2}`
|
|
4265
|
-
},
|
|
4266
|
-
"&:hover fieldset": {
|
|
4267
|
-
borderColor: `${hoverColor}`
|
|
4268
|
-
},
|
|
4269
|
-
"&.Mui-focused fieldset": {
|
|
4270
|
-
borderColor: `${hoverColor}`
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
}
|
|
4274
|
-
},
|
|
4275
|
-
label
|
|
4276
|
-
}
|
|
4277
|
-
)
|
|
4278
|
-
}
|
|
4279
|
-
) });
|
|
3743
|
+
iconPos,
|
|
3744
|
+
hoverColor,
|
|
3745
|
+
options,
|
|
3746
|
+
placeholder,
|
|
3747
|
+
placeholderColor,
|
|
3748
|
+
placeholderFont,
|
|
3749
|
+
inputColor,
|
|
3750
|
+
inputFont,
|
|
3751
|
+
...rest
|
|
3752
|
+
// This rest operator includes className, style, onClick, etc.
|
|
3753
|
+
}) => {
|
|
3754
|
+
const ref = _react.useRef.call(void 0, null);
|
|
3755
|
+
const syncAttribute = (attribute, value) => {
|
|
3756
|
+
const el = ref.current;
|
|
3757
|
+
if (!el) return;
|
|
3758
|
+
if (value !== void 0) {
|
|
3759
|
+
el.setAttribute(attribute, value);
|
|
3760
|
+
} else {
|
|
3761
|
+
el.removeAttribute(attribute);
|
|
4280
3762
|
}
|
|
4281
|
-
}
|
|
4282
|
-
|
|
4283
|
-
|
|
3763
|
+
};
|
|
3764
|
+
_react.useEffect.call(void 0, () => {
|
|
3765
|
+
const el = ref.current;
|
|
3766
|
+
if (!el) return;
|
|
3767
|
+
el.customStyles = customStyle2;
|
|
3768
|
+
syncAttribute("width", width2);
|
|
3769
|
+
syncAttribute("mode", mode);
|
|
3770
|
+
syncAttribute("font-size", fontSize);
|
|
3771
|
+
syncAttribute("height", height2);
|
|
3772
|
+
syncAttribute("border-width", borderWidth);
|
|
3773
|
+
syncAttribute("border-radius", borderRadius2);
|
|
3774
|
+
syncAttribute("border-color", borderColor2);
|
|
3775
|
+
syncAttribute("background-color", backgroundColor2);
|
|
3776
|
+
syncAttribute("hover-color", hoverColor);
|
|
3777
|
+
syncAttribute("options", options);
|
|
3778
|
+
syncAttribute("icon-pos", iconPos);
|
|
3779
|
+
syncAttribute("placeholder", placeholder);
|
|
3780
|
+
syncAttribute("placeholder-color", placeholderColor);
|
|
3781
|
+
syncAttribute("placeholder-font", placeholderFont);
|
|
3782
|
+
syncAttribute("input-color", inputColor);
|
|
3783
|
+
syncAttribute("input-font", inputFont);
|
|
3784
|
+
}, [
|
|
3785
|
+
customStyle2,
|
|
3786
|
+
width2,
|
|
3787
|
+
mode,
|
|
3788
|
+
fontSize,
|
|
3789
|
+
height2,
|
|
3790
|
+
borderWidth,
|
|
3791
|
+
borderRadius2,
|
|
3792
|
+
borderColor2,
|
|
3793
|
+
backgroundColor2,
|
|
3794
|
+
iconPos,
|
|
3795
|
+
hoverColor,
|
|
3796
|
+
options,
|
|
3797
|
+
placeholder,
|
|
3798
|
+
placeholderColor,
|
|
3799
|
+
placeholderFont,
|
|
3800
|
+
inputColor,
|
|
3801
|
+
inputFont
|
|
3802
|
+
]);
|
|
3803
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-search", { ref, ...rest });
|
|
3804
|
+
};
|
|
4284
3805
|
WavelengthSearch.displayName = "WavelengthSearch";
|
|
4285
3806
|
|
|
4286
3807
|
// src/components/search/WavelengthSearchTextField.tsx
|
|
4287
3808
|
|
|
4288
|
-
|
|
3809
|
+
var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);
|
|
4289
3810
|
|
|
4290
3811
|
function WavelengthSearchTextField() {
|
|
4291
3812
|
const palette2 = getPalette();
|
|
@@ -4781,7 +4302,7 @@ WavelengthNotAvailablePage.displayName = "WavelengthNotAvailablePage";
|
|
|
4781
4302
|
|
|
4782
4303
|
var _reactrouterdom = require('react-router-dom');
|
|
4783
4304
|
var _iconsmaterial = require('@mui/icons-material');
|
|
4784
|
-
|
|
4305
|
+
var _ListItem = require('@mui/material/ListItem'); var _ListItem2 = _interopRequireDefault(_ListItem);
|
|
4785
4306
|
var _Typography = require('@mui/material/Typography'); var _Typography2 = _interopRequireDefault(_Typography);
|
|
4786
4307
|
var _Collapse = require('@mui/material/Collapse'); var _Collapse2 = _interopRequireDefault(_Collapse);
|
|
4787
4308
|
var _List = require('@mui/material/List'); var _List2 = _interopRequireDefault(_List);
|
|
@@ -6019,7 +5540,7 @@ var _MenuItem = require('@mui/material/MenuItem'); var _MenuItem2 = _interopRequ
|
|
|
6019
5540
|
var _Slide = require('@mui/material/Slide'); var _Slide2 = _interopRequireDefault(_Slide);
|
|
6020
5541
|
|
|
6021
5542
|
|
|
6022
|
-
|
|
5543
|
+
var _IconButton = require('@mui/material/IconButton'); var _IconButton2 = _interopRequireDefault(_IconButton);
|
|
6023
5544
|
var _Divider = require('@mui/material/Divider'); var _Divider2 = _interopRequireDefault(_Divider);
|
|
6024
5545
|
|
|
6025
5546
|
var customStyle = { marginLeft: 16, marginRight: 16, marginTop: 8, marginBottom: 8 };
|
|
@@ -6282,6 +5803,44 @@ var WavelengthMenu = ({
|
|
|
6282
5803
|
};
|
|
6283
5804
|
WavelengthMenu.displayName = "WavelengthMenu";
|
|
6284
5805
|
|
|
5806
|
+
// src/components/modals/WavelengthSwitch.tsx
|
|
5807
|
+
|
|
5808
|
+
|
|
5809
|
+
var WavelengthSwitch = ({ label, labelPlacement, size, disabled, color: color2, labelFont, checked, value, onWavelengthSwitchChange, customStyle: customStyle2, ...rest }) => {
|
|
5810
|
+
const ref = _react.useRef.call(void 0, null);
|
|
5811
|
+
_react.useEffect.call(void 0, () => {
|
|
5812
|
+
const el = ref.current;
|
|
5813
|
+
if (!el) return;
|
|
5814
|
+
const syncAttribute = (attr, val, isBool = false) => {
|
|
5815
|
+
if (val === void 0 || val === null || isBool && !val) {
|
|
5816
|
+
el.removeAttribute(attr);
|
|
5817
|
+
} else {
|
|
5818
|
+
el.setAttribute(attr, isBool ? "" : val.toString());
|
|
5819
|
+
}
|
|
5820
|
+
};
|
|
5821
|
+
el.customStyles = customStyle2;
|
|
5822
|
+
syncAttribute("checked", checked, true);
|
|
5823
|
+
syncAttribute("disabled", disabled, true);
|
|
5824
|
+
syncAttribute("label", label);
|
|
5825
|
+
syncAttribute("label-placement", labelPlacement);
|
|
5826
|
+
syncAttribute("size", size);
|
|
5827
|
+
syncAttribute("color", color2);
|
|
5828
|
+
syncAttribute("label-font", labelFont);
|
|
5829
|
+
syncAttribute("value", value);
|
|
5830
|
+
}, [checked, label, labelPlacement, size, disabled, color2, labelFont, value, customStyle2]);
|
|
5831
|
+
_react.useEffect.call(void 0, () => {
|
|
5832
|
+
const el = ref.current;
|
|
5833
|
+
if (!el || !onWavelengthSwitchChange) return;
|
|
5834
|
+
const handleEvent = (e) => {
|
|
5835
|
+
onWavelengthSwitchChange(e);
|
|
5836
|
+
};
|
|
5837
|
+
el.addEventListener("wavelength-switch-change", handleEvent);
|
|
5838
|
+
return () => el.removeEventListener("wavelength-switch-change", handleEvent);
|
|
5839
|
+
}, [onWavelengthSwitchChange]);
|
|
5840
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-switch", { ref, ...rest });
|
|
5841
|
+
};
|
|
5842
|
+
WavelengthSwitch.displayName = "WavelengthSwitch";
|
|
5843
|
+
|
|
6285
5844
|
// src/components/modals/WavelengthPagination.tsx
|
|
6286
5845
|
|
|
6287
5846
|
|
|
@@ -8674,7 +8233,8 @@ var WavelengthMultiSelectAutocomplete = ({ options, placeholder = "Select Option
|
|
|
8674
8233
|
|
|
8675
8234
|
|
|
8676
8235
|
|
|
8677
|
-
|
|
8236
|
+
|
|
8237
|
+
exports.ButtonIcon = ButtonIcon; exports.ButtonMenu = ButtonMenu; exports.ChildDataTable = ChildDataTable2; exports.ChildDataTableElement = _webcomponents.ChildDataTable; exports.DefaultCarousel = DefaultCarousel; exports.NestedDataTable = NestedDataTable; exports.SampleComponent = SampleComponent; exports.SampleComponentElement = _webcomponents.SampleComponent; exports.SliderCardCarousel = SliderCardCarousel; exports.WavelengthAccessAlert = WavelengthAccessAlert; exports.WavelengthAlert = WavelengthAlert; exports.WavelengthAppLogo = WavelengthAppLogo; exports.WavelengthAppTheme = WavelengthAppTheme; exports.WavelengthAutoComplete = WavelengthAutoComplete; exports.WavelengthAutocomplete = WavelengthAutocomplete; exports.WavelengthBanner = WavelengthBanner; exports.WavelengthBannerElement = _webcomponents.WavelengthBanner; exports.WavelengthBox = WavelengthBox; exports.WavelengthButton = WavelengthButton; exports.WavelengthButtonElement = _webcomponents.WavelengthButton; exports.WavelengthCheckbox = WavelengthCheckbox; exports.WavelengthCommentDisplay = WavelengthCommentDisplay; exports.WavelengthConfirmationModal = WavelengthConfirmationModal; exports.WavelengthContentModal = WavelengthContentModal; exports.WavelengthContentPlaceholder = WavelengthContentPlaceholder; exports.WavelengthDataTable = WavelengthDataTable; exports.WavelengthDatePicker = WavelengthDatePicker; exports.WavelengthDatePickerElement = _webcomponents.WavelengthDatePicker; exports.WavelengthDefaultIcon = WavelengthDefaultIcon; exports.WavelengthDefaultPagination = WavelengthDefaultPagination; exports.WavelengthDragAndDrop = WavelengthDragAndDrop; exports.WavelengthDropdown = WavelengthDropdown; exports.WavelengthDropdownButton = WavelengthDropdownButton; exports.WavelengthExampleComponent = WavelengthExampleComponent; exports.WavelengthFileDownloader = WavelengthFileDownloader; exports.WavelengthFileDropZone = WavelengthFileDropZone; exports.WavelengthFooter = WavelengthFooter; exports.WavelengthForm = WavelengthForm; exports.WavelengthFormElement = _webcomponents.WavelengthForm; exports.WavelengthInput = WavelengthInput; exports.WavelengthInputElement = _webcomponents.WavelengthInput; exports.WavelengthManyPlanes = WavelengthManyPlanes; exports.WavelengthMenu = WavelengthMenu; exports.WavelengthMultiSelectAutocomplete = WavelengthMultiSelectAutocomplete; exports.WavelengthMultiSelectAutocompleteElement = _webcomponents.WavelengthMultiSelectAutocomplete; exports.WavelengthNavBar = WavelengthNavBar; exports.WavelengthNotAvailablePage = WavelengthNotAvailablePage; exports.WavelengthNotificationPanel = WavelengthNotificationPanel; exports.WavelengthPagination = WavelengthPagination; exports.WavelengthPaginationElement = _webcomponents.WavelengthPagination; exports.WavelengthPermissionAlert = WavelengthPermissionAlert; exports.WavelengthPlaneTrail = WavelengthPlaneTrail; exports.WavelengthPopUpMenu = WavelengthPopUpMenu; exports.WavelengthProgressBar = WavelengthProgressBar; exports.WavelengthProgressBarElement = _webcomponents.WavelengthProgressBar; exports.WavelengthSearch = WavelengthSearch; exports.WavelengthSearchTextField = WavelengthSearchTextField; exports.WavelengthSideBar = WavelengthSideBar; exports.WavelengthSlider = WavelengthSlider; exports.WavelengthSnackbar = WavelengthSnackbar; exports.WavelengthSpinningLogo = WavelengthSpinningLogo; exports.WavelengthSpinningOuterCircle = WavelengthSpinningOuterCircle; exports.WavelengthStandardSnackbar = WavelengthStandardSnackbar; exports.WavelengthStyledButton = WavelengthStyledButton; exports.WavelengthSwitch = WavelengthSwitch; exports.WavelengthTestSnackbar = WavelengthTestSnackbar; exports.WavelengthTitleBar = WavelengthTitleBar; exports.WavelengthTitleBarElement = _webcomponents.WavelengthTitleBar; exports.WavelengthToolTip = WavelengthToolTip; exports.WavelengthWebSnackbar = WavelengthWebSnackbar; exports.add = add; exports.concat = concat; exports.findBestStringMatch = findBestStringMatch; exports.useOutsideClick = useOutsideClick; exports.useThemeContext = useThemeContext;
|
|
8678
8238
|
/*! Bundled license information:
|
|
8679
8239
|
|
|
8680
8240
|
react-is/cjs/react-is.production.min.js:
|