solace-ui-components 18.0.4 → 18.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,7 +23,7 @@
23
23
  This library undergoes **comprehensive automated scanning** on every commit:
24
24
 
25
25
  - ✅ **FOSSA** - License compliance and vulnerability scanning
26
- - ✅ **WhiteSource/Mend** - Dependency security analysis
26
+
27
27
  - ✅ **SonarQube** - Code quality and security hotspot detection
28
28
  - ✅ **Chromatic** - Visual regression testing for UI consistency
29
29
  - ✅ **Automated Testing** - Unit tests with Jest + React Testing Library
@@ -1,2 +1,2 @@
1
- import {c,g,e,b}from'./chunk-54TEARQI.modern.mjs';import {a}from'./chunk-QKQRCYG4.modern.mjs';import {wa,le,D,Ic,ua,Gb,Ie,_h}from'./chunk-I7OJ5H4U.modern.mjs';import {jsx,jsxs}from'react/jsx-runtime';function ie({id:e,htmlForId:n,required:i=false,disabled:t=false,readOnly:l=false,noWrap:s=false,children:p}){return jsx(le,{id:e,htmlFor:n,required:i,disabled:t,sx:{display:"block",whiteSpace:s?"nowrap":"normal"},className:D({"read-only":l}),children:p})}var k=ie;var q={maxLength:255,menuItemHeight:38,menuItemHeightMultiline:58,GridListItemHeight:53,DEFAULT_NUM_OF_MENUITEM_DISPLAYED:9,closeButtonAriaLabel:"Close",actionMenuAriaLabel:"More Actions",clearButtonAriaLabel:"Clear"};var ae=wa("div",{shouldForwardProp:e=>e!=="inlineLabel"})(({theme:e,inlineLabel:n})=>({display:"flex",flexDirection:"column",flexGrow:1,maxWidth:"100%",paddingLeft:n?"36px":"0px","&.hasWarnings":{"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline":{borderColor:`${e.palette.ux.warning.w100}`}}}));function de({id:e$1,label:n,stackLabel:i,large:t,bold:l,required:s,disabled:p,readOnly:f,inlineLabel:u,centerInlineLabel:c$1,helperText:b,errorText:r,warningText:m,children:g$1,sx:h}){return jsxs(Ic,{display:"flex",flexDirection:u?"row":"column",justifyContent:"space-between",alignItems:c$1?"flex-start":"",sx:h,children:[i&&n&&jsx("div",{style:{marginTop:c$1?"5.5px":""},children:jsx(a,{id:`${e$1}-label`,htmlForId:`${e$1}`,required:s,disabled:p,large:t,bold:l,readOnly:f,children:n})}),!i&&n&&jsx("div",{style:{marginTop:c$1?"5.5px":""},children:jsx(k,{id:`${e$1}-label`,htmlForId:`${e$1}`,required:s,disabled:p,readOnly:f,noWrap:u,children:n})}),jsxs(ae,{inlineLabel:u,className:m?"hasWarnings":"",children:[g$1,b&&!r&&!m&&jsx(c,{children:b}),m&&!r&&jsx(g,{children:m}),r&&jsx(e,{children:r})]})]})}var N=de;function se({id:e,name:n,label:i,value:t,helperText:l,placeholder:s,maxLength:p=q.maxLength,type:f="text",size:u=50,title:c,autoFocus:b$1=false,hasErrors:r=false,hasWarnings:m=false,required:g=false,inlineLabel:h=false,customIcon:o,disabled:F=false,readOnly:x=false,onChange:T,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,dataQa:E,dataTags:z,fullWidth:G=false,width:Y,endAdornment:I,minWidth:V,inputRef:Z}){let Q=ua(),P=o&&o.position==="end"?jsx(Gb,{onClick:o.handleClick,children:o.icon}):null,j=P||I?{endAdornment:jsxs(Ie,{position:"end",children:[I,P]})}:{},ee=o&&o.position==="start"?{startAdornment:jsx(Ie,{position:o.position,children:jsx(Gb,{onClick:o.handleClick,children:o.icon})})}:{},ne={sx:{height:Q.spacing(4)},disabled:F,required:g},te=L=>{T&&T({name:n,value:L.target.value});},S=()=>e||n,oe=wa("div")(({theme:L})=>({...L.mixins.formComponent_ReadOnlyToolTipContainer.container})),le=()=>x?jsx(oe,{children:jsx(b,{variant:"overflow",title:typeof t<"u"&&t!==null?t+"":"",dataQa:E,children:typeof t<"u"&&t!==null?t+"":""})}):jsx(_h,{id:`${S()}`,name:n,inputProps:{maxLength:p,size:u,"data-qa":E,"data-tags":z,"data-testid":E,"data-lpignore":true,readOnly:x,"aria-describedby":l?`${S()}-textfield-helper-text`:"","aria-labelledby":i?`${S()}-label`:"","aria-readonly":x,role:"textbox",title:c,min:0},inputRef:Z,type:f,error:r,autoComplete:`dummy-field-${n}`,autoFocus:b$1,InputProps:{...ne,...j,...ee},margin:"dense",placeholder:s,value:t,onChange:te,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,fullWidth:G,sx:{minWidth:V}});return jsx(N,{id:S(),label:i,helperText:l,errorText:r?l:void 0,warningText:m?l:void 0,disabled:F,readOnly:x,required:g,inlineLabel:h,centerInlineLabel:h,sx:{width:Y},children:le()})}var Me=se;export{k as a,N as b,q as c,Me as d};//# sourceMappingURL=chunk-VYHLNTMX.modern.mjs.map
2
- //# sourceMappingURL=chunk-VYHLNTMX.modern.mjs.map
1
+ import {c,g,e,b}from'./chunk-54TEARQI.modern.mjs';import {a}from'./chunk-QKQRCYG4.modern.mjs';import {wa,le,D,Ic,ua,Gb,Ie,_h}from'./chunk-I7OJ5H4U.modern.mjs';import {jsx,jsxs}from'react/jsx-runtime';function ie({id:e,htmlForId:n,required:i=false,disabled:t=false,readOnly:l=false,noWrap:s=false,children:p}){return jsx(le,{id:e,htmlFor:n,required:i,disabled:t,sx:{display:"block",whiteSpace:s?"nowrap":"normal"},className:D({"read-only":l}),children:p})}var $=ie;var q={maxLength:255,menuItemHeight:38,menuItemHeightMultiline:58,GridListItemHeight:53,DEFAULT_NUM_OF_MENUITEM_DISPLAYED:9,closeButtonAriaLabel:"Close",actionMenuAriaLabel:"More Actions",clearButtonAriaLabel:"Clear"};var ae=wa("div",{shouldForwardProp:e=>e!=="inlineLabel"})(({theme:e,inlineLabel:n})=>({display:"flex",flexDirection:"column",flexGrow:1,maxWidth:"100%",paddingLeft:n?"36px":"0px","&.hasWarnings":{"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline":{borderColor:`${e.palette.ux.warning.w100}`}}}));function de({id:e$1,label:n,stackLabel:i,large:t,bold:l,required:s,disabled:p,readOnly:f,inlineLabel:c$1,centerInlineLabel:u,helperText:b,errorText:r,warningText:m,children:g$1,sx:h}){return jsxs(Ic,{display:"flex",flexDirection:c$1?"row":"column",justifyContent:"space-between",alignItems:u?"flex-start":"",sx:h,children:[i&&n&&jsx("div",{style:{marginTop:u?"5.5px":""},children:jsx(a,{id:`${e$1}-label`,htmlForId:`${e$1}`,required:s,disabled:p,large:t,bold:l,readOnly:f,children:n})}),!i&&n&&jsx("div",{style:{marginTop:u?"5.5px":""},children:jsx($,{id:`${e$1}-label`,htmlForId:`${e$1}`,required:s,disabled:p,readOnly:f,noWrap:c$1,children:n})}),jsxs(ae,{inlineLabel:c$1,className:m?"hasWarnings":"",children:[g$1,b&&!r&&!m&&jsx(c,{children:b}),m&&!r&&jsx(g,{children:m}),r&&jsx(e,{children:r})]})]})}var N=de;function se({id:e,name:n,label:i,value:t,helperText:l,placeholder:s,maxLength:p=q.maxLength,type:f="text",size:c=50,title:u,autoFocus:b$1=false,hasErrors:r=false,hasWarnings:m=false,required:g=false,inlineLabel:h=false,customIcon:o,disabled:T=false,readOnly:x=false,onChange:y,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,dataQa:E,dataTags:z,fullWidth:G=false,width:Y,endAdornment:I,minWidth:V,inputRef:Z}){let Q=ua(),P=o&&o.position==="end"?jsx(Gb,{onClick:o.handleClick,children:o.icon}):null,j=P||I?{endAdornment:jsxs(Ie,{position:"end",children:[I,P]})}:{},ee=o&&o.position==="start"?{startAdornment:jsx(Ie,{position:o.position,children:jsx(Gb,{onClick:o.handleClick,children:o.icon})})}:{},ne={sx:{height:Q.spacing(4)},disabled:T,required:g},te=L=>{y&&y({name:n,value:L.target.value});},S=()=>e||n,oe=wa("div")(({theme:L})=>({...L.mixins.formComponent_ReadOnlyToolTipContainer.container})),le=()=>x?jsx(oe,{children:jsx(b,{variant:"overflow",title:typeof t<"u"&&t!==null?t+"":"",dataQa:E,children:typeof t<"u"&&t!==null?t+"":""})}):jsx(_h,{id:`${S()}`,name:n,inputProps:{maxLength:p,size:c,"data-qa":E,"data-tags":z,"data-testid":E,"data-lpignore":true,readOnly:x,"aria-describedby":l?`${S()}-textfield-helper-text`:"","aria-labelledby":i?`${S()}-label`:"","aria-readonly":x,title:u,min:0},inputRef:Z,type:f,error:r,autoComplete:"off",autoFocus:b$1,InputProps:{...ne,...j,...ee},margin:"dense",placeholder:s,value:t,onChange:te,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,fullWidth:G,sx:{minWidth:V}});return jsx(N,{id:S(),label:i,helperText:l,errorText:r?l:void 0,warningText:m?l:void 0,disabled:T,readOnly:x,required:g,inlineLabel:h,centerInlineLabel:h,sx:{width:Y},children:le()})}var Me=se;export{$ as a,N as b,q as c,Me as d};//# sourceMappingURL=chunk-2KEJ5AH7.modern.mjs.map
2
+ //# sourceMappingURL=chunk-2KEJ5AH7.modern.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/SolaceLabel.tsx","../src/constants.ts","../src/components/form/FormChildBase.tsx","../src/components/form/SolaceTextField.tsx"],"names":["SolaceLabel","id","htmlForId","required","disabled","readOnly","noWrap","children","jsx","FormLabel_default","clsx_default","SolaceLabel_default","constants","ChildrenContainer","styled_default","prop","theme","inlineLabel","FormChildBase","label","stackLabel","large","bold","centerInlineLabel","helperText","errorText","warningText","sx","jsxs","Box_default","SolaceStackLabel_default","HelperText_default","WarningText_default","ErrorText_default","FormChildBase_default","SolaceTextField","name","value","placeholder","maxLength","type","size","title","autoFocus","hasErrors","hasWarnings","customIcon","onChange","onBlur","onKeyDown","onKeyUp","onFocus","dataQa","dataTags","fullWidth","width","endAdornment","minWidth","inputRef","useTheme","endIconProps","IconButton_default","inputEndAdornment","InputAdornment_default","inputStartAdornment","defaultInputProps","handleChange","event","getId","TooltipContainer","textField","SolaceToolTip_default","TextField_default","SolaceTextField_default"],"mappings":"wMAkDA,SAASA,EAAAA,CAAY,CACpB,GAAAC,CAAAA,CACA,SAAA,C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AA,CACjF,OAAO,OAAA,CACP,WAAA,CAAa1B,CAAAA,CACb,KAAA,CAAOD,EACP,QAAA,CAAU6B,EAAAA,CACV,MAAA,CAAQlB,CAAAA,CACR,UAAWC,CAAAA,CACX,OAAA,CAASC,CAAAA,CACT,OAAA,CAASC,EACT,SAAA,CAAWG,CAAAA,CACX,GAAI,CAAE,QAAA,CAAUG,CAAS,CAAA,CAC1B,CAAA,CAKH,OACCjD,GAAAA,CAAC0B,EAAA,CACA,EAAA,CAAIkC,CAAAA,EAAM,CACV,MAAOjD,CAAAA,CACP,UAAA,CAAYK,CAAAA,CACZ,SAAA,CAAWoB,EAAYpB,CAAAA,CAAa,MAAA,CACpC,YAAaqB,CAAAA,CAAcrB,CAAAA,CAAa,OACxC,QAAA,CAAUpB,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,SAAUF,CAAAA,CACV,WAAA,CAAac,CAAAA,CACb,iBAAA,CAAmBA,EACnB,EAAA,CAAI,CAAE,KAAA,CAAAsC,CAAM,EAEX,QAAA,CAAAe,EAAAA,GACF,CAEF,KAEOG,EAAAA,CAAQtC","file":"chunk-2KEJ5AH7.modern.mjs","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel } from \"@mui/material\";\nimport clsx from \"clsx\";\n\nexport interface SolaceLabelProps {\n\t/**\n\t * Unique identifier of the label\n\t */\n\tid: string;\n\t/**\n\t * identifier used for specifying which form element this label is bound to\n\t */\n\thtmlForId?: string;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag for readOnly labels, changes font color to 55% black\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to suppress line breaks (text wrapping) within the label\n\t */\n\tnoWrap?: boolean;\n\t/**\n\t *\n\t */\n\tchildren?: React.ReactNode;\n}\n\nfunction SolaceLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tnoWrap = false,\n\tchildren\n}: SolaceLabelProps): JSX.Element {\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{\n\t\t\t\tdisplay: \"block\",\n\t\t\t\twhiteSpace: noWrap ? \"nowrap\" : \"normal\"\n\t\t\t}}\n\t\t\tclassName={clsx({ \"read-only\": readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default SolaceLabel;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const constants = {\n\tmaxLength: 255,\n\tmenuItemHeight: 38,\n\tmenuItemHeightMultiline: 58,\n\tGridListItemHeight: 53,\n\tDEFAULT_NUM_OF_MENUITEM_DISPLAYED: 9,\n\tcloseButtonAriaLabel: \"Close\",\n\tactionMenuAriaLabel: \"More Actions\",\n\tclearButtonAriaLabel: \"Clear\"\n};\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, styled } from \"@mui/material\";\nimport SolaceLabel from \"./SolaceLabel\";\nimport SolaceStackLabel from \"./SolaceStackLabel\";\nimport HelperText from \"./HelperText\";\nimport ErrorText from \"./ErrorText\";\nimport WarningText from \"./WarningText\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { SX } from \"../../types/sx\";\n\ninterface ChildrenContainerProps {\n\tinlineLabel: boolean;\n}\n\nconst ChildrenContainer = styled(\"div\", {\n\tshouldForwardProp: (prop) => prop !== \"inlineLabel\"\n})<ChildrenContainerProps>(({ theme, inlineLabel }) => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tflexGrow: 1,\n\tmaxWidth: \"100%\",\n\tpaddingLeft: inlineLabel ? \"36px\" : \"0px\",\n\t\"&.hasWarnings\": {\n\t\t\"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline\": {\n\t\t\tborderColor: `${theme.palette.ux.warning.w100}`\n\t\t}\n\t}\n}));\n\nexport interface FormChildBaseProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * Boolean flag to allow labels to be rendered as SolaceStackLabel component, which provides more props, such as large, bold\n\t */\n\tstackLabel?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with larger font size of 16px (default to 14px)\n\t */\n\tlarge?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with font weight of medium (default to regular)\n\t */\n\tbold?: boolean;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanatory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in error state\n\t */\n\terrorText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in warning state\n\t */\n\twarningText?: string | JSX.Element;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly: boolean;\n\t/**\n\t * Display the label horizontally\n\t */\n\tinlineLabel: boolean;\n\t/**\n\t * Center align the inline label, this will e used only for single line field label\n\t */\n\tcenterInlineLabel?: boolean;\n\n\tchildren: JSX.Element;\n\t/**\n\t * The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.\n\t */\n\tsx?: SX;\n}\n\nfunction FormChildBase({\n\tid,\n\tlabel,\n\tstackLabel,\n\tlarge,\n\tbold,\n\trequired,\n\tdisabled,\n\treadOnly,\n\tinlineLabel,\n\tcenterInlineLabel,\n\thelperText,\n\terrorText,\n\twarningText,\n\tchildren,\n\tsx\n}: FormChildBaseProps): JSX.Element {\n\treturn (\n\t\t<Box\n\t\t\tdisplay=\"flex\"\n\t\t\tflexDirection={inlineLabel ? \"row\" : \"column\"}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\talignItems={centerInlineLabel ? \"flex-start\" : \"\"}\n\t\t\tsx={sx}\n\t\t>\n\t\t\t{stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceStackLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tlarge={large}\n\t\t\t\t\t\tbold={bold}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceStackLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{!stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\tnoWrap={inlineLabel}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<ChildrenContainer inlineLabel={inlineLabel} className={warningText ? \"hasWarnings\" : \"\"}>\n\t\t\t\t{children}\n\t\t\t\t{helperText && !errorText && !warningText && <HelperText>{helperText}</HelperText>}\n\t\t\t\t{warningText && !errorText && <WarningText>{warningText}</WarningText>}\n\t\t\t\t{errorText && <ErrorText>{errorText}</ErrorText>}\n\t\t\t</ChildrenContainer>\n\t\t</Box>\n\t);\n}\n\nexport default FormChildBase;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InputAdornment, IconButton, TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport SolaceTooltip from \"../SolaceToolTip\";\nimport { styled } from \"@mui/material\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nexport interface SolaceTextFieldChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextFieldProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string | number;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The type of `input` element to render\n\t */\n\ttype?: \"text\" | \"number\" | \"password\" | \"email\" | \"url\";\n\t/**\n\t * The size/width of the `input` measured in characters\n\t */\n\tsize?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in warn state\n\t */\n\thasWarnings?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Allows custom icon to be set at the beginning/end of the field.\n\t */\n\tcustomIcon?: {\n\t\ticon: React.ReactNode;\n\t\tposition: \"end\" | \"start\";\n\t\thandleClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n\t};\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextFieldChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * optional prop to pass an array of icon or button at the end of textfield\n\t */\n\tendAdornment?: (React.ReactNode | JSX.Element)[];\n\t/**\n\t * minimum width of the component\n\t */\n\tminWidth?: string;\n\t/**\n\t * pass a ref to the input element.\n\t */\n\tinputRef?: (input: HTMLInputElement) => void;\n}\n\nfunction SolaceTextField({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\ttype = \"text\",\n\tsize = 50,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\thasWarnings = false,\n\trequired = false,\n\tinlineLabel = false,\n\tcustomIcon,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\twidth,\n\tendAdornment,\n\tminWidth,\n\tinputRef\n}: SolaceTextFieldProps): JSX.Element {\n\tconst theme = useTheme();\n\n\tconst endIconProps =\n\t\tcustomIcon && customIcon.position === \"end\" ? (\n\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t) : null;\n\n\tconst inputEndAdornment =\n\t\tendIconProps || endAdornment\n\t\t\t? {\n\t\t\t\t\tendAdornment: (\n\t\t\t\t\t\t<InputAdornment position=\"end\">\n\t\t\t\t\t\t\t{endAdornment}\n\t\t\t\t\t\t\t{endIconProps}\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t: {};\n\tconst inputStartAdornment =\n\t\tcustomIcon && customIcon.position === \"start\"\n\t\t\t? {\n\t\t\t\t\tstartAdornment: (\n\t\t\t\t\t\t<InputAdornment position={customIcon.position}>\n\t\t\t\t\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t: {};\n\n\tconst defaultInputProps = {\n\t\tsx: { height: theme.spacing(4) },\n\t\tdisabled: disabled,\n\t\trequired: required\n\t};\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst TooltipContainer = styled(\"div\")(({ theme }) => ({\n\t\t...(theme.mixins.formComponent_ReadOnlyToolTipContainer.container as CSSProperties)\n\t}));\n\n\tconst textField = () => {\n\t\t/* read-only behaviour */\n\t\tif (readOnly) {\n\t\t\treturn (\n\t\t\t\t<TooltipContainer>\n\t\t\t\t\t<SolaceTooltip\n\t\t\t\t\t\tvariant=\"overflow\"\n\t\t\t\t\t\ttitle={typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t\tdataQa={dataQa}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t</SolaceTooltip>\n\t\t\t\t</TooltipContainer>\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t<TextField\n\t\t\t\t\tid={`${getId()}`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tinputProps={{\n\t\t\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\t\tsize: size,\n\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\t\t\"data-testid\": dataQa,\n\t\t\t\t\t\t\"data-lpignore\": true,\n\t\t\t\t\t\treadOnly: readOnly,\n\t\t\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t\tmin: 0\n\t\t\t\t\t}}\n\t\t\t\t\tinputRef={inputRef}\n\t\t\t\t\ttype={type}\n\t\t\t\t\terror={hasErrors}\n\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\tautoFocus={autoFocus}\n\t\t\t\t\tInputProps={{ ...defaultInputProps, ...inputEndAdornment, ...inputStartAdornment }}\n\t\t\t\t\tmargin=\"dense\"\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tfullWidth={fullWidth}\n\t\t\t\t\tsx={{ minWidth: minWidth }}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\twarningText={hasWarnings ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextField;\n"]}
@@ -0,0 +1,4 @@
1
+ import {b,c}from'./chunk-2KEJ5AH7.modern.mjs';import {Oa,ua,Ic,md,D,le,he,Kb,_h,eb}from'./chunk-I7OJ5H4U.modern.mjs';import {jsx,jsxs}from'react/jsx-runtime';import ne,{useState,useEffect}from'react';var j=Oa(jsx("path",{d:`M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563
2
+ l5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851
3
+ C16.637,8.957,16.387,8.957,16.233,9.111z`}),"SelectDropDownIcon");var q=Oa(jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var J=Oa(jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutlineOutlined");var We=Oa(jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var Ie=Oa(jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var Ke=Oa(jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe=Oa(jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Xe=Oa(jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");var oo=Oa(jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");var fo=Oa(jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var V=Oa(jsx("path",{d:"M19 13H5v-2h14z"}),"Remove");var xo=Oa(jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"ReportProblemOutlined");var ho=Oa(jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune");function ie({id:f,htmlForId:o,required:d=false,disabled:p=false,bold:t=false,large:r=false,readOnly:l=false,children:n}){let a=ua();return jsx(le,{id:f,htmlFor:o,required:d,disabled:p,sx:{display:"block",fontSize:r?a.typography.subtitle1:a.typography.body1},className:D({"bold-label":t,"check-box-label":true,readOnly:l}),children:n})}var Te=({id:f,name:o,label:d,title:p,helperText:t,hasErrors:r=false,checked:l=false,required:n=false,disabled:a=false,indeterminate:m=false,readOnly:S=false,boldLabel:A=false,largeLabel:c=false,subTextProps:s={label:"",light:false},onChange:w,dataQa:R,dataTags:y})=>{let O=ua(),[B,P]=useState(l);useEffect(()=>{P(l);},[l]);let k=g=>{P(g.target.checked),w&&w({name:o,value:g.target.checked});},D$1=()=>jsxs(Ic,{display:"flex",children:[r&&jsx(J,{sx:{marginRight:O.spacing()}}),t]}),x=()=>f||o;return jsx(ne.Fragment,{children:jsxs(Ic,{display:"grid",gridTemplateColumns:"auto 1fr",gridTemplateRows:"auto auto",alignItems:"center",children:[jsx(md,{id:`${x()}-checkbox`,name:o,indeterminate:m,inputProps:{"aria-labelledby":d?`${x()}-label`:"","data-qa":R,"data-tags":y},title:p,disabled:a||S,className:D({readOnly:S}),disableRipple:true,checked:B,onChange:k,checkedIcon:jsx(q,{}),indeterminateIcon:jsx(V,{})}),d&&jsx(Ic,{children:jsx(ie,{id:`${x()}-label`,htmlForId:`${x()}-checkbox`,required:n,disabled:a,bold:A||!!s.label&&!s.light,large:c,readOnly:S,children:d})}),s.label&&jsx(Ic,{gridColumn:"2",gridRow:"2",children:jsx(le,{id:`${f}-subtext`,disabled:a,className:D({"light-sub-text":s.light,"check-box-label":true}),children:s.label})}),t&&jsx(Ic,{gridColumn:"2",gridRow:"3",children:jsx(he,{error:r,component:"div",sx:{marginTop:O.spacing(.25)},children:D$1()})})]})})},bo=Te;function Se(f){let o=ua(),d={info:o.palette.ux.info.w100,error:o.palette.ux.error.w100,warning:o.palette.ux.warning.w100,success:o.palette.ux.success.w100},{variant:p="body1",children:t,color:r,...l}=f;return jsx(Kb,{variant:p,color:r&&typeof r=="string"?(a=>d[a])(r)||r:"textPrimary",...l,children:t})}function Re({id:f,name:o,label:d,value:p="",helperText:t,title:r,hasErrors:l=false,required:n=false,disabled:a=false,readOnly:m=false,inlineLabel:S=false,displayEmpty:A=false,onChange:c,getOptionDisplayValue:s,dataQa:w,dataTags:R,children:y,width:O,maxHeight:B,open:P,onOpen:k,onClose:D$1,menuAnchorOrigin:x,menuTransformOrigin:g}){let M=ua(),[L,v]=useState(p);useEffect(()=>{v(p);},[p]);let E=h=>{v(h.target.value),c&&c({name:o,value:h.target.value});},i=()=>f||o,H=()=>{let h={sx:{maxHeight:B,width:O}};return x&&(h.anchorOrigin=x),g&&(h.transformOrigin=g),h},C=()=>jsx(_h,{id:i(),name:o,inputProps:{"data-qa":w,"data-tags":R,"aria-describedby":t?`${i()}-select-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":m,role:"select",title:r},select:true,InputProps:{sx:{height:M.spacing(4)},className:D({readOnlySelect:m,emptySelect:!L}),disabled:a&&!m,readOnly:m,required:n},title:r,autoComplete:"off",required:n,disabled:a||m,error:l,margin:"dense",value:L,onChange:E,SelectProps:{IconComponent:j,MenuProps:{TransitionComponent:eb,...H()},renderValue:s?h=>s(h):void 0,displayEmpty:A,onOpen:k,onClose:D$1,open:P},children:y});return jsx(b,{id:i(),label:d,helperText:t,errorText:l?t:void 0,disabled:a,readOnly:m,required:n,inlineLabel:S,centerInlineLabel:S,sx:{width:O},children:C()})}var Go=Re;function Oe({id:f,name:o,label:d,value:p,helperText:t,placeholder:r,maxLength:l=c.maxLength,minRows:n=4,maxRows:a=4,title:m,autoFocus:S=false,hasErrors:A=false,required:c$1=false,inlineLabel:s=false,disabled:w=false,readOnly:R=false,onChange:y,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,dataQa:D,dataTags:x,fullWidth:g=false,resizable:M,width:L}){let v=ua(),E=C=>{y&&y({name:o,value:C.target.value});},i=()=>{let C=f||o;return M&&(C=`${C}-resizable-${M}`),C},H=()=>jsx(_h,{id:`${i()}`,name:o,inputProps:{maxLength:l,"data-qa":D,"data-tags":x,readOnly:R,"aria-describedby":t?`${i()}-textfield-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":R,role:"textbox",title:m},type:"text",autoComplete:"off",autoFocus:S,error:A,minRows:n,maxRows:a,multiline:true,InputProps:{sx:{height:v.spacing(4)},disabled:w,required:c$1,className:s?"inline-label":""},margin:"dense",placeholder:r,value:p,onChange:E,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,fullWidth:g});return jsx(b,{id:i(),label:d,helperText:t,errorText:A?t:void 0,disabled:w,readOnly:R,required:c$1,inlineLabel:s,sx:{width:L},children:H()})}var Jo=Oe;export{j as a,Ie as b,Ke as c,Xe as d,xo as e,We as f,J as g,qe as h,oo as i,fo as j,ho as k,bo as l,Se as m,Go as n,Jo as o};//# sourceMappingURL=chunk-BZZXLG3M.modern.mjs.map
4
+ //# sourceMappingURL=chunk-BZZXLG3M.modern.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/icons/SelectIcons.tsx","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Check.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ErrorOutlineOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Block.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CancelOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CheckCircleOutline.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Close.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/InfoOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/MoreHoriz.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/NavigateNext.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Remove.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ReportProblemOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Tune.js","../src/components/form/SolaceCheckBox.tsx","../src/components/SolaceTypography.tsx","../src/components/form/SolaceSelect.tsx","../src/components/form/SolaceTextArea.tsx"],"names":["SelectDropdownIcon","createSvgIcon","jsx","Check_default","_jsx","ErrorOutlineOutlined_default","Block_default","CancelOutlined_default","CheckCircleOutline_default","Close_default","InfoOutlined_default","MoreHoriz_default","NavigateNext_default","Remove_default","ReportProblemOutlined_default","Tune_default","CheckBoxLabel","id","htmlForId","required","disabled","bold","large","readOnly","children","theme","useTheme","FormLabel_default","clsx_default","SolaceCheckBox","name","label","title","helperText","hasErrors","checked","indeterminate","boldLabel","largeLabel","subTextProps","onChange","dataQa","dataTags","selected","setSelected","useState","useEffect","handleChange","event","getHelperText","jsxs","Box_default","getId","React","Checkbox_default","FormHelperText_default","SolaceCheckBox_default","SolaceTypography","props","colorMap","variant","color","rest","Typography_default","SolaceSelect","value","inlineLabel","displayEmpty","getOptionDisplayValue","width","maxHeight","open","onOpen","onClose","menuAnchorOrigin","menuTransformOrigin","selectedValue","setSelectedValue","getMenuProps","menuProps","select","TextField_default","Collapse_default","FormChildBase_default","SolaceSelect_default","SolaceTextArea","placeholder","maxLength","constants","minRows","maxRows","autoFocus","onBlur","onKeyDown","onKeyUp","onFocus","fullWidth","resizable","generatedId","textField","SolaceTextArea_default"],"mappings":"wMAkBO,IAAMA,EAAqBC,EAAAA,CACjCC,GAAAA,CAAC,QACA,CAAA,CAAE,CAAA;AAAA;AAAA,yCAAA,CAAA,CAGH,CAAA,CACA,oBACD,ECrBA,IAAOC,CAAAA,CAAQF,EAAAA,CAA2BG,GAAAA,CAAK,MAAA,CAAQ,CACrD,EAAG,mDACL,CAAC,CAAA,CAAG,OAAO,CAAA,CCFX,IAAOC,CAAAA,CAAQJ,EAAAA,CAA2BG,GAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,uKACL,CAAC,EAAG,sBAAsB,ECF1B,IAAOE,EAAAA,CAAQL,EAAAA,CAA2BG,GAAAA,CAAK,OAAQ,CACrD,CAAA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AA,CAAUlB,CAAAA,CACV,MAAA,CAAQ6C,EACR,SAAA,CAAWC,CAAAA,CACX,OAAA,CAASC,CAAAA,CACT,QAASC,CAAAA,CACT,SAAA,CAAWC,CAAAA,CACZ,CAAA,CAGD,OACC9F,GAAAA,CAACiF,CAAAA,CAAA,CACA,GAAI/B,CAAAA,EAAM,CACV,KAAA,CAAOrB,CAAAA,CACP,WAAYE,CAAAA,CACZ,SAAA,CAAWC,CAAAA,CAAYD,CAAAA,CAAa,OACpC,QAAA,CAAUb,CAAAA,CACV,QAAA,CAAUG,CAAAA,CACV,QAAA,CAAUJ,GAAAA,CACV,WAAA,CAAa+C,CAAAA,CACb,GAAI,CAAE,KAAA,CAAAG,CAAM,CAAA,CAEX,SAAA8B,CAAAA,EAAU,CACZ,CAEF,KAEOC,EAAAA,CAAQf","file":"chunk-BZZXLG3M.modern.mjs","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSvgIcon } from \"@mui/material\";\n\nexport const SelectDropdownIcon = createSvgIcon(\n\t<path\n\t\td=\"M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563\n\tl5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851\n\tC16.637,8.957,16.387,8.957,16.233,9.111z\"\n\t/>,\n\t\"SelectDropDownIcon\"\n);\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"\n}), 'Check');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'ErrorOutlineOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8\"\n}), 'Block');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z\"\n}), 'CancelOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'CheckCircleOutline');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"\n}), 'InfoOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'MoreHoriz');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z\"\n}), 'ReportProblemOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z\"\n}), 'Tune');","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, Checkbox, FormHelperText, useTheme, FormLabel } from \"@mui/material\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport ErrorOutlineOutlinedIcon from \"@mui/icons-material/ErrorOutlineOutlined\";\nimport React, { useEffect, useState } from \"react\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport SolaceHTMLAttributeProps from \"../SolaceHTMLAttributesProps\";\nimport clsx from \"clsx\";\nimport { Remove } from \"@mui/icons-material\";\n\nexport interface SolaceCheckboxChangeEvent {\n\tname: string;\n\tvalue: boolean;\n}\n\nexport interface SolaceCheckBoxProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `checkbox` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\tsubTextProps?: { label?: string | JSX.Element; light?: boolean };\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to check or uncheck the `checkbox`\n\t */\n\tchecked?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `checkbox` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `checkbox`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `checkbox` is changed\n\t */\n\tonChange?: (event: SolaceCheckboxChangeEvent) => void;\n\t/**\n\t * Boolean flag to set the checkbox to indeterminate\n\t */\n\tindeterminate?: boolean;\n\t/**\n\t * Boolean flag to set the checkbox to readOnly\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to allow font weight of medium (default to regular) for label\n\t */\n\tboldLabel?: boolean;\n\t/**\n\t * Display the label with a larger font\n\t */\n\tlargeLabel?: boolean;\n}\n\ninterface CheckBoxLabelProps {\n\tid: string;\n\thtmlForId?: string;\n\trequired: boolean;\n\tdisabled: boolean;\n\tbold: boolean;\n\tlarge: boolean;\n\treadOnly: boolean;\n\tchildren?: JSX.Element | string;\n}\n\nfunction CheckBoxLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\tbold = false,\n\tlarge = false,\n\treadOnly = false,\n\tchildren\n}: CheckBoxLabelProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{ display: \"block\", fontSize: large ? theme.typography.subtitle1 : theme.typography.body1 }}\n\t\t\tclassName={clsx({ \"bold-label\": bold, \"check-box-label\": true, readOnly: readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nconst SolaceCheckBox = ({\n\tid,\n\tname,\n\tlabel,\n\ttitle,\n\thelperText,\n\thasErrors = false,\n\tchecked = false,\n\trequired = false,\n\tdisabled = false,\n\tindeterminate = false,\n\treadOnly = false,\n\tboldLabel = false,\n\tlargeLabel = false,\n\tsubTextProps = { label: \"\", light: false },\n\tonChange,\n\tdataQa,\n\tdataTags\n}: SolaceCheckBoxProps): JSX.Element => {\n\tconst theme = useTheme();\n\tconst [selected, setSelected] = useState(checked);\n\n\tuseEffect(() => {\n\t\tsetSelected(checked);\n\t}, [checked]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelected(event.target.checked);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.checked\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getHelperText = () => (\n\t\t<Box display=\"flex\">\n\t\t\t{hasErrors && <ErrorOutlineOutlinedIcon sx={{ marginRight: theme.spacing() }} />}\n\t\t\t{helperText}\n\t\t</Box>\n\t);\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\t// No need to get custom icons as we're using MUI's built-in icons\n\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Box display=\"grid\" gridTemplateColumns=\"auto 1fr\" gridTemplateRows=\"auto auto\" alignItems=\"center\">\n\t\t\t\t<Checkbox\n\t\t\t\t\tid={`${getId()}-checkbox`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tindeterminate={indeterminate}\n\t\t\t\t\tinputProps={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\t\"data-tags\": dataTags\n\t\t\t\t\t\t} as SolaceHTMLAttributeProps\n\t\t\t\t\t}\n\t\t\t\t\ttitle={title}\n\t\t\t\t\tdisabled={disabled || readOnly}\n\t\t\t\t\tclassName={clsx({ readOnly: readOnly })}\n\t\t\t\t\tdisableRipple\n\t\t\t\t\tchecked={selected}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tcheckedIcon={<CheckIcon />}\n\t\t\t\t\tindeterminateIcon={<Remove />}\n\t\t\t\t/>\n\t\t\t\t{label && (\n\t\t\t\t\t<Box>\n\t\t\t\t\t\t<CheckBoxLabel\n\t\t\t\t\t\t\tid={`${getId()}-label`}\n\t\t\t\t\t\t\thtmlForId={`${getId()}-checkbox`}\n\t\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tbold={boldLabel || (!!subTextProps.label && !subTextProps.light)}\n\t\t\t\t\t\t\tlarge={largeLabel}\n\t\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</CheckBoxLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{subTextProps.label && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"2\">\n\t\t\t\t\t\t<FormLabel\n\t\t\t\t\t\t\tid={`${id}-subtext`}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tclassName={clsx({ \"light-sub-text\": subTextProps.light, \"check-box-label\": true })}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{subTextProps.label}\n\t\t\t\t\t\t</FormLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{helperText && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"3\">\n\t\t\t\t\t\t<FormHelperText error={hasErrors} component=\"div\" sx={{ marginTop: theme.spacing(0.25) }}>\n\t\t\t\t\t\t\t{getHelperText()}\n\t\t\t\t\t\t</FormHelperText>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Box>\n\t\t</React.Fragment>\n\t);\n};\n\nexport default SolaceCheckBox;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Typography, useTheme } from \"@mui/material\";\nimport { SolaceTypographyProps } from \"../types\";\n\nexport default function SolaceTypography(props: SolaceTypographyProps) {\n\tconst theme = useTheme();\n\n\tconst colorMap = {\n\t\tinfo: theme.palette.ux.info.w100,\n\t\terror: theme.palette.ux.error.w100,\n\t\twarning: theme.palette.ux.warning.w100,\n\t\tsuccess: theme.palette.ux.success.w100\n\t} as const;\n\n\tconst { variant = \"body1\", children, color, ...rest } = props;\n\n\t// Helper function to safely get color from colorMap\n\tconst getCustomColor = (color: string): string | undefined => {\n\t\treturn colorMap[color as keyof typeof colorMap];\n\t};\n\n\treturn (\n\t\t<Typography\n\t\t\tvariant={variant}\n\t\t\tcolor={color && typeof color === \"string\" ? getCustomColor(color) || color : \"textPrimary\"}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Typography>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MenuProps, PopoverOrigin, TextField, useTheme, Collapse } from \"@mui/material\";\nimport React, { ReactNode, useEffect, useState } from \"react\";\nimport { SelectDropdownIcon } from \"../../resources/icons/SelectIcons\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport clsx from \"clsx\";\nexport interface SolaceSelectChangeEvent {\n\tname: string;\n\tvalue: string;\n}\nexport interface SolaceSelectProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceSelectChangeEvent) => void;\n\t/**\n\t * Callback function to return option display value based on selected option value\n\t */\n\tgetOptionDisplayValue?: (value: unknown) => ReactNode;\n\t/**\n\t * An array of MenuItems to render as the select options\n\t */\n\tchildren: Array<JSX.Element>;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * Custom maxHeight of the component.\n\t */\n\tmaxHeight?: string;\n\t/**\n\t * Boolean flag to show the select option that has empty value\n\t */\n\n\tdisplayEmpty?: boolean;\n\t/**\n\t * Boolean flag to show the select options\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback function to trigger whenever the dropdown opens\n\t */\n\tonOpen?: () => void;\n\t/**\n\t * Callback function to trigger whenever the dropdown closes\n\t */\n\tonClose?: () => void;\n\t/**\n\t * Custom anchorOrigin of the menu\n\t */\n\tmenuAnchorOrigin?: PopoverOrigin;\n\t/**\n\t * Custom transformOrigin of the menu\n\t */\n\tmenuTransformOrigin?: PopoverOrigin;\n}\n\nfunction SolaceSelect({\n\tid,\n\tname,\n\tlabel,\n\tvalue = \"\",\n\thelperText,\n\ttitle,\n\thasErrors = false,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tinlineLabel = false,\n\tdisplayEmpty = false,\n\tonChange,\n\tgetOptionDisplayValue,\n\tdataQa,\n\tdataTags,\n\tchildren,\n\twidth,\n\tmaxHeight,\n\topen,\n\tonOpen,\n\tonClose,\n\tmenuAnchorOrigin,\n\tmenuTransformOrigin\n}: SolaceSelectProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst [selectedValue, setSelectedValue] = useState(value);\n\n\tuseEffect(() => {\n\t\tsetSelectedValue(value);\n\t}, [value]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelectedValue(event.target.value);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst getMenuProps = () => {\n\t\tconst menuProps: Partial<MenuProps> = {\n\t\t\tsx: { maxHeight: maxHeight, width: width }\n\t\t};\n\t\tif (menuAnchorOrigin) {\n\t\t\tmenuProps.anchorOrigin = menuAnchorOrigin;\n\t\t}\n\t\tif (menuTransformOrigin) {\n\t\t\tmenuProps.transformOrigin = menuTransformOrigin;\n\t\t}\n\t\treturn menuProps;\n\t};\n\n\tconst select = () => (\n\t\t<TextField\n\t\t\tid={getId()}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-select-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"select\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\tselect\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tclassName: clsx({ readOnlySelect: readOnly, emptySelect: !selectedValue }),\n\t\t\t\tdisabled: disabled && !readOnly,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\trequired: required\n\t\t\t}}\n\t\t\ttitle={title}\n\t\t\tautoComplete=\"off\"\n\t\t\trequired={required}\n\t\t\tdisabled={disabled || readOnly}\n\t\t\terror={hasErrors}\n\t\t\tmargin=\"dense\"\n\t\t\tvalue={selectedValue}\n\t\t\tonChange={handleChange}\n\t\t\tSelectProps={{\n\t\t\t\tIconComponent: SelectDropdownIcon,\n\t\t\t\tMenuProps: {\n\t\t\t\t\tTransitionComponent: Collapse,\n\t\t\t\t\t...getMenuProps()\n\t\t\t\t},\n\n\t\t\t\trenderValue: getOptionDisplayValue\n\t\t\t\t\t? (value: unknown) => {\n\t\t\t\t\t\t\treturn getOptionDisplayValue(value);\n\t\t\t\t\t }\n\t\t\t\t\t: undefined,\n\t\t\t\tdisplayEmpty: displayEmpty,\n\t\t\t\tonOpen: onOpen,\n\t\t\t\tonClose: onClose,\n\t\t\t\topen: open\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</TextField>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{select()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceSelect;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\n\nexport interface SolaceTextAreaChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextAreaProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The minimum numbers of rows the text area can shrink to\n\t */\n\tminRows?: number;\n\t/**\n\t * The maximum number of rows the text area can expand to (overflow scrollbar will render if necessary)\n\t */\n\tmaxRows?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextAreaChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * both: The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically.\n\t * horizontal: The element displays a mechanism for allowing the user to resize it in the horizontal direction.\n\t * vertical: The element displays a mechanism for allowing the user to resize it in the vertical direction.\n\t */\n\tresizable?: \"both\" | \"horizontal\" | \"vertical\";\n}\n\nfunction SolaceTextArea({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\tminRows = 4,\n\tmaxRows = 4,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\trequired = false,\n\tinlineLabel = false,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\tresizable,\n\twidth\n}: SolaceTextAreaProps) {\n\tconst theme = useTheme();\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\tlet generatedId = id ? id : name;\n\t\tif (resizable) {\n\t\t\tgeneratedId = `${generatedId}-resizable-${resizable}`;\n\t\t}\n\t\treturn generatedId;\n\t};\n\n\tconst textField = () => (\n\t\t<TextField\n\t\t\tid={`${getId()}`}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"textbox\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\ttype=\"text\"\n\t\t\tautoComplete=\"off\"\n\t\t\tautoFocus={autoFocus}\n\t\t\terror={hasErrors}\n\t\t\tminRows={minRows}\n\t\t\tmaxRows={maxRows}\n\t\t\tmultiline={true}\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tdisabled: disabled,\n\t\t\t\trequired: required,\n\t\t\t\tclassName: inlineLabel ? \"inline-label\" : \"\"\n\t\t\t}}\n\t\t\tmargin=\"dense\"\n\t\t\tplaceholder={placeholder}\n\t\t\tvalue={value}\n\t\t\tonChange={handleChange}\n\t\t\tonBlur={onBlur}\n\t\t\tonKeyDown={onKeyDown}\n\t\t\tonKeyUp={onKeyUp}\n\t\t\tonFocus={onFocus}\n\t\t\tfullWidth={fullWidth}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextArea;\n"]}
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkSWGQVSXQ_js=require('./chunk-SWGQVSXQ.js'),chunkYQTPPT5K_js=require('./chunk-YQTPPT5K.js'),chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),jsxRuntime=require('react/jsx-runtime');function ie({id:e,htmlForId:n,required:i=false,disabled:t=false,readOnly:l=false,noWrap:s=false,children:p}){return jsxRuntime.jsx(chunkV45EFIXB_js.le,{id:e,htmlFor:n,required:i,disabled:t,sx:{display:"block",whiteSpace:s?"nowrap":"normal"},className:chunkV45EFIXB_js.D({"read-only":l}),children:p})}var k=ie;var q={maxLength:255,menuItemHeight:38,menuItemHeightMultiline:58,GridListItemHeight:53,DEFAULT_NUM_OF_MENUITEM_DISPLAYED:9,closeButtonAriaLabel:"Close",actionMenuAriaLabel:"More Actions",clearButtonAriaLabel:"Clear"};var ae=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="inlineLabel"})(({theme:e,inlineLabel:n})=>({display:"flex",flexDirection:"column",flexGrow:1,maxWidth:"100%",paddingLeft:n?"36px":"0px","&.hasWarnings":{"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline":{borderColor:`${e.palette.ux.warning.w100}`}}}));function de({id:e,label:n,stackLabel:i,large:t,bold:l,required:s,disabled:p,readOnly:f,inlineLabel:u,centerInlineLabel:c,helperText:b,errorText:r,warningText:m,children:g,sx:h}){return jsxRuntime.jsxs(chunkV45EFIXB_js.Ic,{display:"flex",flexDirection:u?"row":"column",justifyContent:"space-between",alignItems:c?"flex-start":"",sx:h,children:[i&&n&&jsxRuntime.jsx("div",{style:{marginTop:c?"5.5px":""},children:jsxRuntime.jsx(chunkYQTPPT5K_js.a,{id:`${e}-label`,htmlForId:`${e}`,required:s,disabled:p,large:t,bold:l,readOnly:f,children:n})}),!i&&n&&jsxRuntime.jsx("div",{style:{marginTop:c?"5.5px":""},children:jsxRuntime.jsx(k,{id:`${e}-label`,htmlForId:`${e}`,required:s,disabled:p,readOnly:f,noWrap:u,children:n})}),jsxRuntime.jsxs(ae,{inlineLabel:u,className:m?"hasWarnings":"",children:[g,b&&!r&&!m&&jsxRuntime.jsx(chunkSWGQVSXQ_js.c,{children:b}),m&&!r&&jsxRuntime.jsx(chunkSWGQVSXQ_js.g,{children:m}),r&&jsxRuntime.jsx(chunkSWGQVSXQ_js.e,{children:r})]})]})}var N=de;function se({id:e,name:n,label:i,value:t,helperText:l,placeholder:s,maxLength:p=q.maxLength,type:f="text",size:u=50,title:c,autoFocus:b=false,hasErrors:r=false,hasWarnings:m=false,required:g=false,inlineLabel:h=false,customIcon:o,disabled:F=false,readOnly:x=false,onChange:T,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,dataQa:E,dataTags:z,fullWidth:G=false,width:Y,endAdornment:I,minWidth:V,inputRef:Z}){let Q=chunkV45EFIXB_js.ua(),P=o&&o.position==="end"?jsxRuntime.jsx(chunkV45EFIXB_js.Gb,{onClick:o.handleClick,children:o.icon}):null,j=P||I?{endAdornment:jsxRuntime.jsxs(chunkV45EFIXB_js.Ie,{position:"end",children:[I,P]})}:{},ee=o&&o.position==="start"?{startAdornment:jsxRuntime.jsx(chunkV45EFIXB_js.Ie,{position:o.position,children:jsxRuntime.jsx(chunkV45EFIXB_js.Gb,{onClick:o.handleClick,children:o.icon})})}:{},ne={sx:{height:Q.spacing(4)},disabled:F,required:g},te=L=>{T&&T({name:n,value:L.target.value});},S=()=>e||n,oe=chunkV45EFIXB_js.wa("div")(({theme:L})=>({...L.mixins.formComponent_ReadOnlyToolTipContainer.container})),le=()=>x?jsxRuntime.jsx(oe,{children:jsxRuntime.jsx(chunkSWGQVSXQ_js.b,{variant:"overflow",title:typeof t<"u"&&t!==null?t+"":"",dataQa:E,children:typeof t<"u"&&t!==null?t+"":""})}):jsxRuntime.jsx(chunkV45EFIXB_js._h,{id:`${S()}`,name:n,inputProps:{maxLength:p,size:u,"data-qa":E,"data-tags":z,"data-testid":E,"data-lpignore":true,readOnly:x,"aria-describedby":l?`${S()}-textfield-helper-text`:"","aria-labelledby":i?`${S()}-label`:"","aria-readonly":x,role:"textbox",title:c,min:0},inputRef:Z,type:f,error:r,autoComplete:`dummy-field-${n}`,autoFocus:b,InputProps:{...ne,...j,...ee},margin:"dense",placeholder:s,value:t,onChange:te,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,fullWidth:G,sx:{minWidth:V}});return jsxRuntime.jsx(N,{id:S(),label:i,helperText:l,errorText:r?l:void 0,warningText:m?l:void 0,disabled:F,readOnly:x,required:g,inlineLabel:h,centerInlineLabel:h,sx:{width:Y},children:le()})}var Me=se;exports.a=k;exports.b=N;exports.c=q;exports.d=Me;//# sourceMappingURL=chunk-SXQRCXMP.js.map
2
- //# sourceMappingURL=chunk-SXQRCXMP.js.map
1
+ 'use strict';var chunkSWGQVSXQ_js=require('./chunk-SWGQVSXQ.js'),chunkYQTPPT5K_js=require('./chunk-YQTPPT5K.js'),chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),jsxRuntime=require('react/jsx-runtime');function ie({id:e,htmlForId:n,required:i=false,disabled:t=false,readOnly:l=false,noWrap:s=false,children:p}){return jsxRuntime.jsx(chunkV45EFIXB_js.le,{id:e,htmlFor:n,required:i,disabled:t,sx:{display:"block",whiteSpace:s?"nowrap":"normal"},className:chunkV45EFIXB_js.D({"read-only":l}),children:p})}var $=ie;var q={maxLength:255,menuItemHeight:38,menuItemHeightMultiline:58,GridListItemHeight:53,DEFAULT_NUM_OF_MENUITEM_DISPLAYED:9,closeButtonAriaLabel:"Close",actionMenuAriaLabel:"More Actions",clearButtonAriaLabel:"Clear"};var ae=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="inlineLabel"})(({theme:e,inlineLabel:n})=>({display:"flex",flexDirection:"column",flexGrow:1,maxWidth:"100%",paddingLeft:n?"36px":"0px","&.hasWarnings":{"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline":{borderColor:`${e.palette.ux.warning.w100}`}}}));function de({id:e,label:n,stackLabel:i,large:t,bold:l,required:s,disabled:p,readOnly:f,inlineLabel:c,centerInlineLabel:u,helperText:b,errorText:r,warningText:m,children:g,sx:h}){return jsxRuntime.jsxs(chunkV45EFIXB_js.Ic,{display:"flex",flexDirection:c?"row":"column",justifyContent:"space-between",alignItems:u?"flex-start":"",sx:h,children:[i&&n&&jsxRuntime.jsx("div",{style:{marginTop:u?"5.5px":""},children:jsxRuntime.jsx(chunkYQTPPT5K_js.a,{id:`${e}-label`,htmlForId:`${e}`,required:s,disabled:p,large:t,bold:l,readOnly:f,children:n})}),!i&&n&&jsxRuntime.jsx("div",{style:{marginTop:u?"5.5px":""},children:jsxRuntime.jsx($,{id:`${e}-label`,htmlForId:`${e}`,required:s,disabled:p,readOnly:f,noWrap:c,children:n})}),jsxRuntime.jsxs(ae,{inlineLabel:c,className:m?"hasWarnings":"",children:[g,b&&!r&&!m&&jsxRuntime.jsx(chunkSWGQVSXQ_js.c,{children:b}),m&&!r&&jsxRuntime.jsx(chunkSWGQVSXQ_js.g,{children:m}),r&&jsxRuntime.jsx(chunkSWGQVSXQ_js.e,{children:r})]})]})}var N=de;function se({id:e,name:n,label:i,value:t,helperText:l,placeholder:s,maxLength:p=q.maxLength,type:f="text",size:c=50,title:u,autoFocus:b=false,hasErrors:r=false,hasWarnings:m=false,required:g=false,inlineLabel:h=false,customIcon:o,disabled:T=false,readOnly:x=false,onChange:y,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,dataQa:E,dataTags:z,fullWidth:G=false,width:Y,endAdornment:I,minWidth:V,inputRef:Z}){let Q=chunkV45EFIXB_js.ua(),P=o&&o.position==="end"?jsxRuntime.jsx(chunkV45EFIXB_js.Gb,{onClick:o.handleClick,children:o.icon}):null,j=P||I?{endAdornment:jsxRuntime.jsxs(chunkV45EFIXB_js.Ie,{position:"end",children:[I,P]})}:{},ee=o&&o.position==="start"?{startAdornment:jsxRuntime.jsx(chunkV45EFIXB_js.Ie,{position:o.position,children:jsxRuntime.jsx(chunkV45EFIXB_js.Gb,{onClick:o.handleClick,children:o.icon})})}:{},ne={sx:{height:Q.spacing(4)},disabled:T,required:g},te=L=>{y&&y({name:n,value:L.target.value});},S=()=>e||n,oe=chunkV45EFIXB_js.wa("div")(({theme:L})=>({...L.mixins.formComponent_ReadOnlyToolTipContainer.container})),le=()=>x?jsxRuntime.jsx(oe,{children:jsxRuntime.jsx(chunkSWGQVSXQ_js.b,{variant:"overflow",title:typeof t<"u"&&t!==null?t+"":"",dataQa:E,children:typeof t<"u"&&t!==null?t+"":""})}):jsxRuntime.jsx(chunkV45EFIXB_js._h,{id:`${S()}`,name:n,inputProps:{maxLength:p,size:c,"data-qa":E,"data-tags":z,"data-testid":E,"data-lpignore":true,readOnly:x,"aria-describedby":l?`${S()}-textfield-helper-text`:"","aria-labelledby":i?`${S()}-label`:"","aria-readonly":x,title:u,min:0},inputRef:Z,type:f,error:r,autoComplete:"off",autoFocus:b,InputProps:{...ne,...j,...ee},margin:"dense",placeholder:s,value:t,onChange:te,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,fullWidth:G,sx:{minWidth:V}});return jsxRuntime.jsx(N,{id:S(),label:i,helperText:l,errorText:r?l:void 0,warningText:m?l:void 0,disabled:T,readOnly:x,required:g,inlineLabel:h,centerInlineLabel:h,sx:{width:Y},children:le()})}var Me=se;exports.a=$;exports.b=N;exports.c=q;exports.d=Me;//# sourceMappingURL=chunk-JDGMAWN5.js.map
2
+ //# sourceMappingURL=chunk-JDGMAWN5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/SolaceLabel.tsx","../src/constants.ts","../src/components/form/FormChildBase.tsx","../src/components/form/SolaceTextField.tsx"],"names":["SolaceLabel","id","htmlForId","required","disabled","readOnly","noWrap","children","jsx","FormLabel_default","clsx_default","SolaceLabel_default","constants","ChildrenContainer","styled_default","prop","theme","inlineLabel","FormChildBase","label","stackLabel","large","bold","centerInlineLabel","helperText","errorText","warningText","sx","jsxs","Box_default","SolaceStackLabel_default","HelperText_default","WarningText_default","ErrorText_default","FormChildBase_default","SolaceTextField","name","value","placeholder","maxLength","type","size","title","autoFocus","hasErrors","hasWarnings","customIcon","onChange","onBlur","onKeyDown","onKeyUp","onFocus","dataQa","dataTags","fullWidth","width","endAdornment","minWidth","inputRef","useTheme","endIconProps","IconButton_default","inputEndAdornment","InputAdornment_default","inputStartAdornment","defaultInputProps","handleChange","event","getId","TooltipContainer","textField","SolaceToolTip_default","TextField_default","SolaceTextField_default"],"mappings":"yMAkDA,SAASA,EAAAA,CAAY,CACpB,GAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,EAAW,KAAA,CACX,QAAA,CAAAC,CAAAA,C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b,KAAA,CAAOD,EACP,QAAA,CAAU6B,EAAAA,CACV,MAAA,CAAQlB,CAAAA,CACR,UAAWC,CAAAA,CACX,OAAA,CAASC,CAAAA,CACT,OAAA,CAASC,EACT,SAAA,CAAWG,CAAAA,CACX,GAAI,CAAE,QAAA,CAAUG,CAAS,CAAA,CAC1B,CAAA,CAKH,OACCjD,cAAAA,CAAC0B,EAAA,CACA,EAAA,CAAIkC,CAAAA,EAAM,CACV,MAAOjD,CAAAA,CACP,UAAA,CAAYK,CAAAA,CACZ,SAAA,CAAWoB,EAAYpB,CAAAA,CAAa,MAAA,CACpC,YAAaqB,CAAAA,CAAcrB,CAAAA,CAAa,OACxC,QAAA,CAAUpB,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,SAAUF,CAAAA,CACV,WAAA,CAAac,CAAAA,CACb,iBAAA,CAAmBA,EACnB,EAAA,CAAI,CAAE,KAAA,CAAAsC,CAAM,EAEX,QAAA,CAAAe,EAAAA,GACF,CAEF,KAEOG,EAAAA,CAAQtC","file":"chunk-JDGMAWN5.js","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel } from \"@mui/material\";\nimport clsx from \"clsx\";\n\nexport interface SolaceLabelProps {\n\t/**\n\t * Unique identifier of the label\n\t */\n\tid: string;\n\t/**\n\t * identifier used for specifying which form element this label is bound to\n\t */\n\thtmlForId?: string;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag for readOnly labels, changes font color to 55% black\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to suppress line breaks (text wrapping) within the label\n\t */\n\tnoWrap?: boolean;\n\t/**\n\t *\n\t */\n\tchildren?: React.ReactNode;\n}\n\nfunction SolaceLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tnoWrap = false,\n\tchildren\n}: SolaceLabelProps): JSX.Element {\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{\n\t\t\t\tdisplay: \"block\",\n\t\t\t\twhiteSpace: noWrap ? \"nowrap\" : \"normal\"\n\t\t\t}}\n\t\t\tclassName={clsx({ \"read-only\": readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default SolaceLabel;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const constants = {\n\tmaxLength: 255,\n\tmenuItemHeight: 38,\n\tmenuItemHeightMultiline: 58,\n\tGridListItemHeight: 53,\n\tDEFAULT_NUM_OF_MENUITEM_DISPLAYED: 9,\n\tcloseButtonAriaLabel: \"Close\",\n\tactionMenuAriaLabel: \"More Actions\",\n\tclearButtonAriaLabel: \"Clear\"\n};\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, styled } from \"@mui/material\";\nimport SolaceLabel from \"./SolaceLabel\";\nimport SolaceStackLabel from \"./SolaceStackLabel\";\nimport HelperText from \"./HelperText\";\nimport ErrorText from \"./ErrorText\";\nimport WarningText from \"./WarningText\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { SX } from \"../../types/sx\";\n\ninterface ChildrenContainerProps {\n\tinlineLabel: boolean;\n}\n\nconst ChildrenContainer = styled(\"div\", {\n\tshouldForwardProp: (prop) => prop !== \"inlineLabel\"\n})<ChildrenContainerProps>(({ theme, inlineLabel }) => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tflexGrow: 1,\n\tmaxWidth: \"100%\",\n\tpaddingLeft: inlineLabel ? \"36px\" : \"0px\",\n\t\"&.hasWarnings\": {\n\t\t\"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline\": {\n\t\t\tborderColor: `${theme.palette.ux.warning.w100}`\n\t\t}\n\t}\n}));\n\nexport interface FormChildBaseProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * Boolean flag to allow labels to be rendered as SolaceStackLabel component, which provides more props, such as large, bold\n\t */\n\tstackLabel?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with larger font size of 16px (default to 14px)\n\t */\n\tlarge?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with font weight of medium (default to regular)\n\t */\n\tbold?: boolean;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanatory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in error state\n\t */\n\terrorText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in warning state\n\t */\n\twarningText?: string | JSX.Element;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly: boolean;\n\t/**\n\t * Display the label horizontally\n\t */\n\tinlineLabel: boolean;\n\t/**\n\t * Center align the inline label, this will e used only for single line field label\n\t */\n\tcenterInlineLabel?: boolean;\n\n\tchildren: JSX.Element;\n\t/**\n\t * The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.\n\t */\n\tsx?: SX;\n}\n\nfunction FormChildBase({\n\tid,\n\tlabel,\n\tstackLabel,\n\tlarge,\n\tbold,\n\trequired,\n\tdisabled,\n\treadOnly,\n\tinlineLabel,\n\tcenterInlineLabel,\n\thelperText,\n\terrorText,\n\twarningText,\n\tchildren,\n\tsx\n}: FormChildBaseProps): JSX.Element {\n\treturn (\n\t\t<Box\n\t\t\tdisplay=\"flex\"\n\t\t\tflexDirection={inlineLabel ? \"row\" : \"column\"}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\talignItems={centerInlineLabel ? \"flex-start\" : \"\"}\n\t\t\tsx={sx}\n\t\t>\n\t\t\t{stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceStackLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tlarge={large}\n\t\t\t\t\t\tbold={bold}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceStackLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{!stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\tnoWrap={inlineLabel}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<ChildrenContainer inlineLabel={inlineLabel} className={warningText ? \"hasWarnings\" : \"\"}>\n\t\t\t\t{children}\n\t\t\t\t{helperText && !errorText && !warningText && <HelperText>{helperText}</HelperText>}\n\t\t\t\t{warningText && !errorText && <WarningText>{warningText}</WarningText>}\n\t\t\t\t{errorText && <ErrorText>{errorText}</ErrorText>}\n\t\t\t</ChildrenContainer>\n\t\t</Box>\n\t);\n}\n\nexport default FormChildBase;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InputAdornment, IconButton, TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport SolaceTooltip from \"../SolaceToolTip\";\nimport { styled } from \"@mui/material\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nexport interface SolaceTextFieldChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextFieldProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string | number;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The type of `input` element to render\n\t */\n\ttype?: \"text\" | \"number\" | \"password\" | \"email\" | \"url\";\n\t/**\n\t * The size/width of the `input` measured in characters\n\t */\n\tsize?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in warn state\n\t */\n\thasWarnings?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Allows custom icon to be set at the beginning/end of the field.\n\t */\n\tcustomIcon?: {\n\t\ticon: React.ReactNode;\n\t\tposition: \"end\" | \"start\";\n\t\thandleClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n\t};\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextFieldChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * optional prop to pass an array of icon or button at the end of textfield\n\t */\n\tendAdornment?: (React.ReactNode | JSX.Element)[];\n\t/**\n\t * minimum width of the component\n\t */\n\tminWidth?: string;\n\t/**\n\t * pass a ref to the input element.\n\t */\n\tinputRef?: (input: HTMLInputElement) => void;\n}\n\nfunction SolaceTextField({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\ttype = \"text\",\n\tsize = 50,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\thasWarnings = false,\n\trequired = false,\n\tinlineLabel = false,\n\tcustomIcon,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\twidth,\n\tendAdornment,\n\tminWidth,\n\tinputRef\n}: SolaceTextFieldProps): JSX.Element {\n\tconst theme = useTheme();\n\n\tconst endIconProps =\n\t\tcustomIcon && customIcon.position === \"end\" ? (\n\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t) : null;\n\n\tconst inputEndAdornment =\n\t\tendIconProps || endAdornment\n\t\t\t? {\n\t\t\t\t\tendAdornment: (\n\t\t\t\t\t\t<InputAdornment position=\"end\">\n\t\t\t\t\t\t\t{endAdornment}\n\t\t\t\t\t\t\t{endIconProps}\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t: {};\n\tconst inputStartAdornment =\n\t\tcustomIcon && customIcon.position === \"start\"\n\t\t\t? {\n\t\t\t\t\tstartAdornment: (\n\t\t\t\t\t\t<InputAdornment position={customIcon.position}>\n\t\t\t\t\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t: {};\n\n\tconst defaultInputProps = {\n\t\tsx: { height: theme.spacing(4) },\n\t\tdisabled: disabled,\n\t\trequired: required\n\t};\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst TooltipContainer = styled(\"div\")(({ theme }) => ({\n\t\t...(theme.mixins.formComponent_ReadOnlyToolTipContainer.container as CSSProperties)\n\t}));\n\n\tconst textField = () => {\n\t\t/* read-only behaviour */\n\t\tif (readOnly) {\n\t\t\treturn (\n\t\t\t\t<TooltipContainer>\n\t\t\t\t\t<SolaceTooltip\n\t\t\t\t\t\tvariant=\"overflow\"\n\t\t\t\t\t\ttitle={typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t\tdataQa={dataQa}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t</SolaceTooltip>\n\t\t\t\t</TooltipContainer>\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t<TextField\n\t\t\t\t\tid={`${getId()}`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tinputProps={{\n\t\t\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\t\tsize: size,\n\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\t\t\"data-testid\": dataQa,\n\t\t\t\t\t\t\"data-lpignore\": true,\n\t\t\t\t\t\treadOnly: readOnly,\n\t\t\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t\tmin: 0\n\t\t\t\t\t}}\n\t\t\t\t\tinputRef={inputRef}\n\t\t\t\t\ttype={type}\n\t\t\t\t\terror={hasErrors}\n\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\tautoFocus={autoFocus}\n\t\t\t\t\tInputProps={{ ...defaultInputProps, ...inputEndAdornment, ...inputStartAdornment }}\n\t\t\t\t\tmargin=\"dense\"\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tfullWidth={fullWidth}\n\t\t\t\t\tsx={{ minWidth: minWidth }}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\twarningText={hasWarnings ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextField;\n"]}
@@ -0,0 +1,4 @@
1
+ 'use strict';var chunkJDGMAWN5_js=require('./chunk-JDGMAWN5.js'),chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),jsxRuntime=require('react/jsx-runtime'),ne=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ne__default=/*#__PURE__*/_interopDefault(ne);var j=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:`M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563
2
+ l5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851
3
+ C16.637,8.957,16.387,8.957,16.233,9.111z`}),"SelectDropDownIcon");var q=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var J=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutlineOutlined");var We=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var Ie=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var Ke=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Xe=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");var oo=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");var fo=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var V=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove");var xo=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"ReportProblemOutlined");var ho=chunkV45EFIXB_js.Oa(jsxRuntime.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune");function ie({id:f,htmlForId:o,required:d=false,disabled:p=false,bold:t=false,large:r=false,readOnly:l=false,children:n}){let a=chunkV45EFIXB_js.ua();return jsxRuntime.jsx(chunkV45EFIXB_js.le,{id:f,htmlFor:o,required:d,disabled:p,sx:{display:"block",fontSize:r?a.typography.subtitle1:a.typography.body1},className:chunkV45EFIXB_js.D({"bold-label":t,"check-box-label":true,readOnly:l}),children:n})}var Te=({id:f,name:o,label:d,title:p,helperText:t,hasErrors:r=false,checked:l=false,required:n=false,disabled:a=false,indeterminate:m=false,readOnly:S=false,boldLabel:A=false,largeLabel:c=false,subTextProps:s={label:"",light:false},onChange:w,dataQa:R,dataTags:y})=>{let O=chunkV45EFIXB_js.ua(),[B,P]=ne.useState(l);ne.useEffect(()=>{P(l);},[l]);let k=g=>{P(g.target.checked),w&&w({name:o,value:g.target.checked});},D=()=>jsxRuntime.jsxs(chunkV45EFIXB_js.Ic,{display:"flex",children:[r&&jsxRuntime.jsx(J,{sx:{marginRight:O.spacing()}}),t]}),x=()=>f||o;return jsxRuntime.jsx(ne__default.default.Fragment,{children:jsxRuntime.jsxs(chunkV45EFIXB_js.Ic,{display:"grid",gridTemplateColumns:"auto 1fr",gridTemplateRows:"auto auto",alignItems:"center",children:[jsxRuntime.jsx(chunkV45EFIXB_js.md,{id:`${x()}-checkbox`,name:o,indeterminate:m,inputProps:{"aria-labelledby":d?`${x()}-label`:"","data-qa":R,"data-tags":y},title:p,disabled:a||S,className:chunkV45EFIXB_js.D({readOnly:S}),disableRipple:true,checked:B,onChange:k,checkedIcon:jsxRuntime.jsx(q,{}),indeterminateIcon:jsxRuntime.jsx(V,{})}),d&&jsxRuntime.jsx(chunkV45EFIXB_js.Ic,{children:jsxRuntime.jsx(ie,{id:`${x()}-label`,htmlForId:`${x()}-checkbox`,required:n,disabled:a,bold:A||!!s.label&&!s.light,large:c,readOnly:S,children:d})}),s.label&&jsxRuntime.jsx(chunkV45EFIXB_js.Ic,{gridColumn:"2",gridRow:"2",children:jsxRuntime.jsx(chunkV45EFIXB_js.le,{id:`${f}-subtext`,disabled:a,className:chunkV45EFIXB_js.D({"light-sub-text":s.light,"check-box-label":true}),children:s.label})}),t&&jsxRuntime.jsx(chunkV45EFIXB_js.Ic,{gridColumn:"2",gridRow:"3",children:jsxRuntime.jsx(chunkV45EFIXB_js.he,{error:r,component:"div",sx:{marginTop:O.spacing(.25)},children:D()})})]})})},bo=Te;function Se(f){let o=chunkV45EFIXB_js.ua(),d={info:o.palette.ux.info.w100,error:o.palette.ux.error.w100,warning:o.palette.ux.warning.w100,success:o.palette.ux.success.w100},{variant:p="body1",children:t,color:r,...l}=f;return jsxRuntime.jsx(chunkV45EFIXB_js.Kb,{variant:p,color:r&&typeof r=="string"?(a=>d[a])(r)||r:"textPrimary",...l,children:t})}function Re({id:f,name:o,label:d,value:p="",helperText:t,title:r,hasErrors:l=false,required:n=false,disabled:a=false,readOnly:m=false,inlineLabel:S=false,displayEmpty:A=false,onChange:c,getOptionDisplayValue:s,dataQa:w,dataTags:R,children:y,width:O,maxHeight:B,open:P,onOpen:k,onClose:D,menuAnchorOrigin:x,menuTransformOrigin:g}){let M=chunkV45EFIXB_js.ua(),[L,v]=ne.useState(p);ne.useEffect(()=>{v(p);},[p]);let E=h=>{v(h.target.value),c&&c({name:o,value:h.target.value});},i=()=>f||o,H=()=>{let h={sx:{maxHeight:B,width:O}};return x&&(h.anchorOrigin=x),g&&(h.transformOrigin=g),h},C=()=>jsxRuntime.jsx(chunkV45EFIXB_js._h,{id:i(),name:o,inputProps:{"data-qa":w,"data-tags":R,"aria-describedby":t?`${i()}-select-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":m,role:"select",title:r},select:true,InputProps:{sx:{height:M.spacing(4)},className:chunkV45EFIXB_js.D({readOnlySelect:m,emptySelect:!L}),disabled:a&&!m,readOnly:m,required:n},title:r,autoComplete:"off",required:n,disabled:a||m,error:l,margin:"dense",value:L,onChange:E,SelectProps:{IconComponent:j,MenuProps:{TransitionComponent:chunkV45EFIXB_js.eb,...H()},renderValue:s?h=>s(h):void 0,displayEmpty:A,onOpen:k,onClose:D,open:P},children:y});return jsxRuntime.jsx(chunkJDGMAWN5_js.b,{id:i(),label:d,helperText:t,errorText:l?t:void 0,disabled:a,readOnly:m,required:n,inlineLabel:S,centerInlineLabel:S,sx:{width:O},children:C()})}var Go=Re;function Oe({id:f,name:o,label:d,value:p,helperText:t,placeholder:r,maxLength:l=chunkJDGMAWN5_js.c.maxLength,minRows:n=4,maxRows:a=4,title:m,autoFocus:S=false,hasErrors:A=false,required:c=false,inlineLabel:s=false,disabled:w=false,readOnly:R=false,onChange:y,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,dataQa:D,dataTags:x,fullWidth:g=false,resizable:M,width:L}){let v=chunkV45EFIXB_js.ua(),E=C=>{y&&y({name:o,value:C.target.value});},i=()=>{let C=f||o;return M&&(C=`${C}-resizable-${M}`),C},H=()=>jsxRuntime.jsx(chunkV45EFIXB_js._h,{id:`${i()}`,name:o,inputProps:{maxLength:l,"data-qa":D,"data-tags":x,readOnly:R,"aria-describedby":t?`${i()}-textfield-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":R,role:"textbox",title:m},type:"text",autoComplete:"off",autoFocus:S,error:A,minRows:n,maxRows:a,multiline:true,InputProps:{sx:{height:v.spacing(4)},disabled:w,required:c,className:s?"inline-label":""},margin:"dense",placeholder:r,value:p,onChange:E,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,fullWidth:g});return jsxRuntime.jsx(chunkJDGMAWN5_js.b,{id:i(),label:d,helperText:t,errorText:A?t:void 0,disabled:w,readOnly:R,required:c,inlineLabel:s,sx:{width:L},children:H()})}var Jo=Oe;exports.a=j;exports.b=Ie;exports.c=Ke;exports.d=Xe;exports.e=xo;exports.f=We;exports.g=J;exports.h=qe;exports.i=oo;exports.j=fo;exports.k=ho;exports.l=bo;exports.m=Se;exports.n=Go;exports.o=Jo;//# sourceMappingURL=chunk-YEEQBFPE.js.map
4
+ //# sourceMappingURL=chunk-YEEQBFPE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/icons/SelectIcons.tsx","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Check.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ErrorOutlineOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Block.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CancelOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CheckCircleOutline.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Close.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/InfoOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/MoreHoriz.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/NavigateNext.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Remove.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ReportProblemOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Tune.js","../src/components/form/SolaceCheckBox.tsx","../src/components/SolaceTypography.tsx","../src/components/form/SolaceSelect.tsx","../src/components/form/SolaceTextArea.tsx"],"names":["SelectDropdownIcon","createSvgIcon","jsx","Check_default","_jsx","ErrorOutlineOutlined_default","Block_default","CancelOutlined_default","CheckCircleOutline_default","Close_default","InfoOutlined_default","MoreHoriz_default","NavigateNext_default","Remove_default","ReportProblemOutlined_default","Tune_default","CheckBoxLabel","id","htmlForId","required","disabled","bold","large","readOnly","children","theme","useTheme","FormLabel_default","clsx_default","SolaceCheckBox","name","label","title","helperText","hasErrors","checked","indeterminate","boldLabel","largeLabel","subTextProps","onChange","dataQa","dataTags","selected","setSelected","useState","useEffect","handleChange","event","getHelperText","jsxs","Box_default","getId","React","Checkbox_default","FormHelperText_default","SolaceCheckBox_default","SolaceTypography","props","colorMap","variant","color","rest","Typography_default","SolaceSelect","value","inlineLabel","displayEmpty","getOptionDisplayValue","width","maxHeight","open","onOpen","onClose","menuAnchorOrigin","menuTransformOrigin","selectedValue","setSelectedValue","getMenuProps","menuProps","select","TextField_default","Collapse_default","FormChildBase_default","SolaceSelect_default","SolaceTextArea","placeholder","maxLength","constants","minRows","maxRows","autoFocus","onBlur","onKeyDown","onKeyUp","onFocus","fullWidth","resizable","generatedId","textField","SolaceTextArea_default"],"mappings":"+RAkBO,IAAMA,EAAqBC,mBAAAA,CACjCC,cAAAA,CAAC,QACA,CAAA,CAAE,CAAA;AAAA;AAAA,yCAAA,CAAA,CAGH,CAAA,CACA,oBACD,ECrBA,IAAOC,CAAAA,CAAQF,mBAAAA,CAA2BG,cAAAA,CAAK,MAAA,CAAQ,CACrD,EAAG,mDACL,CAAC,CAAA,CAAG,OAAO,CAAA,CCFX,IAAOC,CAAAA,CAAQJ,mBAAAA,CAA2BG,cAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,uKACL,CAAC,EAAG,sBAAsB,ECF1B,IAAOE,EAAAA,CAAQL,mBAAAA,CAA2BG,cAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,wOACL,CAAC,CAAA,CAAG,OAAO,ECFX,IAAOG,EAAAA,CAAQN,oBAA2BG,cAAAA,CAAK,MAAA,CAAQ,CACrD,CAAA,CAAG,iOACL,CAAC,CAAA,CAAG,gBAAgB,MCFbI,EAAAA,CAAQP,mBAAAA,CAA2BG,cAAAA,CAAK,MAAA,CAAQ,CACrD,CAAA,CAAG,yKACL,CAAC,EAAG,oBAAoB,ECFxB,IAAOK,EAAAA,CAAQR,oBAA2BG,cAAA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,SAAA,CAAWC,CAAAA,CAAYD,CAAAA,CAAa,OACpC,QAAA,CAAUb,CAAAA,CACV,QAAA,CAAUG,CAAAA,CACV,QAAA,CAAUJ,CAAAA,CACV,WAAA,CAAa+C,CAAAA,CACb,GAAI,CAAE,KAAA,CAAAG,CAAM,CAAA,CAEX,SAAA8B,CAAAA,EAAU,CACZ,CAEF,KAEOC,EAAAA,CAAQf","file":"chunk-YEEQBFPE.js","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSvgIcon } from \"@mui/material\";\n\nexport const SelectDropdownIcon = createSvgIcon(\n\t<path\n\t\td=\"M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563\n\tl5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851\n\tC16.637,8.957,16.387,8.957,16.233,9.111z\"\n\t/>,\n\t\"SelectDropDownIcon\"\n);\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"\n}), 'Check');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'ErrorOutlineOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8\"\n}), 'Block');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z\"\n}), 'CancelOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'CheckCircleOutline');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"\n}), 'InfoOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'MoreHoriz');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z\"\n}), 'ReportProblemOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z\"\n}), 'Tune');","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, Checkbox, FormHelperText, useTheme, FormLabel } from \"@mui/material\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport ErrorOutlineOutlinedIcon from \"@mui/icons-material/ErrorOutlineOutlined\";\nimport React, { useEffect, useState } from \"react\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport SolaceHTMLAttributeProps from \"../SolaceHTMLAttributesProps\";\nimport clsx from \"clsx\";\nimport { Remove } from \"@mui/icons-material\";\n\nexport interface SolaceCheckboxChangeEvent {\n\tname: string;\n\tvalue: boolean;\n}\n\nexport interface SolaceCheckBoxProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `checkbox` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\tsubTextProps?: { label?: string | JSX.Element; light?: boolean };\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to check or uncheck the `checkbox`\n\t */\n\tchecked?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `checkbox` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `checkbox`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `checkbox` is changed\n\t */\n\tonChange?: (event: SolaceCheckboxChangeEvent) => void;\n\t/**\n\t * Boolean flag to set the checkbox to indeterminate\n\t */\n\tindeterminate?: boolean;\n\t/**\n\t * Boolean flag to set the checkbox to readOnly\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to allow font weight of medium (default to regular) for label\n\t */\n\tboldLabel?: boolean;\n\t/**\n\t * Display the label with a larger font\n\t */\n\tlargeLabel?: boolean;\n}\n\ninterface CheckBoxLabelProps {\n\tid: string;\n\thtmlForId?: string;\n\trequired: boolean;\n\tdisabled: boolean;\n\tbold: boolean;\n\tlarge: boolean;\n\treadOnly: boolean;\n\tchildren?: JSX.Element | string;\n}\n\nfunction CheckBoxLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\tbold = false,\n\tlarge = false,\n\treadOnly = false,\n\tchildren\n}: CheckBoxLabelProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{ display: \"block\", fontSize: large ? theme.typography.subtitle1 : theme.typography.body1 }}\n\t\t\tclassName={clsx({ \"bold-label\": bold, \"check-box-label\": true, readOnly: readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nconst SolaceCheckBox = ({\n\tid,\n\tname,\n\tlabel,\n\ttitle,\n\thelperText,\n\thasErrors = false,\n\tchecked = false,\n\trequired = false,\n\tdisabled = false,\n\tindeterminate = false,\n\treadOnly = false,\n\tboldLabel = false,\n\tlargeLabel = false,\n\tsubTextProps = { label: \"\", light: false },\n\tonChange,\n\tdataQa,\n\tdataTags\n}: SolaceCheckBoxProps): JSX.Element => {\n\tconst theme = useTheme();\n\tconst [selected, setSelected] = useState(checked);\n\n\tuseEffect(() => {\n\t\tsetSelected(checked);\n\t}, [checked]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelected(event.target.checked);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.checked\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getHelperText = () => (\n\t\t<Box display=\"flex\">\n\t\t\t{hasErrors && <ErrorOutlineOutlinedIcon sx={{ marginRight: theme.spacing() }} />}\n\t\t\t{helperText}\n\t\t</Box>\n\t);\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\t// No need to get custom icons as we're using MUI's built-in icons\n\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Box display=\"grid\" gridTemplateColumns=\"auto 1fr\" gridTemplateRows=\"auto auto\" alignItems=\"center\">\n\t\t\t\t<Checkbox\n\t\t\t\t\tid={`${getId()}-checkbox`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tindeterminate={indeterminate}\n\t\t\t\t\tinputProps={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\t\"data-tags\": dataTags\n\t\t\t\t\t\t} as SolaceHTMLAttributeProps\n\t\t\t\t\t}\n\t\t\t\t\ttitle={title}\n\t\t\t\t\tdisabled={disabled || readOnly}\n\t\t\t\t\tclassName={clsx({ readOnly: readOnly })}\n\t\t\t\t\tdisableRipple\n\t\t\t\t\tchecked={selected}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tcheckedIcon={<CheckIcon />}\n\t\t\t\t\tindeterminateIcon={<Remove />}\n\t\t\t\t/>\n\t\t\t\t{label && (\n\t\t\t\t\t<Box>\n\t\t\t\t\t\t<CheckBoxLabel\n\t\t\t\t\t\t\tid={`${getId()}-label`}\n\t\t\t\t\t\t\thtmlForId={`${getId()}-checkbox`}\n\t\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tbold={boldLabel || (!!subTextProps.label && !subTextProps.light)}\n\t\t\t\t\t\t\tlarge={largeLabel}\n\t\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</CheckBoxLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{subTextProps.label && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"2\">\n\t\t\t\t\t\t<FormLabel\n\t\t\t\t\t\t\tid={`${id}-subtext`}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tclassName={clsx({ \"light-sub-text\": subTextProps.light, \"check-box-label\": true })}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{subTextProps.label}\n\t\t\t\t\t\t</FormLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{helperText && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"3\">\n\t\t\t\t\t\t<FormHelperText error={hasErrors} component=\"div\" sx={{ marginTop: theme.spacing(0.25) }}>\n\t\t\t\t\t\t\t{getHelperText()}\n\t\t\t\t\t\t</FormHelperText>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Box>\n\t\t</React.Fragment>\n\t);\n};\n\nexport default SolaceCheckBox;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Typography, useTheme } from \"@mui/material\";\nimport { SolaceTypographyProps } from \"../types\";\n\nexport default function SolaceTypography(props: SolaceTypographyProps) {\n\tconst theme = useTheme();\n\n\tconst colorMap = {\n\t\tinfo: theme.palette.ux.info.w100,\n\t\terror: theme.palette.ux.error.w100,\n\t\twarning: theme.palette.ux.warning.w100,\n\t\tsuccess: theme.palette.ux.success.w100\n\t} as const;\n\n\tconst { variant = \"body1\", children, color, ...rest } = props;\n\n\t// Helper function to safely get color from colorMap\n\tconst getCustomColor = (color: string): string | undefined => {\n\t\treturn colorMap[color as keyof typeof colorMap];\n\t};\n\n\treturn (\n\t\t<Typography\n\t\t\tvariant={variant}\n\t\t\tcolor={color && typeof color === \"string\" ? getCustomColor(color) || color : \"textPrimary\"}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Typography>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MenuProps, PopoverOrigin, TextField, useTheme, Collapse } from \"@mui/material\";\nimport React, { ReactNode, useEffect, useState } from \"react\";\nimport { SelectDropdownIcon } from \"../../resources/icons/SelectIcons\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport clsx from \"clsx\";\nexport interface SolaceSelectChangeEvent {\n\tname: string;\n\tvalue: string;\n}\nexport interface SolaceSelectProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceSelectChangeEvent) => void;\n\t/**\n\t * Callback function to return option display value based on selected option value\n\t */\n\tgetOptionDisplayValue?: (value: unknown) => ReactNode;\n\t/**\n\t * An array of MenuItems to render as the select options\n\t */\n\tchildren: Array<JSX.Element>;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * Custom maxHeight of the component.\n\t */\n\tmaxHeight?: string;\n\t/**\n\t * Boolean flag to show the select option that has empty value\n\t */\n\n\tdisplayEmpty?: boolean;\n\t/**\n\t * Boolean flag to show the select options\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback function to trigger whenever the dropdown opens\n\t */\n\tonOpen?: () => void;\n\t/**\n\t * Callback function to trigger whenever the dropdown closes\n\t */\n\tonClose?: () => void;\n\t/**\n\t * Custom anchorOrigin of the menu\n\t */\n\tmenuAnchorOrigin?: PopoverOrigin;\n\t/**\n\t * Custom transformOrigin of the menu\n\t */\n\tmenuTransformOrigin?: PopoverOrigin;\n}\n\nfunction SolaceSelect({\n\tid,\n\tname,\n\tlabel,\n\tvalue = \"\",\n\thelperText,\n\ttitle,\n\thasErrors = false,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tinlineLabel = false,\n\tdisplayEmpty = false,\n\tonChange,\n\tgetOptionDisplayValue,\n\tdataQa,\n\tdataTags,\n\tchildren,\n\twidth,\n\tmaxHeight,\n\topen,\n\tonOpen,\n\tonClose,\n\tmenuAnchorOrigin,\n\tmenuTransformOrigin\n}: SolaceSelectProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst [selectedValue, setSelectedValue] = useState(value);\n\n\tuseEffect(() => {\n\t\tsetSelectedValue(value);\n\t}, [value]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelectedValue(event.target.value);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst getMenuProps = () => {\n\t\tconst menuProps: Partial<MenuProps> = {\n\t\t\tsx: { maxHeight: maxHeight, width: width }\n\t\t};\n\t\tif (menuAnchorOrigin) {\n\t\t\tmenuProps.anchorOrigin = menuAnchorOrigin;\n\t\t}\n\t\tif (menuTransformOrigin) {\n\t\t\tmenuProps.transformOrigin = menuTransformOrigin;\n\t\t}\n\t\treturn menuProps;\n\t};\n\n\tconst select = () => (\n\t\t<TextField\n\t\t\tid={getId()}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-select-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"select\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\tselect\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tclassName: clsx({ readOnlySelect: readOnly, emptySelect: !selectedValue }),\n\t\t\t\tdisabled: disabled && !readOnly,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\trequired: required\n\t\t\t}}\n\t\t\ttitle={title}\n\t\t\tautoComplete=\"off\"\n\t\t\trequired={required}\n\t\t\tdisabled={disabled || readOnly}\n\t\t\terror={hasErrors}\n\t\t\tmargin=\"dense\"\n\t\t\tvalue={selectedValue}\n\t\t\tonChange={handleChange}\n\t\t\tSelectProps={{\n\t\t\t\tIconComponent: SelectDropdownIcon,\n\t\t\t\tMenuProps: {\n\t\t\t\t\tTransitionComponent: Collapse,\n\t\t\t\t\t...getMenuProps()\n\t\t\t\t},\n\n\t\t\t\trenderValue: getOptionDisplayValue\n\t\t\t\t\t? (value: unknown) => {\n\t\t\t\t\t\t\treturn getOptionDisplayValue(value);\n\t\t\t\t\t }\n\t\t\t\t\t: undefined,\n\t\t\t\tdisplayEmpty: displayEmpty,\n\t\t\t\tonOpen: onOpen,\n\t\t\t\tonClose: onClose,\n\t\t\t\topen: open\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</TextField>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{select()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceSelect;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\n\nexport interface SolaceTextAreaChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextAreaProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The minimum numbers of rows the text area can shrink to\n\t */\n\tminRows?: number;\n\t/**\n\t * The maximum number of rows the text area can expand to (overflow scrollbar will render if necessary)\n\t */\n\tmaxRows?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextAreaChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * both: The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically.\n\t * horizontal: The element displays a mechanism for allowing the user to resize it in the horizontal direction.\n\t * vertical: The element displays a mechanism for allowing the user to resize it in the vertical direction.\n\t */\n\tresizable?: \"both\" | \"horizontal\" | \"vertical\";\n}\n\nfunction SolaceTextArea({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\tminRows = 4,\n\tmaxRows = 4,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\trequired = false,\n\tinlineLabel = false,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\tresizable,\n\twidth\n}: SolaceTextAreaProps) {\n\tconst theme = useTheme();\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\tlet generatedId = id ? id : name;\n\t\tif (resizable) {\n\t\t\tgeneratedId = `${generatedId}-resizable-${resizable}`;\n\t\t}\n\t\treturn generatedId;\n\t};\n\n\tconst textField = () => (\n\t\t<TextField\n\t\t\tid={`${getId()}`}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"textbox\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\ttype=\"text\"\n\t\t\tautoComplete=\"off\"\n\t\t\tautoFocus={autoFocus}\n\t\t\terror={hasErrors}\n\t\t\tminRows={minRows}\n\t\t\tmaxRows={maxRows}\n\t\t\tmultiline={true}\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tdisabled: disabled,\n\t\t\t\trequired: required,\n\t\t\t\tclassName: inlineLabel ? \"inline-label\" : \"\"\n\t\t\t}}\n\t\t\tmargin=\"dense\"\n\t\t\tplaceholder={placeholder}\n\t\t\tvalue={value}\n\t\t\tonChange={handleChange}\n\t\t\tonBlur={onBlur}\n\t\t\tonKeyDown={onKeyDown}\n\t\t\tonKeyUp={onKeyUp}\n\t\t\tonFocus={onFocus}\n\t\t\tfullWidth={fullWidth}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextArea;\n"]}
package/dist/drag-drop.js CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkSXQRCXMP_js=require('./chunk-SXQRCXMP.js'),chunkSWGQVSXQ_js=require('./chunk-SWGQVSXQ.js');require('./chunk-YQTPPT5K.js');var chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),be=require('react'),dnd=require('@hello-pangea/dnd'),jsxRuntime=require('react/jsx-runtime'),reactVirtuoso=require('react-virtuoso');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var be__default=/*#__PURE__*/_interopDefault(be);var re=({fill:e,opacity:r})=>jsxRuntime.jsx(chunkV45EFIXB_js.Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsxRuntime.jsx("g",{transform:"translate(5,3)",children:jsxRuntime.jsx("path",{d:"M9.5 0H4.5L3.5 1H0.401C0.179 1 0 1.179 0 1.401V2.599C0 2.821 0.179 3 0.401 3H13.599C13.821 3 14 2.821 14 2.599V1.401C14 1.179 13.821 1 13.599 1H10.5L9.5 0ZM10.875 6L10.118 16H3.882L3.125 6H10.875ZM12.59 4H1.39C1.159 4 0.982 4.196 1 4.426L2 17.634C2.016 17.841 2.193 18 2.4 18H11.6C11.807 18 11.984 17.841 12 17.635L13 4.427C13.018 4.196 12.82 4 12.59 4Z",fill:e,opacity:r})})});var te=({fill:e,opacity:r})=>jsxRuntime.jsx(chunkV45EFIXB_js.Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsxRuntime.jsx("g",{transform:"translate(7,4)",children:jsxRuntime.jsx("path",{d:"M4 14C4 15.1 3.1 16 2 16C0.9 16 0 15.1 0 14C0 12.9 0.9 12 2 12C3.1 12 4 12.9 4 14ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 4C9.1 4 10 3.1 10 2C10 0.9 9.1 0 8 0C6.9 0 6 0.9 6 2C6 3.1 6.9 4 8 4ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12Z",fill:e,fillOpacity:r})})});var pe=(e,r,a,l)=>{let p="";return r!==null&&a!==null&&(r&&a+1===l||!r&&a===l)&&(p=`1px solid ${e.palette.ux.accent.n2.wMain}`),p},ce=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="isDragging"&&e!=="dropOverIndex"&&e!=="dropFromTop"&&e!=="readOnly"&&e!=="disableReorder"})(({theme:e,isDragging:r,dropOverIndex:a,index:l,dropFromTop:p,readOnly:s,disableReorder:b})=>({...e.mixins.formComponent_AVPItem.container,backgroundColor:r?e.palette.ux.brand.w10:"inherit",borderTop:pe(e,p,a,l),gridTemplateColumns:s?"0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px":b?"0px 1fr 8px 1fr 40px":"32px 1fr 8px 1fr 40px"})),me=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForKey})),de=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForValue})),ge=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="isDragging"&&e!=="readOnly"})(({theme:e,ghostItem:r,isDragging:a,readOnly:l})=>({...e.mixins.formComponent_AVPItem.moveButton,cursor:r?"default":a?"move":"pointer",display:l?"none":"inherit"})),fe=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="cursor"&&e!=="background"&&e!=="readOnly"})(({theme:e,ghostItem:r,cursor:a,background:l,readOnly:p})=>({...e.mixins.formComponent_AVPItem.deleteButton,cursor:a,display:p?"none":"inherit",height:"fit-content",":hover":{backgroundColor:l,svg:{path:{fill:r?e.palette.ux.secondary.w40:e.palette.ux.deprecated.primary.wMain}}},paddingBottom:e.spacing(.5),marginLeft:e.spacing(1)})),oe=chunkV45EFIXB_js.wa("div")(({theme:e})=>({paddingTop:"7px",color:e.palette.ux.secondary.text.wMain}));var U=({id:e,index:r,avpKey:a,avpValue:l,dataTags:p,ghostItem:s=false,onDelete:b,onChange:v,onKeyUp:C,onBlur:F,keyErrorText:M,valueErrorText:E,dropOverIndex:w,dropFromTop:T,readOnly:u,emptyFieldDisplayValue:S="",disableReorder:h=false})=>{let f=chunkV45EFIXB_js.ua();return jsxRuntime.jsx(dnd.Draggable,{draggableId:e,index:r,isDragDisabled:s||h,children:(x,c)=>jsxRuntime.jsxs(ce,{ref:x.innerRef,...x.draggableProps,isDragging:c.isDragging,dropOverIndex:w,dropFromTop:T,index:r,readOnly:!!u,disableReorder:h,children:[!h&&jsxRuntime.jsx(ge,{...x.dragHandleProps,isDragging:c.isDragging,ghostItem:s,readOnly:!!u,"data-qa":`avpMove-${r}`,children:jsxRuntime.jsx(te,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})}),jsxRuntime.jsxs(me,{children:[!a&&l&&u&&jsxRuntime.jsx(oe,{"data-qa":`avpKey-${r}`,children:S}),(a||!a&&!u)&&jsxRuntime.jsx(chunkSXQRCXMP_js.d,{name:"key",dataQa:`avpKey-${r}`,dataTags:p,value:a,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!M,helperText:s?"":M,readOnly:u})]}),jsxRuntime.jsxs(de,{children:[a&&!l&&u&&jsxRuntime.jsx(oe,{"data-qa":`avpValue-${r}`,children:S}),(l||!l&&!u)&&jsxRuntime.jsx(chunkSXQRCXMP_js.d,{name:"value",dataQa:`avpValue-${r}`,dataTags:p,value:l,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!E,helperText:s?"":E,readOnly:u})]}),jsxRuntime.jsx(fe,{onClick:i=>b(i,r),tabIndex:0,ghostItem:s,cursor:s?"default":"pointer",background:s?"inherit":f.palette.ux.secondary.w10,readOnly:!!u,"data-qa":`avpDelete-${r}`,children:jsxRuntime.jsx(re,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})})]})})};var Se=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.container})),he=chunkV45EFIXB_js.wa("div")(({theme:e,readOnly:r,disableReorder:a,hasScrollBar:l})=>({...e.mixins.formComponent_AVPForm.labelWrapper,gridTemplateColumns:r?`0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px${l?" 16px":""}`:a?`0px 1fr 8px 1fr 32px${l?" 16px":""}`:`32px 1fr 8px 1fr 32px${l?" 16px":""}`})),ae=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.listWrapper})),Ve=(e,r,a)=>{let l=Array.from(e),[p]=l.splice(r,1);return l.splice(a,0,p),l},ne=(e,r)=>e[r].key===""&&e[r].value==="";var Ie=(e,r,a)=>{e==="ArrowUp"&&r-1>0?a[r-2].select():e==="ArrowDown"&&r+2<a.length?a[r+2].select():e==="Enter"&&r+2<a.length&&(r%2===0?a[r+2].select():r%2===1&&a[r+1].select());},le=be__default.default.forwardRef((e,r)=>{let a=e.context?.headerRef,l=e.context?.virtualizedAvpListOption,p=e.style;return jsxRuntime.jsx(ae,{...e,ref:r,style:{...p,width:l?.height&&a.current?a.current.offsetWidth-16:"100%"}})});le.displayName="List";var Ae=({id:e,name:r,readOnly:a,labelForKeys:l="Name",labelForValues:p="DisplayName",avpList:s=[],onAVPListUpdate:b,avpKeyValidationCallback:v,avpValueValidationCallback:C,enableRequiredKeyFieldIndicator:F,enableRequiredValueFieldIndicator:M,emptyFieldDisplayValue:E="",keyRequired:w=true,keyIsRequiredMessage:T="Required",helperText:u="",hasErrors:S=false,hasWarnings:h=false,disableReorder:f=false,avpListMaxHeight:x,virtualizedAvpListOption:c})=>{let[i,V]=be.useState(s),[N,R]=be.useState(null),[_,B]=be.useState(null),D=be.useRef(null);be.useEffect(()=>{let n=[...s];n.push({key:"",value:""}),V(n);},[s]);let I=be.useCallback(n=>{V(n),b&&ne(n,n.length-1)&&b(n.slice(0,-1)),R(null),B(null);},[b]),ie=n=>{if(!n.destination||n.destination.index===n.source.index||n.destination.index===i.length-1)return;let t=Ve(i,n.source.index,n.destination.index);V(t),b&&ne(t,t.length-1)&&b(t.slice(0,-1)),R(null),B(null);},se=n=>{let t=n.source.index,o=n?.destination?.index??null,m=o,y=null;t!==null&&o!==null&&(t>o?y=false:t<o&&(y=true)),R(m),B(y);},J=be.useCallback((n,t)=>{let o=n.name,m=n.value,y=[...i];y[t][o]=m,o&&y.length-1===t&&y.push({key:"",value:""}),V(y),I(y);},[i,I]),L=be.useCallback(n=>n===i.length-1,[i.length]),X=be.useCallback((n,t)=>{if(n.type==="click"&&!L(t)&&i.length>1){let o=[...i];o.splice(t,1),V(o),I(o);}},[i,I,L]),Q=be.useCallback(n=>{let t=document.querySelectorAll("[data-tags='avpInput']"),o=document.activeElement;for(let m=0;m<t.length;m++)t[m].getAttribute("data-qa")===o?.getAttribute("data-qa")&&Ie(n.key,m,t);},[]),Y=be.useCallback((n,t)=>{let o=[...i];if(o[t].key=o[t].key.trim(),o[t].value=o[t].value.trim(),n.target.getAttribute("name")==="key"&&v){let m=v(n.target.value,o.slice(0,-1));m?o[t].keyErrorText=m:delete o[t].keyErrorText;}if(n.target.getAttribute("name")==="value"&&C){let m=C(n.target.value,o.slice(0,-1));m?o[t].valueErrorText=m:delete o[t].valueErrorText;}w&&!o[t].key?o[t].keyErrorText=T:o[t].keyErrorText===T&&delete o[t].keyErrorText,V(o),I(o);},[i,w,v,C,T,I]);return jsxRuntime.jsxs(dnd.DragDropContext,{onDragEnd:ie,onDragUpdate:se,children:[jsxRuntime.jsx(dnd.Droppable,{droppableId:e??r,isDropDisabled:!!f||!!a,children:n=>jsxRuntime.jsxs(Se,{ref:n.innerRef,...n.droppableProps,children:[jsxRuntime.jsxs(he,{ref:D,readOnly:!!a,disableReorder:!!f,hasScrollBar:!!x||!!c?.height,children:[jsxRuntime.jsx(chunkSXQRCXMP_js.a,{id:"avpLabelForKeys",required:F,children:l}),jsxRuntime.jsx(chunkSXQRCXMP_js.a,{id:"avpLabelForValues",required:M,children:p})]}),c&&D.current&&jsxRuntime.jsx(reactVirtuoso.Virtuoso,{context:{headerRef:D,virtualizedAvpListOption:c},style:{height:c.height?c.height:"auto",minHeight:c.minHeight?c.minHeight:40},useWindowScroll:c.useWindowScrolling,increaseViewportBy:c.increaseViewportBy,components:{List:le},initialTopMostItemIndex:c.initialTopMostItemIndex??0,data:i,itemContent:(t,o)=>jsxRuntime.jsx(U,{id:`${t}`,index:t,avpKey:o.key,avpValue:o.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(t),onBlur:Y,keyErrorText:o.keyErrorText,valueErrorText:o.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a,emptyFieldDisplayValue:E,disableReorder:f},`${t}`)}),!c&&D.current&&jsxRuntime.jsx("div",{style:x?{maxHeight:x,overflowY:"auto"}:void 0,children:jsxRuntime.jsx(ae,{style:{width:x?D.current.offsetWidth-16:"100%"},children:i.map((t,o)=>jsxRuntime.jsx(U,{id:`${o}`,index:o,avpKey:t.key,avpValue:t.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(o),onBlur:Y,keyErrorText:t.keyErrorText,valueErrorText:t.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a,emptyFieldDisplayValue:E,disableReorder:f},`${o}`))})}),n.placeholder]})}),u&&jsxRuntime.jsxs("div",{style:{paddingLeft:"16px"},children:[u&&!h&&!S&&jsxRuntime.jsx(chunkSWGQVSXQ_js.c,{children:u}),u&&!S&&h&&jsxRuntime.jsx(chunkSWGQVSXQ_js.g,{children:u}),u&&S&&jsxRuntime.jsx(chunkSWGQVSXQ_js.e,{children:u})]})]})},Ee=Ae;exports.SolaceAttributeValuePairForm=Ee;//# sourceMappingURL=drag-drop.js.map
1
+ 'use strict';var chunkJDGMAWN5_js=require('./chunk-JDGMAWN5.js'),chunkSWGQVSXQ_js=require('./chunk-SWGQVSXQ.js');require('./chunk-YQTPPT5K.js');var chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),be=require('react'),dnd=require('@hello-pangea/dnd'),jsxRuntime=require('react/jsx-runtime'),reactVirtuoso=require('react-virtuoso');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var be__default=/*#__PURE__*/_interopDefault(be);var re=({fill:e,opacity:r})=>jsxRuntime.jsx(chunkV45EFIXB_js.Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsxRuntime.jsx("g",{transform:"translate(5,3)",children:jsxRuntime.jsx("path",{d:"M9.5 0H4.5L3.5 1H0.401C0.179 1 0 1.179 0 1.401V2.599C0 2.821 0.179 3 0.401 3H13.599C13.821 3 14 2.821 14 2.599V1.401C14 1.179 13.821 1 13.599 1H10.5L9.5 0ZM10.875 6L10.118 16H3.882L3.125 6H10.875ZM12.59 4H1.39C1.159 4 0.982 4.196 1 4.426L2 17.634C2.016 17.841 2.193 18 2.4 18H11.6C11.807 18 11.984 17.841 12 17.635L13 4.427C13.018 4.196 12.82 4 12.59 4Z",fill:e,opacity:r})})});var te=({fill:e,opacity:r})=>jsxRuntime.jsx(chunkV45EFIXB_js.Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsxRuntime.jsx("g",{transform:"translate(7,4)",children:jsxRuntime.jsx("path",{d:"M4 14C4 15.1 3.1 16 2 16C0.9 16 0 15.1 0 14C0 12.9 0.9 12 2 12C3.1 12 4 12.9 4 14ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 4C9.1 4 10 3.1 10 2C10 0.9 9.1 0 8 0C6.9 0 6 0.9 6 2C6 3.1 6.9 4 8 4ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12Z",fill:e,fillOpacity:r})})});var pe=(e,r,a,l)=>{let p="";return r!==null&&a!==null&&(r&&a+1===l||!r&&a===l)&&(p=`1px solid ${e.palette.ux.accent.n2.wMain}`),p},ce=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="isDragging"&&e!=="dropOverIndex"&&e!=="dropFromTop"&&e!=="readOnly"&&e!=="disableReorder"})(({theme:e,isDragging:r,dropOverIndex:a,index:l,dropFromTop:p,readOnly:s,disableReorder:b})=>({...e.mixins.formComponent_AVPItem.container,backgroundColor:r?e.palette.ux.brand.w10:"inherit",borderTop:pe(e,p,a,l),gridTemplateColumns:s?"0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px":b?"0px 1fr 8px 1fr 40px":"32px 1fr 8px 1fr 40px"})),me=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForKey})),de=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForValue})),ge=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="isDragging"&&e!=="readOnly"})(({theme:e,ghostItem:r,isDragging:a,readOnly:l})=>({...e.mixins.formComponent_AVPItem.moveButton,cursor:r?"default":a?"move":"pointer",display:l?"none":"inherit"})),fe=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="cursor"&&e!=="background"&&e!=="readOnly"})(({theme:e,ghostItem:r,cursor:a,background:l,readOnly:p})=>({...e.mixins.formComponent_AVPItem.deleteButton,cursor:a,display:p?"none":"inherit",height:"fit-content",":hover":{backgroundColor:l,svg:{path:{fill:r?e.palette.ux.secondary.w40:e.palette.ux.deprecated.primary.wMain}}},paddingBottom:e.spacing(.5),marginLeft:e.spacing(1)})),oe=chunkV45EFIXB_js.wa("div")(({theme:e})=>({paddingTop:"7px",color:e.palette.ux.secondary.text.wMain}));var U=({id:e,index:r,avpKey:a,avpValue:l,dataTags:p,ghostItem:s=false,onDelete:b,onChange:v,onKeyUp:C,onBlur:F,keyErrorText:M,valueErrorText:E,dropOverIndex:w,dropFromTop:T,readOnly:u,emptyFieldDisplayValue:S="",disableReorder:h=false})=>{let f=chunkV45EFIXB_js.ua();return jsxRuntime.jsx(dnd.Draggable,{draggableId:e,index:r,isDragDisabled:s||h,children:(x,c)=>jsxRuntime.jsxs(ce,{ref:x.innerRef,...x.draggableProps,isDragging:c.isDragging,dropOverIndex:w,dropFromTop:T,index:r,readOnly:!!u,disableReorder:h,children:[!h&&jsxRuntime.jsx(ge,{...x.dragHandleProps,isDragging:c.isDragging,ghostItem:s,readOnly:!!u,"data-qa":`avpMove-${r}`,children:jsxRuntime.jsx(te,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})}),jsxRuntime.jsxs(me,{children:[!a&&l&&u&&jsxRuntime.jsx(oe,{"data-qa":`avpKey-${r}`,children:S}),(a||!a&&!u)&&jsxRuntime.jsx(chunkJDGMAWN5_js.d,{name:"key",dataQa:`avpKey-${r}`,dataTags:p,value:a,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!M,helperText:s?"":M,readOnly:u})]}),jsxRuntime.jsxs(de,{children:[a&&!l&&u&&jsxRuntime.jsx(oe,{"data-qa":`avpValue-${r}`,children:S}),(l||!l&&!u)&&jsxRuntime.jsx(chunkJDGMAWN5_js.d,{name:"value",dataQa:`avpValue-${r}`,dataTags:p,value:l,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!E,helperText:s?"":E,readOnly:u})]}),jsxRuntime.jsx(fe,{onClick:i=>b(i,r),tabIndex:0,ghostItem:s,cursor:s?"default":"pointer",background:s?"inherit":f.palette.ux.secondary.w10,readOnly:!!u,"data-qa":`avpDelete-${r}`,children:jsxRuntime.jsx(re,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})})]})})};var Se=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.container})),he=chunkV45EFIXB_js.wa("div")(({theme:e,readOnly:r,disableReorder:a,hasScrollBar:l})=>({...e.mixins.formComponent_AVPForm.labelWrapper,gridTemplateColumns:r?`0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px${l?" 16px":""}`:a?`0px 1fr 8px 1fr 32px${l?" 16px":""}`:`32px 1fr 8px 1fr 32px${l?" 16px":""}`})),ae=chunkV45EFIXB_js.wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.listWrapper})),Ve=(e,r,a)=>{let l=Array.from(e),[p]=l.splice(r,1);return l.splice(a,0,p),l},ne=(e,r)=>e[r].key===""&&e[r].value==="";var Ie=(e,r,a)=>{e==="ArrowUp"&&r-1>0?a[r-2].select():e==="ArrowDown"&&r+2<a.length?a[r+2].select():e==="Enter"&&r+2<a.length&&(r%2===0?a[r+2].select():r%2===1&&a[r+1].select());},le=be__default.default.forwardRef((e,r)=>{let a=e.context?.headerRef,l=e.context?.virtualizedAvpListOption,p=e.style;return jsxRuntime.jsx(ae,{...e,ref:r,style:{...p,width:l?.height&&a.current?a.current.offsetWidth-16:"100%"}})});le.displayName="List";var Ae=({id:e,name:r,readOnly:a,labelForKeys:l="Name",labelForValues:p="DisplayName",avpList:s=[],onAVPListUpdate:b,avpKeyValidationCallback:v,avpValueValidationCallback:C,enableRequiredKeyFieldIndicator:F,enableRequiredValueFieldIndicator:M,emptyFieldDisplayValue:E="",keyRequired:w=true,keyIsRequiredMessage:T="Required",helperText:u="",hasErrors:S=false,hasWarnings:h=false,disableReorder:f=false,avpListMaxHeight:x,virtualizedAvpListOption:c})=>{let[i,V]=be.useState(s),[N,R]=be.useState(null),[_,B]=be.useState(null),D=be.useRef(null);be.useEffect(()=>{let n=[...s];n.push({key:"",value:""}),V(n);},[s]);let I=be.useCallback(n=>{V(n),b&&ne(n,n.length-1)&&b(n.slice(0,-1)),R(null),B(null);},[b]),ie=n=>{if(!n.destination||n.destination.index===n.source.index||n.destination.index===i.length-1)return;let t=Ve(i,n.source.index,n.destination.index);V(t),b&&ne(t,t.length-1)&&b(t.slice(0,-1)),R(null),B(null);},se=n=>{let t=n.source.index,o=n?.destination?.index??null,m=o,y=null;t!==null&&o!==null&&(t>o?y=false:t<o&&(y=true)),R(m),B(y);},J=be.useCallback((n,t)=>{let o=n.name,m=n.value,y=[...i];y[t][o]=m,o&&y.length-1===t&&y.push({key:"",value:""}),V(y),I(y);},[i,I]),L=be.useCallback(n=>n===i.length-1,[i.length]),X=be.useCallback((n,t)=>{if(n.type==="click"&&!L(t)&&i.length>1){let o=[...i];o.splice(t,1),V(o),I(o);}},[i,I,L]),Q=be.useCallback(n=>{let t=document.querySelectorAll("[data-tags='avpInput']"),o=document.activeElement;for(let m=0;m<t.length;m++)t[m].getAttribute("data-qa")===o?.getAttribute("data-qa")&&Ie(n.key,m,t);},[]),Y=be.useCallback((n,t)=>{let o=[...i];if(o[t].key=o[t].key.trim(),o[t].value=o[t].value.trim(),n.target.getAttribute("name")==="key"&&v){let m=v(n.target.value,o.slice(0,-1));m?o[t].keyErrorText=m:delete o[t].keyErrorText;}if(n.target.getAttribute("name")==="value"&&C){let m=C(n.target.value,o.slice(0,-1));m?o[t].valueErrorText=m:delete o[t].valueErrorText;}w&&!o[t].key?o[t].keyErrorText=T:o[t].keyErrorText===T&&delete o[t].keyErrorText,V(o),I(o);},[i,w,v,C,T,I]);return jsxRuntime.jsxs(dnd.DragDropContext,{onDragEnd:ie,onDragUpdate:se,children:[jsxRuntime.jsx(dnd.Droppable,{droppableId:e??r,isDropDisabled:!!f||!!a,children:n=>jsxRuntime.jsxs(Se,{ref:n.innerRef,...n.droppableProps,children:[jsxRuntime.jsxs(he,{ref:D,readOnly:!!a,disableReorder:!!f,hasScrollBar:!!x||!!c?.height,children:[jsxRuntime.jsx(chunkJDGMAWN5_js.a,{id:"avpLabelForKeys",required:F,children:l}),jsxRuntime.jsx(chunkJDGMAWN5_js.a,{id:"avpLabelForValues",required:M,children:p})]}),c&&D.current&&jsxRuntime.jsx(reactVirtuoso.Virtuoso,{context:{headerRef:D,virtualizedAvpListOption:c},style:{height:c.height?c.height:"auto",minHeight:c.minHeight?c.minHeight:40},useWindowScroll:c.useWindowScrolling,increaseViewportBy:c.increaseViewportBy,components:{List:le},initialTopMostItemIndex:c.initialTopMostItemIndex??0,data:i,itemContent:(t,o)=>jsxRuntime.jsx(U,{id:`${t}`,index:t,avpKey:o.key,avpValue:o.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(t),onBlur:Y,keyErrorText:o.keyErrorText,valueErrorText:o.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a,emptyFieldDisplayValue:E,disableReorder:f},`${t}`)}),!c&&D.current&&jsxRuntime.jsx("div",{style:x?{maxHeight:x,overflowY:"auto"}:void 0,children:jsxRuntime.jsx(ae,{style:{width:x?D.current.offsetWidth-16:"100%"},children:i.map((t,o)=>jsxRuntime.jsx(U,{id:`${o}`,index:o,avpKey:t.key,avpValue:t.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(o),onBlur:Y,keyErrorText:t.keyErrorText,valueErrorText:t.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a,emptyFieldDisplayValue:E,disableReorder:f},`${o}`))})}),n.placeholder]})}),u&&jsxRuntime.jsxs("div",{style:{paddingLeft:"16px"},children:[u&&!h&&!S&&jsxRuntime.jsx(chunkSWGQVSXQ_js.c,{children:u}),u&&!S&&h&&jsxRuntime.jsx(chunkSWGQVSXQ_js.g,{children:u}),u&&S&&jsxRuntime.jsx(chunkSWGQVSXQ_js.e,{children:u})]})]})},Ee=Ae;exports.SolaceAttributeValuePairForm=Ee;//# sourceMappingURL=drag-drop.js.map
2
2
  //# sourceMappingURL=drag-drop.js.map
@@ -1,2 +1,2 @@
1
- import {a,d}from'./chunk-VYHLNTMX.modern.mjs';import {c,g,e}from'./chunk-54TEARQI.modern.mjs';import'./chunk-QKQRCYG4.modern.mjs';import {wa,ua,Na}from'./chunk-I7OJ5H4U.modern.mjs';import be,{useState,useRef,useEffect,useCallback}from'react';import {DragDropContext,Droppable,Draggable}from'@hello-pangea/dnd';import {jsx,jsxs}from'react/jsx-runtime';import {Virtuoso}from'react-virtuoso';var re=({fill:e,opacity:r})=>jsx(Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsx("g",{transform:"translate(5,3)",children:jsx("path",{d:"M9.5 0H4.5L3.5 1H0.401C0.179 1 0 1.179 0 1.401V2.599C0 2.821 0.179 3 0.401 3H13.599C13.821 3 14 2.821 14 2.599V1.401C14 1.179 13.821 1 13.599 1H10.5L9.5 0ZM10.875 6L10.118 16H3.882L3.125 6H10.875ZM12.59 4H1.39C1.159 4 0.982 4.196 1 4.426L2 17.634C2.016 17.841 2.193 18 2.4 18H11.6C11.807 18 11.984 17.841 12 17.635L13 4.427C13.018 4.196 12.82 4 12.59 4Z",fill:e,opacity:r})})});var te=({fill:e,opacity:r})=>jsx(Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsx("g",{transform:"translate(7,4)",children:jsx("path",{d:"M4 14C4 15.1 3.1 16 2 16C0.9 16 0 15.1 0 14C0 12.9 0.9 12 2 12C3.1 12 4 12.9 4 14ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 4C9.1 4 10 3.1 10 2C10 0.9 9.1 0 8 0C6.9 0 6 0.9 6 2C6 3.1 6.9 4 8 4ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12Z",fill:e,fillOpacity:r})})});var pe=(e,r,a,l)=>{let p="";return r!==null&&a!==null&&(r&&a+1===l||!r&&a===l)&&(p=`1px solid ${e.palette.ux.accent.n2.wMain}`),p},ce=wa("div",{shouldForwardProp:e=>e!=="isDragging"&&e!=="dropOverIndex"&&e!=="dropFromTop"&&e!=="readOnly"&&e!=="disableReorder"})(({theme:e,isDragging:r,dropOverIndex:a,index:l,dropFromTop:p,readOnly:s,disableReorder:b})=>({...e.mixins.formComponent_AVPItem.container,backgroundColor:r?e.palette.ux.brand.w10:"inherit",borderTop:pe(e,p,a,l),gridTemplateColumns:s?"0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px":b?"0px 1fr 8px 1fr 40px":"32px 1fr 8px 1fr 40px"})),me=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForKey})),de=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForValue})),ge=wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="isDragging"&&e!=="readOnly"})(({theme:e,ghostItem:r,isDragging:a,readOnly:l})=>({...e.mixins.formComponent_AVPItem.moveButton,cursor:r?"default":a?"move":"pointer",display:l?"none":"inherit"})),fe=wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="cursor"&&e!=="background"&&e!=="readOnly"})(({theme:e,ghostItem:r,cursor:a,background:l,readOnly:p})=>({...e.mixins.formComponent_AVPItem.deleteButton,cursor:a,display:p?"none":"inherit",height:"fit-content",":hover":{backgroundColor:l,svg:{path:{fill:r?e.palette.ux.secondary.w40:e.palette.ux.deprecated.primary.wMain}}},paddingBottom:e.spacing(.5),marginLeft:e.spacing(1)})),oe=wa("div")(({theme:e})=>({paddingTop:"7px",color:e.palette.ux.secondary.text.wMain}));var U=({id:e,index:r,avpKey:a,avpValue:l,dataTags:p,ghostItem:s=false,onDelete:b,onChange:v,onKeyUp:C,onBlur:F,keyErrorText:M,valueErrorText:E,dropOverIndex:w,dropFromTop:T,readOnly:u,emptyFieldDisplayValue:S="",disableReorder:h=false})=>{let f=ua();return jsx(Draggable,{draggableId:e,index:r,isDragDisabled:s||h,children:(x,c)=>jsxs(ce,{ref:x.innerRef,...x.draggableProps,isDragging:c.isDragging,dropOverIndex:w,dropFromTop:T,index:r,readOnly:!!u,disableReorder:h,children:[!h&&jsx(ge,{...x.dragHandleProps,isDragging:c.isDragging,ghostItem:s,readOnly:!!u,"data-qa":`avpMove-${r}`,children:jsx(te,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})}),jsxs(me,{children:[!a&&l&&u&&jsx(oe,{"data-qa":`avpKey-${r}`,children:S}),(a||!a&&!u)&&jsx(d,{name:"key",dataQa:`avpKey-${r}`,dataTags:p,value:a,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!M,helperText:s?"":M,readOnly:u})]}),jsxs(de,{children:[a&&!l&&u&&jsx(oe,{"data-qa":`avpValue-${r}`,children:S}),(l||!l&&!u)&&jsx(d,{name:"value",dataQa:`avpValue-${r}`,dataTags:p,value:l,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!E,helperText:s?"":E,readOnly:u})]}),jsx(fe,{onClick:i=>b(i,r),tabIndex:0,ghostItem:s,cursor:s?"default":"pointer",background:s?"inherit":f.palette.ux.secondary.w10,readOnly:!!u,"data-qa":`avpDelete-${r}`,children:jsx(re,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})})]})})};var Se=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.container})),he=wa("div")(({theme:e,readOnly:r,disableReorder:a,hasScrollBar:l})=>({...e.mixins.formComponent_AVPForm.labelWrapper,gridTemplateColumns:r?`0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px${l?" 16px":""}`:a?`0px 1fr 8px 1fr 32px${l?" 16px":""}`:`32px 1fr 8px 1fr 32px${l?" 16px":""}`})),ae=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.listWrapper})),Ve=(e,r,a)=>{let l=Array.from(e),[p]=l.splice(r,1);return l.splice(a,0,p),l},ne=(e,r)=>e[r].key===""&&e[r].value==="";var Ie=(e,r,a)=>{e==="ArrowUp"&&r-1>0?a[r-2].select():e==="ArrowDown"&&r+2<a.length?a[r+2].select():e==="Enter"&&r+2<a.length&&(r%2===0?a[r+2].select():r%2===1&&a[r+1].select());},le=be.forwardRef((e,r)=>{let a=e.context?.headerRef,l=e.context?.virtualizedAvpListOption,p=e.style;return jsx(ae,{...e,ref:r,style:{...p,width:l?.height&&a.current?a.current.offsetWidth-16:"100%"}})});le.displayName="List";var Ae=({id:e$1,name:r,readOnly:a$1,labelForKeys:l="Name",labelForValues:p="DisplayName",avpList:s=[],onAVPListUpdate:b,avpKeyValidationCallback:v,avpValueValidationCallback:C,enableRequiredKeyFieldIndicator:F,enableRequiredValueFieldIndicator:M,emptyFieldDisplayValue:E="",keyRequired:w=true,keyIsRequiredMessage:T="Required",helperText:u="",hasErrors:S=false,hasWarnings:h=false,disableReorder:f=false,avpListMaxHeight:x,virtualizedAvpListOption:c$1})=>{let[i,V]=useState(s),[N,R]=useState(null),[_,B]=useState(null),D=useRef(null);useEffect(()=>{let n=[...s];n.push({key:"",value:""}),V(n);},[s]);let I=useCallback(n=>{V(n),b&&ne(n,n.length-1)&&b(n.slice(0,-1)),R(null),B(null);},[b]),ie=n=>{if(!n.destination||n.destination.index===n.source.index||n.destination.index===i.length-1)return;let t=Ve(i,n.source.index,n.destination.index);V(t),b&&ne(t,t.length-1)&&b(t.slice(0,-1)),R(null),B(null);},se=n=>{let t=n.source.index,o=n?.destination?.index??null,m=o,y=null;t!==null&&o!==null&&(t>o?y=false:t<o&&(y=true)),R(m),B(y);},J=useCallback((n,t)=>{let o=n.name,m=n.value,y=[...i];y[t][o]=m,o&&y.length-1===t&&y.push({key:"",value:""}),V(y),I(y);},[i,I]),L=useCallback(n=>n===i.length-1,[i.length]),X=useCallback((n,t)=>{if(n.type==="click"&&!L(t)&&i.length>1){let o=[...i];o.splice(t,1),V(o),I(o);}},[i,I,L]),Q=useCallback(n=>{let t=document.querySelectorAll("[data-tags='avpInput']"),o=document.activeElement;for(let m=0;m<t.length;m++)t[m].getAttribute("data-qa")===o?.getAttribute("data-qa")&&Ie(n.key,m,t);},[]),Y=useCallback((n,t)=>{let o=[...i];if(o[t].key=o[t].key.trim(),o[t].value=o[t].value.trim(),n.target.getAttribute("name")==="key"&&v){let m=v(n.target.value,o.slice(0,-1));m?o[t].keyErrorText=m:delete o[t].keyErrorText;}if(n.target.getAttribute("name")==="value"&&C){let m=C(n.target.value,o.slice(0,-1));m?o[t].valueErrorText=m:delete o[t].valueErrorText;}w&&!o[t].key?o[t].keyErrorText=T:o[t].keyErrorText===T&&delete o[t].keyErrorText,V(o),I(o);},[i,w,v,C,T,I]);return jsxs(DragDropContext,{onDragEnd:ie,onDragUpdate:se,children:[jsx(Droppable,{droppableId:e$1??r,isDropDisabled:!!f||!!a$1,children:n=>jsxs(Se,{ref:n.innerRef,...n.droppableProps,children:[jsxs(he,{ref:D,readOnly:!!a$1,disableReorder:!!f,hasScrollBar:!!x||!!c$1?.height,children:[jsx(a,{id:"avpLabelForKeys",required:F,children:l}),jsx(a,{id:"avpLabelForValues",required:M,children:p})]}),c$1&&D.current&&jsx(Virtuoso,{context:{headerRef:D,virtualizedAvpListOption:c$1},style:{height:c$1.height?c$1.height:"auto",minHeight:c$1.minHeight?c$1.minHeight:40},useWindowScroll:c$1.useWindowScrolling,increaseViewportBy:c$1.increaseViewportBy,components:{List:le},initialTopMostItemIndex:c$1.initialTopMostItemIndex??0,data:i,itemContent:(t,o)=>jsx(U,{id:`${t}`,index:t,avpKey:o.key,avpValue:o.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(t),onBlur:Y,keyErrorText:o.keyErrorText,valueErrorText:o.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a$1,emptyFieldDisplayValue:E,disableReorder:f},`${t}`)}),!c$1&&D.current&&jsx("div",{style:x?{maxHeight:x,overflowY:"auto"}:void 0,children:jsx(ae,{style:{width:x?D.current.offsetWidth-16:"100%"},children:i.map((t,o)=>jsx(U,{id:`${o}`,index:o,avpKey:t.key,avpValue:t.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(o),onBlur:Y,keyErrorText:t.keyErrorText,valueErrorText:t.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a$1,emptyFieldDisplayValue:E,disableReorder:f},`${o}`))})}),n.placeholder]})}),u&&jsxs("div",{style:{paddingLeft:"16px"},children:[u&&!h&&!S&&jsx(c,{children:u}),u&&!S&&h&&jsx(g,{children:u}),u&&S&&jsx(e,{children:u})]})]})},Ee=Ae;export{Ee as SolaceAttributeValuePairForm};//# sourceMappingURL=drag-drop.modern.mjs.map
1
+ import {a,d}from'./chunk-2KEJ5AH7.modern.mjs';import {c,g,e}from'./chunk-54TEARQI.modern.mjs';import'./chunk-QKQRCYG4.modern.mjs';import {wa,ua,Na}from'./chunk-I7OJ5H4U.modern.mjs';import be,{useState,useRef,useEffect,useCallback}from'react';import {DragDropContext,Droppable,Draggable}from'@hello-pangea/dnd';import {jsx,jsxs}from'react/jsx-runtime';import {Virtuoso}from'react-virtuoso';var re=({fill:e,opacity:r})=>jsx(Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsx("g",{transform:"translate(5,3)",children:jsx("path",{d:"M9.5 0H4.5L3.5 1H0.401C0.179 1 0 1.179 0 1.401V2.599C0 2.821 0.179 3 0.401 3H13.599C13.821 3 14 2.821 14 2.599V1.401C14 1.179 13.821 1 13.599 1H10.5L9.5 0ZM10.875 6L10.118 16H3.882L3.125 6H10.875ZM12.59 4H1.39C1.159 4 0.982 4.196 1 4.426L2 17.634C2.016 17.841 2.193 18 2.4 18H11.6C11.807 18 11.984 17.841 12 17.635L13 4.427C13.018 4.196 12.82 4 12.59 4Z",fill:e,opacity:r})})});var te=({fill:e,opacity:r})=>jsx(Na,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsx("g",{transform:"translate(7,4)",children:jsx("path",{d:"M4 14C4 15.1 3.1 16 2 16C0.9 16 0 15.1 0 14C0 12.9 0.9 12 2 12C3.1 12 4 12.9 4 14ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 4C9.1 4 10 3.1 10 2C10 0.9 9.1 0 8 0C6.9 0 6 0.9 6 2C6 3.1 6.9 4 8 4ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12Z",fill:e,fillOpacity:r})})});var pe=(e,r,a,l)=>{let p="";return r!==null&&a!==null&&(r&&a+1===l||!r&&a===l)&&(p=`1px solid ${e.palette.ux.accent.n2.wMain}`),p},ce=wa("div",{shouldForwardProp:e=>e!=="isDragging"&&e!=="dropOverIndex"&&e!=="dropFromTop"&&e!=="readOnly"&&e!=="disableReorder"})(({theme:e,isDragging:r,dropOverIndex:a,index:l,dropFromTop:p,readOnly:s,disableReorder:b})=>({...e.mixins.formComponent_AVPItem.container,backgroundColor:r?e.palette.ux.brand.w10:"inherit",borderTop:pe(e,p,a,l),gridTemplateColumns:s?"0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px":b?"0px 1fr 8px 1fr 40px":"32px 1fr 8px 1fr 40px"})),me=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForKey})),de=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPItem.inputWrapperForValue})),ge=wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="isDragging"&&e!=="readOnly"})(({theme:e,ghostItem:r,isDragging:a,readOnly:l})=>({...e.mixins.formComponent_AVPItem.moveButton,cursor:r?"default":a?"move":"pointer",display:l?"none":"inherit"})),fe=wa("div",{shouldForwardProp:e=>e!=="ghostItem"&&e!=="cursor"&&e!=="background"&&e!=="readOnly"})(({theme:e,ghostItem:r,cursor:a,background:l,readOnly:p})=>({...e.mixins.formComponent_AVPItem.deleteButton,cursor:a,display:p?"none":"inherit",height:"fit-content",":hover":{backgroundColor:l,svg:{path:{fill:r?e.palette.ux.secondary.w40:e.palette.ux.deprecated.primary.wMain}}},paddingBottom:e.spacing(.5),marginLeft:e.spacing(1)})),oe=wa("div")(({theme:e})=>({paddingTop:"7px",color:e.palette.ux.secondary.text.wMain}));var U=({id:e,index:r,avpKey:a,avpValue:l,dataTags:p,ghostItem:s=false,onDelete:b,onChange:v,onKeyUp:C,onBlur:F,keyErrorText:M,valueErrorText:E,dropOverIndex:w,dropFromTop:T,readOnly:u,emptyFieldDisplayValue:S="",disableReorder:h=false})=>{let f=ua();return jsx(Draggable,{draggableId:e,index:r,isDragDisabled:s||h,children:(x,c)=>jsxs(ce,{ref:x.innerRef,...x.draggableProps,isDragging:c.isDragging,dropOverIndex:w,dropFromTop:T,index:r,readOnly:!!u,disableReorder:h,children:[!h&&jsx(ge,{...x.dragHandleProps,isDragging:c.isDragging,ghostItem:s,readOnly:!!u,"data-qa":`avpMove-${r}`,children:jsx(te,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})}),jsxs(me,{children:[!a&&l&&u&&jsx(oe,{"data-qa":`avpKey-${r}`,children:S}),(a||!a&&!u)&&jsx(d,{name:"key",dataQa:`avpKey-${r}`,dataTags:p,value:a,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!M,helperText:s?"":M,readOnly:u})]}),jsxs(de,{children:[a&&!l&&u&&jsx(oe,{"data-qa":`avpValue-${r}`,children:S}),(l||!l&&!u)&&jsx(d,{name:"value",dataQa:`avpValue-${r}`,dataTags:p,value:l,onChange:i=>v(i,r),onKeyUp:C,onBlur:i=>F(i,r),hasErrors:s?false:!!E,helperText:s?"":E,readOnly:u})]}),jsx(fe,{onClick:i=>b(i,r),tabIndex:0,ghostItem:s,cursor:s?"default":"pointer",background:s?"inherit":f.palette.ux.secondary.w10,readOnly:!!u,"data-qa":`avpDelete-${r}`,children:jsx(re,{fill:s?f.palette.ux.secondary.w40:f.palette.ux.secondary.wMain,opacity:1})})]})})};var Se=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.container})),he=wa("div")(({theme:e,readOnly:r,disableReorder:a,hasScrollBar:l})=>({...e.mixins.formComponent_AVPForm.labelWrapper,gridTemplateColumns:r?`0px minmax(0, 1fr) 8px minmax(0, 1fr) 0px${l?" 16px":""}`:a?`0px 1fr 8px 1fr 32px${l?" 16px":""}`:`32px 1fr 8px 1fr 32px${l?" 16px":""}`})),ae=wa("div")(({theme:e})=>({...e.mixins.formComponent_AVPForm.listWrapper})),Ve=(e,r,a)=>{let l=Array.from(e),[p]=l.splice(r,1);return l.splice(a,0,p),l},ne=(e,r)=>e[r].key===""&&e[r].value==="";var Ie=(e,r,a)=>{e==="ArrowUp"&&r-1>0?a[r-2].select():e==="ArrowDown"&&r+2<a.length?a[r+2].select():e==="Enter"&&r+2<a.length&&(r%2===0?a[r+2].select():r%2===1&&a[r+1].select());},le=be.forwardRef((e,r)=>{let a=e.context?.headerRef,l=e.context?.virtualizedAvpListOption,p=e.style;return jsx(ae,{...e,ref:r,style:{...p,width:l?.height&&a.current?a.current.offsetWidth-16:"100%"}})});le.displayName="List";var Ae=({id:e$1,name:r,readOnly:a$1,labelForKeys:l="Name",labelForValues:p="DisplayName",avpList:s=[],onAVPListUpdate:b,avpKeyValidationCallback:v,avpValueValidationCallback:C,enableRequiredKeyFieldIndicator:F,enableRequiredValueFieldIndicator:M,emptyFieldDisplayValue:E="",keyRequired:w=true,keyIsRequiredMessage:T="Required",helperText:u="",hasErrors:S=false,hasWarnings:h=false,disableReorder:f=false,avpListMaxHeight:x,virtualizedAvpListOption:c$1})=>{let[i,V]=useState(s),[N,R]=useState(null),[_,B]=useState(null),D=useRef(null);useEffect(()=>{let n=[...s];n.push({key:"",value:""}),V(n);},[s]);let I=useCallback(n=>{V(n),b&&ne(n,n.length-1)&&b(n.slice(0,-1)),R(null),B(null);},[b]),ie=n=>{if(!n.destination||n.destination.index===n.source.index||n.destination.index===i.length-1)return;let t=Ve(i,n.source.index,n.destination.index);V(t),b&&ne(t,t.length-1)&&b(t.slice(0,-1)),R(null),B(null);},se=n=>{let t=n.source.index,o=n?.destination?.index??null,m=o,y=null;t!==null&&o!==null&&(t>o?y=false:t<o&&(y=true)),R(m),B(y);},J=useCallback((n,t)=>{let o=n.name,m=n.value,y=[...i];y[t][o]=m,o&&y.length-1===t&&y.push({key:"",value:""}),V(y),I(y);},[i,I]),L=useCallback(n=>n===i.length-1,[i.length]),X=useCallback((n,t)=>{if(n.type==="click"&&!L(t)&&i.length>1){let o=[...i];o.splice(t,1),V(o),I(o);}},[i,I,L]),Q=useCallback(n=>{let t=document.querySelectorAll("[data-tags='avpInput']"),o=document.activeElement;for(let m=0;m<t.length;m++)t[m].getAttribute("data-qa")===o?.getAttribute("data-qa")&&Ie(n.key,m,t);},[]),Y=useCallback((n,t)=>{let o=[...i];if(o[t].key=o[t].key.trim(),o[t].value=o[t].value.trim(),n.target.getAttribute("name")==="key"&&v){let m=v(n.target.value,o.slice(0,-1));m?o[t].keyErrorText=m:delete o[t].keyErrorText;}if(n.target.getAttribute("name")==="value"&&C){let m=C(n.target.value,o.slice(0,-1));m?o[t].valueErrorText=m:delete o[t].valueErrorText;}w&&!o[t].key?o[t].keyErrorText=T:o[t].keyErrorText===T&&delete o[t].keyErrorText,V(o),I(o);},[i,w,v,C,T,I]);return jsxs(DragDropContext,{onDragEnd:ie,onDragUpdate:se,children:[jsx(Droppable,{droppableId:e$1??r,isDropDisabled:!!f||!!a$1,children:n=>jsxs(Se,{ref:n.innerRef,...n.droppableProps,children:[jsxs(he,{ref:D,readOnly:!!a$1,disableReorder:!!f,hasScrollBar:!!x||!!c$1?.height,children:[jsx(a,{id:"avpLabelForKeys",required:F,children:l}),jsx(a,{id:"avpLabelForValues",required:M,children:p})]}),c$1&&D.current&&jsx(Virtuoso,{context:{headerRef:D,virtualizedAvpListOption:c$1},style:{height:c$1.height?c$1.height:"auto",minHeight:c$1.minHeight?c$1.minHeight:40},useWindowScroll:c$1.useWindowScrolling,increaseViewportBy:c$1.increaseViewportBy,components:{List:le},initialTopMostItemIndex:c$1.initialTopMostItemIndex??0,data:i,itemContent:(t,o)=>jsx(U,{id:`${t}`,index:t,avpKey:o.key,avpValue:o.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(t),onBlur:Y,keyErrorText:o.keyErrorText,valueErrorText:o.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a$1,emptyFieldDisplayValue:E,disableReorder:f},`${t}`)}),!c$1&&D.current&&jsx("div",{style:x?{maxHeight:x,overflowY:"auto"}:void 0,children:jsx(ae,{style:{width:x?D.current.offsetWidth-16:"100%"},children:i.map((t,o)=>jsx(U,{id:`${o}`,index:o,avpKey:t.key,avpValue:t.value,dataTags:"avpInput",onChange:J,onDelete:X,onKeyUp:Q,ghostItem:L(o),onBlur:Y,keyErrorText:t.keyErrorText,valueErrorText:t.valueErrorText,dropOverIndex:N,dropFromTop:_,readOnly:a$1,emptyFieldDisplayValue:E,disableReorder:f},`${o}`))})}),n.placeholder]})}),u&&jsxs("div",{style:{paddingLeft:"16px"},children:[u&&!h&&!S&&jsx(c,{children:u}),u&&!S&&h&&jsx(g,{children:u}),u&&S&&jsx(e,{children:u})]})]})},Ee=Ae;export{Ee as SolaceAttributeValuePairForm};//# sourceMappingURL=drag-drop.modern.mjs.map
2
2
  //# sourceMappingURL=drag-drop.modern.mjs.map