streamlit-nightly 1.53.1.dev20260120__py3-none-any.whl → 1.53.2.dev20260122__py3-none-any.whl
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.
- streamlit/connections/snowflake_connection.py +5 -2
- streamlit/elements/lib/options_selector_utils.py +63 -19
- streamlit/elements/widgets/multiselect.py +31 -7
- streamlit/elements/widgets/radio.py +91 -31
- streamlit/elements/widgets/selectbox.py +38 -16
- streamlit/proto/Radio_pb2.py +4 -2
- streamlit/proto/Radio_pb2.pyi +20 -3
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +308 -308
- streamlit/static/static/js/{ErrorOutline.esm.CqVEQ-uJ.js → ErrorOutline.esm.CIFYUdwC.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.G-HJG6nt.js → FileDownload.esm.DWVTnTHm.js} +1 -1
- streamlit/static/static/js/{FileHelper.Bd4bPp0Y.js → FileHelper.BPYQIPd1.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.B74VElyu.js → FormClearHelper.CypmvhYZ.js} +1 -1
- streamlit/static/static/js/{InputInstructions.ClBLOwfm.js → InputInstructions.Bi62hDTQ.js} +1 -1
- streamlit/static/static/js/{Particles.CyYskark.js → Particles.yebG0VuV.js} +1 -1
- streamlit/static/static/js/{ProgressBar.vWX1Igzt.js → ProgressBar.Dy9CI6w4.js} +1 -1
- streamlit/static/static/js/{StreamlitSyntaxHighlighter.BNhyeEtl.js → StreamlitSyntaxHighlighter.Btk92CPv.js} +1 -1
- streamlit/static/static/js/{TableChart.esm.Mk-Hvy1t.js → TableChart.esm.DBeVaFNt.js} +1 -1
- streamlit/static/static/js/{Toolbar.NhlhlTzK.js → Toolbar.DC2Tp-qb.js} +1 -1
- streamlit/static/static/js/{WidgetLabelHelpIconInline.Ch9VDnrM.js → WidgetLabelHelpIconInline.3DnEd9BK.js} +1 -1
- streamlit/static/static/js/{base-input.DSh9H2uv.js → base-input.7Sj6pVk0.js} +1 -1
- streamlit/static/static/js/{checkbox.DCFAQrRB.js → checkbox.CcUx3XuQ.js} +1 -1
- streamlit/static/static/js/{createDownloadLinkElement.D5zpcd24.js → createDownloadLinkElement.DZuwkCqy.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.GAqbIurd.js → data-grid-overlay-editor.Dw-AewlN.js} +1 -1
- streamlit/static/static/js/{downloader.C1MBZFo2.js → downloader.Bsx5M2Du.js} +1 -1
- streamlit/static/static/js/{embed.CZG6oOsc.js → embed.C7by6AoE.js} +1 -1
- streamlit/static/static/js/{es6.toHnBzIb.js → es6.BpAqZaR_.js} +2 -2
- streamlit/static/static/js/{formatNumber.BsU-5o3V.js → formatNumber.DjehVPVS.js} +1 -1
- streamlit/static/static/js/{iconPosition.OKOYrH6A.js → iconPosition.D02OPE-d.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.D6yxU4DL.js → iframeResizer.contentWindow.xtstqPd7.js} +1 -1
- streamlit/static/static/js/{index.CV4niwLB.js → index.-faJDV20.js} +1 -1
- streamlit/static/static/js/{index.D7Hgmilz.js → index.5H98WqjT.js} +1 -1
- streamlit/static/static/js/{index.0iCXW13-.js → index.8FPw0_gD.js} +1 -1
- streamlit/static/static/js/{index.D94k70Hg.js → index.B5tD5YeV.js} +1 -1
- streamlit/static/static/js/{index.YRiVxrFw.js → index.B8-HOwf1.js} +1 -1
- streamlit/static/static/js/{index.BW0F_Pbs.js → index.B9gbSNsw.js} +1 -1
- streamlit/static/static/js/{index.qjO5OK90.js → index.BB_iwaVr.js} +6 -6
- streamlit/static/static/js/{index.BXqtIpgi.js → index.BDlI2pRp.js} +1 -1
- streamlit/static/static/js/{index.EOvPT8N-.js → index.BGTMh3Uu.js} +1 -1
- streamlit/static/static/js/{index.Bhr3IHkD.js → index.BIcJe97b.js} +1 -1
- streamlit/static/static/js/{index.E4x2UBkh.js → index.BK9S5qug.js} +1 -1
- streamlit/static/static/js/{index._t3w-7R0.js → index.BOkpEbJS.js} +1 -1
- streamlit/static/static/js/{index.SBwNLdli.js → index.BV6XgCij.js} +1 -1
- streamlit/static/static/js/{index.CqywI2eW.js → index.BVhVdVeE.js} +1 -1
- streamlit/static/static/js/{index.CXLtvxrQ.js → index.Bhy8EBYI.js} +1 -1
- streamlit/static/static/js/{index.P0_E3iNi.js → index.Bo1ztye0.js} +1 -1
- streamlit/static/static/js/{index.C6LOxzFC.js → index.BqfJJr3c.js} +1 -1
- streamlit/static/static/js/{index.CJCEiqv2.js → index.Bri1T2TS.js} +1 -1
- streamlit/static/static/js/{index.MZ7ugsN-.js → index.BvZbnSMC.js} +1 -1
- streamlit/static/static/js/{index.CGt5hnLi.js → index.C5ehUqNt.js} +1 -1
- streamlit/static/static/js/{index.Bh0_7PvD.js → index.C9v49R-a.js} +1 -1
- streamlit/static/static/js/{index.Ch4X_YdF.js → index.CA0RmxJF.js} +1 -1
- streamlit/static/static/js/{index.B8mzpc1l.js → index.CEwnDCn9.js} +1 -1
- streamlit/static/static/js/{index.DhGqPx_f.js → index.CGbvkEtg.js} +1 -1
- streamlit/static/static/js/{index.ia5Ub9p7.js → index.CKUBdVQ9.js} +1 -1
- streamlit/static/static/js/{index.DGrQJk9x.js → index.CdRwiHPm.js} +1 -1
- streamlit/static/static/js/{index.dGk9EWLh.js → index.CgARjn28.js} +1 -1
- streamlit/static/static/js/{index.Dq0ZbGYZ.js → index.CyDHwK5P.js} +1 -1
- streamlit/static/static/js/{index.Blo8DAcU.js → index.D6J2UPzF.js} +1 -1
- streamlit/static/static/js/{index.DR8Ty3j4.js → index.D6Z9hKJY.js} +1 -1
- streamlit/static/static/js/{index.BVbT0yWJ.js → index.D9RL5sRp.js} +1 -1
- streamlit/static/static/js/{index.DwgEkDLk.js → index.DDu_qTm0.js} +1 -1
- streamlit/static/static/js/{index.5CwvMIZq.js → index.DJjSqPAx.js} +1 -1
- streamlit/static/static/js/{index.C_w1nWis.js → index.DO2T-QzF.js} +1 -1
- streamlit/static/static/js/{index.D0h2EJ_T.js → index.DSSapl3Q.js} +1 -1
- streamlit/static/static/js/{index.BkYhb--A.js → index.DZv5AoR1.js} +1 -1
- streamlit/static/static/js/{index.Bs4E_0D7.js → index.D_TIyPF4.js} +1 -1
- streamlit/static/static/js/{index.Dl2MB5Tx.js → index.DdxofXV8.js} +1 -1
- streamlit/static/static/js/{index.DJ8OTQbk.js → index.DgLRJfs3.js} +1 -1
- streamlit/static/static/js/{index.AkleAg_w.js → index.JL0uGAeJ.js} +1 -1
- streamlit/static/static/js/{index.BU8aUWlo.js → index.S-mjkUeF.js} +1 -1
- streamlit/static/static/js/{index.XgBfXgN1.js → index.XFMDBL5n.js} +1 -1
- streamlit/static/static/js/{index.-pgbbiGJ.js → index.ZIA43eTF.js} +1 -1
- streamlit/static/static/js/index.iF5zYERg.js +3 -0
- streamlit/static/static/js/{index.COcj-WpN.js → index.iXzAofuY.js} +1 -1
- streamlit/static/static/js/index.m3dn5Bai.js +188 -0
- streamlit/static/static/js/{index.BHWCIpbw.js → index.m4WkwGMu.js} +1 -1
- streamlit/static/static/js/{index.DbCS2N3T.js → index.x1B588Xu.js} +1 -1
- streamlit/static/static/js/{input.Bavj6HHJ.js → input.VYKyGuhi.js} +1 -1
- streamlit/static/static/js/{main.dnUTEH_j.js → main.u5Bb3MY7.js} +1 -1
- streamlit/static/static/js/{memory.Czf1Sxzc.js → memory.BOMt4yAV.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.CRQIke3a.js → number-overlay-editor.CihlAHgl.js} +1 -1
- streamlit/static/static/js/{pandasStylerUtils.agmr-LQ2.js → pandasStylerUtils.BuqSgXpk.js} +1 -1
- streamlit/static/static/js/{sandbox.BlCiIomw.js → sandbox.COGR4pqz.js} +1 -1
- streamlit/static/static/js/{styled-components.Bz3KSbhj.js → styled-components.BEf3c4IJ.js} +1 -1
- streamlit/static/static/js/{throttle.B1o314FW.js → throttle.Bl-XsA9N.js} +1 -1
- streamlit/static/static/js/{timepicker.3x4ndo9E.js → timepicker.B-HgBYlK.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BeHbBK8g.js → toConsumableArray.BrQebwtE.js} +1 -1
- streamlit/static/static/js/uniqueId.8R4hbkYl.js +1 -0
- streamlit/static/static/js/{useBasicWidgetState.CFP4_PTk.js → useBasicWidgetState.8WwISl9r.js} +1 -1
- streamlit/static/static/js/{useIntlLocale.BJubkaPQ.js → useIntlLocale.D37LWdCR.js} +1 -1
- streamlit/static/static/js/{useTextInputAutoExpand.DBGwhM4R.js → useTextInputAutoExpand.Bb_KqJvq.js} +1 -1
- streamlit/static/static/js/{useUpdateUiValue.CyufNQfR.js → useUpdateUiValue.D1BLS5t7.js} +1 -1
- streamlit/static/static/js/{useWaveformController.Dj5h0D8Y.js → useWaveformController.Ce0-qTws.js} +1 -1
- streamlit/static/static/js/{withCalculatedWidth.D0IRb-7w.js → withCalculatedWidth.BX2K3UVv.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.CHBnw0Co.js → withFullScreenWrapper.CqfGs8T2.js} +1 -1
- streamlit/testing/v1/element_tree.py +2 -2
- streamlit/watcher/event_based_path_watcher.py +37 -7
- streamlit/watcher/path_watcher.py +60 -1
- streamlit/watcher/util.py +26 -10
- streamlit/web/bootstrap.py +11 -2
- {streamlit_nightly-1.53.1.dev20260120.dist-info → streamlit_nightly-1.53.2.dev20260122.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.53.1.dev20260120.dist-info → streamlit_nightly-1.53.2.dev20260122.dist-info}/RECORD +107 -107
- {streamlit_nightly-1.53.1.dev20260120.dist-info → streamlit_nightly-1.53.2.dev20260122.dist-info}/WHEEL +1 -1
- streamlit/static/static/js/index.1sBZt_1I.js +0 -188
- streamlit/static/static/js/index.DRGDE5oo.js +0 -3
- streamlit/static/static/js/uniqueId.Zn1vZBLX.js +0 -1
- {streamlit_nightly-1.53.1.dev20260120.data → streamlit_nightly-1.53.2.dev20260122.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.53.1.dev20260120.dist-info → streamlit_nightly-1.53.2.dev20260122.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.53.1.dev20260120.dist-info → streamlit_nightly-1.53.2.dev20260122.dist-info}/top_level.txt +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{am as O,an as ye,w as $,r as u,l as $e,o as ne,j as M,P as Re,ac as Oe,q as oe,aa as ie,bq as ae,p as _e}from"./index.qjO5OK90.js";import{W as Se}from"./WidgetLabelHelpIconInline.Ch9VDnrM.js";import{u as Pe}from"./useBasicWidgetState.CFP4_PTk.js";import"./FormClearHelper.B74VElyu.js";var se={vertical:"vertical",horizontal:"horizontal"};function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(r){R(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=0,L=1,T=2;function z(e){return e.$isActive?T:e.$isHovered?L:E}function we(e){var t=e.$theme.colors,n=e.$disabled,r=e.$checked,o=e.$isFocusVisible,i=e.$error;if(n)return t.tickFillDisabled;if(r)if(i)switch(z(e)){case E:return t.tickFillErrorSelected;case L:return t.tickFillErrorSelectedHover;case T:return t.tickFillErrorSelectedHoverActive}else switch(z(e)){case E:return t.tickFillSelected;case L:return t.tickFillSelectedHover;case T:return t.tickFillSelectedHoverActive}else return o?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function Me(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(z(e)){case E:return t.tickFillError;case L:return t.tickFillErrorHover;case T:return t.tickFillErrorHoverActive}else switch(z(e)){case E:return t.tickFill;case L:return t.tickFillHover;case T:return t.tickFillActive}}function ke(e){var t=e.$labelPlacement,n=t===void 0?"":t,r=e.$theme,o;switch(n){case"top":o="Bottom";break;case"bottom":o="Top";break;case"left":o=r.direction==="rtl"?"Left":"Right";break;default:case"right":o=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,a=i.scale300;return R({},"padding".concat(o),a)}function Fe(e){var t=e.$disabled,n=e.$theme,r=n.colors;return t?r.contentSecondary:r.contentPrimary}var q=O("div",function(e){var t=e.$disabled,n=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:n==="horizontal"?"row":"column",alignItems:n==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});q.displayName="RadioGroupRoot";q.displayName="RadioGroupRoot";var X=O("label",function(e){var t,n=e.$disabled,r=e.$hasDescription,o=e.$labelPlacement,i=e.$theme,a=e.$align,s=i.sizing,c=a==="horizontal",p=i.direction==="rtl"?"Left":"Right";return t={flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:n?"not-allowed":"pointer",marginTop:s.scale200},R(t,"margin".concat(p),c?s.scale200:null),R(t,"marginBottom",r&&!c?null:s.scale200),t});X.displayName="Root";X.displayName="Root";var K=O("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{backgroundColor:Me(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});K.displayName="RadioMarkInner";K.displayName="RadioMarkInner";var J=O("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:we(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve}});J.displayName="RadioMarkOuter";J.displayName="RadioMarkOuter";var Q=O("div",function(e){var t=e.$theme.typography;return D(D({verticalAlign:"middle"},ke(e)),{},{color:Fe(e)},t.LabelMedium)});Q.displayName="Label";Q.displayName="Label";var Y=O("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});Y.displayName="Input";Y.displayName="Input";var Z=O("div",function(e){var t,n=e.$theme,r=e.$align,o=r==="horizontal",i=n.direction==="rtl"?"Right":"Left",a=n.direction==="rtl"?"Left":"Right";return D(D({},n.typography.ParagraphSmall),{},(t={color:n.colors.contentSecondary,cursor:"auto"},R(t,"margin".concat(i),r==="horizontal"?null:n.sizing.scale900),R(t,"margin".concat(a),o?n.sizing.scale200:null),R(t,"maxWidth","240px"),t))});Z.displayName="Description";Z.displayName="Description";function N(e){"@babel/helpers - typeof";return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(e)}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}function Ie(e,t){return xe(e)||Te(e,t)||Le(e,t)||Ee()}function Ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(e,t){if(e){if(typeof e=="string")return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}function ue(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Te(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function xe(e){if(Array.isArray(e))return e}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t,n){return t&&je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},U(e,t)}function Be(e){var t=He();return function(){var r=B(e),o;if(t){var i=B(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ce(this,o)}}function Ce(e,t){if(t&&(N(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},B(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=(function(e){ze(n,e);var t=Be(n);function n(){var r;Ae(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),j(A(r),"state",{isFocusVisible:!1,focusedRadioIndex:-1}),j(A(r),"handleFocus",function(s,c){ye(s)&&r.setState({isFocusVisible:!0}),r.setState({focusedRadioIndex:c}),r.props.onFocus&&r.props.onFocus(s)}),j(A(r),"handleBlur",function(s,c){r.state.isFocusVisible!==!1&&r.setState({isFocusVisible:!1}),r.setState({focusedRadioIndex:-1}),r.props.onBlur&&r.props.onBlur(s)}),r}return De(n,[{key:"render",value:function(){var o=this,i=this.props.overrides,a=i===void 0?{}:i,s=$(a.RadioGroupRoot,q),c=Ie(s,2),p=c[0],g=c[1];return u.createElement(p,V({id:this.props.id,role:"radiogroup","aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props.error||null,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],$align:this.props.align,$disabled:this.props.disabled,$error:this.props.error,$required:this.props.required},g),u.Children.map(this.props.children,function(f,l){if(!u.isValidElement(f))return null;var d=o.props.value===f.props.value;return u.cloneElement(f,{align:o.props.align,autoFocus:o.props.autoFocus,checked:d,disabled:o.props.disabled||f.props.disabled,error:o.props.error,isFocused:o.state.focusedRadioIndex===l,isFocusVisible:o.state.isFocusVisible,tabIndex:l===0&&!o.props.value||d?"0":"-1",labelPlacement:o.props.labelPlacement,name:o.props.name,onBlur:function(b){return o.handleBlur(b,l)},onFocus:function(b){return o.handleFocus(b,l)},onChange:o.props.onChange,onMouseEnter:o.props.onMouseEnter,onMouseLeave:o.props.onMouseLeave})}))}}]),n})(u.Component);j(pe,"defaultProps",{name:"",value:"",disabled:!1,autoFocus:!1,labelPlacement:"right",align:"vertical",error:!1,required:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onFocus:function(){},onBlur:function(){},overrides:{}});function G(e){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function w(e,t){return Ge(e)||Ue(e,t)||Ve(e,t)||Ne()}function Ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ve(e,t){if(e){if(typeof e=="string")return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}}function ce(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Ge(e){if(Array.isArray(e))return e}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t,n){return t&&qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},W(e,t)}function Je(e){var t=Ye();return function(){var r=C(e),o;if(t){var i=C(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Qe(this,o)}}function Qe(e,t){if(t&&(G(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C(e)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){return e==="top"||e==="left"}function et(e){return e==="bottom"||e==="right"}var tt=function(t){return t.stopPropagation()},fe=(function(e){Ke(n,e);var t=Je(n);function n(){var r;We(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),F(k(r),"state",{isActive:!1,isHovered:!1}),F(k(r),"onMouseEnter",function(s){r.setState({isHovered:!0}),r.props.onMouseEnter&&r.props.onMouseEnter(s)}),F(k(r),"onMouseLeave",function(s){r.setState({isHovered:!1}),r.props.onMouseLeave&&r.props.onMouseLeave(s)}),F(k(r),"onMouseDown",function(s){r.setState({isActive:!0}),r.props.onMouseDown&&r.props.onMouseDown(s)}),F(k(r),"onMouseUp",function(s){r.setState({isActive:!1}),r.props.onMouseUp&&r.props.onMouseUp(s)}),r}return Xe(n,[{key:"componentDidMount",value:function(){var o;this.props.autoFocus&&(o=this.props.inputRef)!==null&&o!==void 0&&o.current&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,a=$(i.Root,X),s=w(a,2),c=s[0],p=s[1],g=$(i.Label,Q),f=w(g,2),l=f[0],d=f[1],_=$(i.Input,Y),b=w(_,2),S=b[0],H=b[1],x=$(i.Description,Z),I=w(x,2),m=I[0],h=I[1],v=$(i.RadioMarkInner,K),ee=w(v,2),de=ee[0],he=ee[1],ge=$(i.RadioMarkOuter,J),te=w(ge,2),be=te[0],me=te[1],P={$align:this.props.align,$checked:this.props.checked,$disabled:this.props.disabled,$hasDescription:!!this.props.description,$isActive:this.state.isActive,$error:this.props.error,$isFocused:this.props.isFocused,$isFocusVisible:this.props.isFocused&&this.props.isFocusVisible,$isHovered:this.state.isHovered,$labelPlacement:this.props.labelPlacement,$required:this.props.required,$value:this.props.value},re=u.createElement(l,y({},P,d),this.props.containsInteractiveElement?u.createElement("div",{onClick:function(ve){return ve.preventDefault()}},this.props.children):this.props.children);return u.createElement(u.Fragment,null,u.createElement(c,y({"data-baseweb":"radio",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},P,p),Ze(this.props.labelPlacement)&&re,u.createElement(be,y({},P,me),u.createElement(de,y({},P,he))),u.createElement(S,y({"aria-invalid":this.props.error||null,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:tt,onChange:this.props.onChange,ref:this.props.inputRef,required:this.props.required,tabIndex:this.props.tabIndex,type:"radio",value:this.props.value},P,H)),et(this.props.labelPlacement)&&re),!!this.props.description&&u.createElement(m,y({},P,h),this.props.description))}}]),n})(u.Component);F(fe,"defaultProps",{overrides:{},containsInteractiveElement:!1,checked:!1,disabled:!1,autoFocus:!1,inputRef:u.createRef(),align:"vertical",error:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});function rt(e){const t=parseFloat(e.sizes.checkbox),n=parseFloat(e.spacing.threeXS),r=ie(t.toString()),o=Math.round(r*.375);let i=Math.round(ie((t-n).toString()));return i>=r&&(i-=1),[ae(o,"px"),ae(i,"px")]}function nt({disabled:e,horizontal:t,value:n,onChange:r,options:o,captions:i,label:a,labelVisibility:s,help:c}){const[p,g]=u.useState(n??null);u.useEffect(()=>{n!==p&&g(n??null)},[n]);const f=u.useCallback(m=>{const h=parseInt(m.target.value,10);g(h),r(h)},[r]),l=$e(),d=i.length>0,_=o.length>0,b=_?o:["No options to select."],S=e||!_,H=m=>m==""&&t&&d?" ":m,[x,I]=rt(l);return ne("div",{className:"stRadio","data-testid":"stRadio",children:[M(Oe,{label:a,disabled:S,labelVisibility:s,children:c&&M(Se,{content:c,placement:Re.TOP_RIGHT,label:a})}),M(pe,{onChange:f,value:p!==null?p.toString():void 0,disabled:S,align:t?se.horizontal:se.vertical,"aria-label":a,"data-testid":"stRadioGroup",overrides:{RadioGroupRoot:{style:{gap:d?l.spacing.sm:l.spacing.none,minHeight:l.sizes.minElementHeight}}},children:b.map((m,h)=>ne(fe,{value:h.toString(),overrides:{Root:{style:({$isFocusVisible:v})=>({marginBottom:l.spacing.none,marginTop:l.spacing.none,marginRight:d?l.spacing.sm:l.spacing.lg,paddingLeft:l.spacing.none,alignItems:"start",paddingRight:l.spacing.threeXS,backgroundColor:v?l.colors.darkenedBgMix25:""})},RadioMarkOuter:{style:({$checked:v})=>({width:l.sizes.checkbox,height:l.sizes.checkbox,marginTop:"0.35rem",marginRight:l.spacing.none,marginLeft:l.spacing.none,backgroundColor:v&&!S?l.colors.primary:l.colors.borderColor})},RadioMarkInner:{style:({$checked:v})=>({height:v?x:I,width:v?x:I})},Label:{style:{color:S?l.colors.fadedText40:l.colors.bodyText,position:"relative",top:l.spacing.px}}},children:[M(oe,{source:m,allowHTML:!1,isLabel:!0,largerLabel:!0}),d&&M(oe,{source:H(i[h]),allowHTML:!1,isCaption:!0,isLabel:!0})]},h))})]})}const ot=u.memo(nt);function it({disabled:e,element:t,widgetMgr:n,fragmentId:r}){const[o,i]=Pe({getStateFromWidgetMgr:at,getDefaultStateFromProto:st,getCurrStateFromProto:lt,updateWidgetMgrState:ut,element:t,widgetMgr:n,fragmentId:r}),a=u.useCallback(d=>{i({value:d,fromUi:!0})},[i]),{horizontal:s,options:c,captions:p,label:g,labelVisibility:f,help:l}=t;return M(ot,{label:g,onChange:a,options:c,captions:p,disabled:e,horizontal:s,labelVisibility:_e(f?.value),value:o??null,help:l})}function at(e,t){return e.getIntValue(t)}function st(e){return e.default??null}function lt(e){return e.value??null}function ut(e,t,n,r){t.setIntValue(e,n.value??null,{fromUi:n.fromUi},r)}const gt=u.memo(it);export{gt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as i}from"./index.qjO5OK90.js";var n=0;function u(r){var t=++n;return i(r)+t}export{u};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|