streamlit-nightly 1.44.2.dev20250407__py3-none-any.whl → 1.44.2.dev20250408__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/elements/html.py +49 -6
- streamlit/elements/toast.py +1 -1
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/ErrorOutline.esm.DSjDU6hg.js +1 -0
- streamlit/static/static/js/{FileDownload.esm.76_siAan.js → FileDownload.esm.MP0Y7oIj.js} +1 -1
- streamlit/static/static/js/{FileHelper.C-t60d9I.js → FileHelper.bnXSo7OV.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.BxIPIP5L.js → FormClearHelper.CLDwj9kh.js} +1 -1
- streamlit/static/static/js/{Hooks.CsneG6D-.js → Hooks.VjWlz_Rn.js} +1 -1
- streamlit/static/static/js/{InputInstructions.CzJqQPUo.js → InputInstructions.DFiLTmz1.js} +1 -1
- streamlit/static/static/js/{ProgressBar.rnqmSFc7.js → ProgressBar.off0TGtX.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BT1iglcq.js → RenderInPortalIfExists.DTskLJHI.js} +1 -1
- streamlit/static/static/js/{Toolbar.C-G8EZDL.js → Toolbar.CTu3d8D7.js} +1 -1
- streamlit/static/static/js/{base-input.BE23gnVe.js → base-input.C7tRlAIM.js} +1 -1
- streamlit/static/static/js/{checkbox.5KG91rAf.js → checkbox.CwTEhBdp.js} +1 -1
- streamlit/static/static/js/{createSuper.Djpx0JHn.js → createSuper.Bcw8lad5.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.D5ZEJ6-g.js → data-grid-overlay-editor.DSy1Tixt.js} +1 -1
- streamlit/static/static/js/{downloader.2PLh9ewR.js → downloader.DhJkgdqA.js} +1 -1
- streamlit/static/static/js/{es6.Co_R4Vrv.js → es6.CwZ1-vgm.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.xC-s1Xv_.js → iframeResizer.contentWindow.yFVrq6r9.js} +1 -1
- streamlit/static/static/js/{index.DhlyA8r5.js → index.BFro_XJQ.js} +1 -1
- streamlit/static/static/js/{index.CdIt7R38.js → index.BGIau_un.js} +1 -1
- streamlit/static/static/js/{index.DNsBOU6p.js → index.BHyoCuxX.js} +5 -5
- streamlit/static/static/js/index.BOdyQmNs.js +1 -0
- streamlit/static/static/js/{index.CwBkmOEf.js → index.BPSb4o9f.js} +1 -1
- streamlit/static/static/js/index.BQ9nPmTp.js +2 -0
- streamlit/static/static/js/{index.DpkiOR-s.js → index.BXAlNua2.js} +1 -1
- streamlit/static/static/js/{index.CNErThK-.js → index.Bd_yRoTX.js} +1 -1
- streamlit/static/static/js/{index.BLuvs8YB.js → index.BlACkzMt.js} +1 -1
- streamlit/static/static/js/{index.3lMrZLLw.js → index.BqlCVjpn.js} +1 -1
- streamlit/static/static/js/{index.G5BB57Lk.js → index.BxMQ4DX_.js} +1 -1
- streamlit/static/static/js/{index.Cm77Rq1x.js → index.C4T99Mxj.js} +1 -1
- streamlit/static/static/js/{index.KrzfTD2f.js → index.CEExGR4M.js} +1 -1
- streamlit/static/static/js/{index.CVpc4758.js → index.CG3uYyT0.js} +1 -1
- streamlit/static/static/js/{index.CMDu4q8N.js → index.CJdpdElI.js} +1 -1
- streamlit/static/static/js/{index.BhwLaup4.js → index.CUNW1kxX.js} +1 -1
- streamlit/static/static/js/index.CXcuTOuz.js +12 -0
- streamlit/static/static/js/{index.BDb06VAk.js → index.Cdb2iwhg.js} +1 -1
- streamlit/static/static/js/{index.DZ1bfx6i.js → index.Ce8fkqNo.js} +1 -1
- streamlit/static/static/js/{index.DUB8mvGX.js → index.CenywzOJ.js} +1 -1
- streamlit/static/static/js/index.Cs1SIlNX.js +1 -0
- streamlit/static/static/js/{index.BhQfRF6s.js → index.D2KtK9h6.js} +1 -1
- streamlit/static/static/js/{index.CL9k-WRa.js → index.D5uMU4wi.js} +1 -1
- streamlit/static/static/js/{index.5KFYXBbC.js → index.DE24g2po.js} +4 -4
- streamlit/static/static/js/{index.CbPbNHEK.js → index.DF2FDvyE.js} +1 -1
- streamlit/static/static/js/{index.DIQp9MZY.js → index.DLoUIYPv.js} +1 -1
- streamlit/static/static/js/{index.DEqbXo0i.js → index.DV4EUNDN.js} +1 -1
- streamlit/static/static/js/{index.C4Lfn2XI.js → index.DWOu8SpX.js} +1 -1
- streamlit/static/static/js/{index.BDCmLPQN.js → index.DePtEXKq.js} +1 -1
- streamlit/static/static/js/{index.CD3nk9Fu.js → index.Dh-EFSfE.js} +1 -1
- streamlit/static/static/js/{index.LEPdg6O5.js → index.DhWU9FLm.js} +1 -1
- streamlit/static/static/js/{index.7G_phRf1.js → index.Dkjkylia.js} +1 -1
- streamlit/static/static/js/{index.DyhGBqck.js → index.Dolm78OU.js} +1 -1
- streamlit/static/static/js/{index.uyVXCnCm.js → index.DumkY_ai.js} +1 -1
- streamlit/static/static/js/{index.7c-G8UGV.js → index.S7ytOYeg.js} +1 -1
- streamlit/static/static/js/{index.CHq7UPqh.js → index.Vb3YozJZ.js} +1 -1
- streamlit/static/static/js/{index.DSs7V2Hz.js → index.ZB5DUbFj.js} +1 -1
- streamlit/static/static/js/{input.Dj1y6w2g.js → input.D5p4zjR-.js} +1 -1
- streamlit/static/static/js/{memory.ClgbFfRV.js → memory.B-tBAWq8.js} +1 -1
- streamlit/static/static/js/{mergeWith.p3MKF-Jv.js → mergeWith.VarEojvY.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.DSy8B0d4.js → number-overlay-editor.DF3YMcvz.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.PqdlS9VN.js → possibleConstructorReturn.x0y5Hwao.js} +1 -1
- streamlit/static/static/js/{sandbox.JYNAoHIv.js → sandbox.PAmgiyTm.js} +1 -1
- streamlit/static/static/js/{textarea.BRz2PqBl.js → textarea.Chzq21af.js} +1 -1
- streamlit/static/static/js/{timepicker.CLWT7Rjp.js → timepicker.KqUgVL_2.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BesBwzeG.js → toConsumableArray.CCgVnmHa.js} +1 -1
- streamlit/static/static/js/{uniqueId.HRwxnbrd.js → uniqueId.BwdyZDBa.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.QU3v4y2-.js → useBasicWidgetState.DbFhbmmI.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.BbhxtdXj.js → useOnInputChange.CuEy9nYs.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.BhOSdZrO.js → withFullScreenWrapper.DJLJxm4u.js} +1 -1
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250408.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250408.dist-info}/RECORD +75 -74
- streamlit/static/static/js/index.CLlijDQ8.js +0 -12
- streamlit/static/static/js/index.CbEMdCQd.js +0 -1
- streamlit/static/static/js/index.D8OA-3wz.js +0 -1
- streamlit/static/static/js/index.fNuc0k1L.js +0 -2
- {streamlit_nightly-1.44.2.dev20250407.data → streamlit_nightly-1.44.2.dev20250408.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250408.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250408.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250408.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
import{bv as q,bw as J,r as f,bx as Q,z as Y,by as s,j as S,C as ee,br as te,bz as re,bs as ne,ba as oe,bA as ie,bt as ae,bp as ue,b5 as C,b4 as W,b7 as le}from"./index.
|
1
|
+
import{bv as q,bw as J,r as f,bx as Q,z as Y,by as s,j as S,C as ee,br as te,bz as re,bs as ne,ba as oe,bA as ie,bt as ae,bp as ue,b5 as C,b4 as W,b7 as le}from"./index.DE24g2po.js";import{a as ce}from"./useBasicWidgetState.DbFhbmmI.js";import"./FormClearHelper.CLDwj9kh.js";var se={secondary:"secondary"},G={default:"default"},fe={default:"default"},k=Object.freeze({radio:"radio",checkbox:"checkbox"}),z=q("div",function(e){var t=e.$shape,r=e.$length,n=e.$theme,o=r===1?void 0:t!==G.default?"-".concat(n.sizing.scale100):"-0.5px";return{display:"flex",marginLeft:o,marginRight:o}});z.displayName="StyledRoot";z.displayName="StyledRoot";function j(e){"@babel/helpers - typeof";return j=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},j(e)}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(n){N(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function de(e,t){return me(e)||he(e,t)||be(e,t)||ye()}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(e,t){if(e){if(typeof e=="string")return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(e,t)}}function X(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function he(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,p;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,p=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function me(e){if(Array.isArray(e))return e}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Se(e,t,r){return t&&ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oe(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&&$(e,t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},$(e,t)}function Ee(e){var t=we();return function(){var n=A(e),o;if(t){var i=A(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return _e(this,o)}}function _e(e,t){if(t&&(j(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 we(){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 A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},A(e)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Le(e,t){return!Array.isArray(e)&&typeof e!="number"?!1:Array.isArray(e)?e.includes(t):e===t}var F=function(e){Oe(r,e);var t=Ee(r);function r(){var n;ge(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),N(K(n),"childRefs",{}),n}return Se(r,[{key:"render",value:function(){var o=this,i=this.props,a=i.overrides,p=a===void 0?{}:a,c=i.mode,P=c===void 0?k.checkbox:c,d=i.children,y=i.selected,h=i.disabled,l=i.onClick,_=i.kind,m=i.shape,w=i.size,I=J(p.Root,z),O=de(I,2),E=O[0],L=O[1],H=this.props["aria-label"]||this.props.ariaLabel,g=P===k.radio,V=f.Children.count(d);return f.createElement(Q.Consumer,null,function(Z){return f.createElement(E,M({"aria-label":H||Z.buttongroup.ariaLabel,"data-baseweb":"button-group",role:g?"radiogroup":"group",$shape:m,$length:d.length},L),f.Children.map(d,function(b,R){if(!f.isValidElement(b))return null;var T=b.props.isSelected?b.props.isSelected:Le(y,R);return g&&(o.childRefs[R]=f.createRef()),f.cloneElement(b,{disabled:h||b.props.disabled,isSelected:T,ref:g?o.childRefs[R]:void 0,tabIndex:!g||T||g&&(!y||y===-1)&&R===0?0:-1,onKeyDown:function(u){if(g){var v=Number(y)?Number(y):0;if(u.key==="ArrowUp"||u.key==="ArrowLeft"){u.preventDefault&&u.preventDefault();var B=v-1<0?V-1:v-1;l&&l(u,B),o.childRefs[B].current&&o.childRefs[B].current.focus()}if(u.key==="ArrowDown"||u.key==="ArrowRight"){u.preventDefault&&u.preventDefault();var D=v+1>V-1?0:v+1;l&&l(u,D),o.childRefs[D].current&&o.childRefs[D].current.focus()}}},kind:_,onClick:function(u){h||(b.props.onClick&&b.props.onClick(u),l&&l(u,R))},shape:m,size:w,overrides:pe({BaseButton:{style:function(u){var v=u.$theme;return d.length===1?{}:m!==G.default?{marginLeft:v.sizing.scale100,marginRight:v.sizing.scale100}:{marginLeft:"0.5px",marginRight:"0.5px"}},props:{"aria-checked":T,role:g?"radio":"checkbox"}}},b.props.overrides)})}))})}}]),r}(f.Component);N(F,"defaultProps",{disabled:!1,onClick:function(){},shape:G.default,size:fe.default,kind:se.secondary});function Re(e,t){return t.includes(e)?t.filter(r=>r!==e):[...t,e]}function Ce(e,t,r){return e==s.ClickMode.MULTI_SELECT?Re(t,r??[]):r!=null&&r.includes(t)?[]:[t]}function Pe(e){return e.length===0?-1:e[0]}function ke(e,t,r,n){t.setIntArrayValue(e,r.value,{fromUi:r.fromUi},n)}function Ae(e,t,r){const n=r===s.Style.PILLS?C.PILLS:r===s.Style.BORDERLESS?C.BORDERLESS_ICON:C.SEGMENTED_CONTROL,o=r===s.Style.BORDERLESS?W.XSMALL:W.MEDIUM,i=n===C.PILLS||n===C.SEGMENTED_CONTROL,a=r===s.Style.BORDERLESS?"lg":"base";return{element:S(le,{icon:t,label:e,iconSize:a,useSmallerFont:i}),kind:n,size:o}}function Ie(e,t,r,n){return r.indexOf(n)>-1?!0:t!==s.ClickMode.SINGLE_SELECT||e!==s.SelectionVisualization.ALL_UP_TO_SELECTED?!1:r.length>0&&n<r[0]}function Te(e,t){return e&&(t=`${t}Active`),t}function Be(e,t){const r={flexWrap:"wrap",maxWidth:"fit-content"};switch(e){case s.Style.BORDERLESS:return{...r,columnGap:t.threeXS,rowGap:t.threeXS};case s.Style.PILLS:return{...r,columnGap:t.twoXS,rowGap:t.twoXS};case s.Style.SEGMENTED_CONTROL:return{...r,columnGap:t.none,rowGap:t.twoXS,"::after":{content:"''",flex:1e4}};default:return r}}function De(e,t,r,n,o,i){const a=Ie(r,n,o,t);let p=e.content,c=e.contentIcon;return a&&(p=e.selectedContent?e.selectedContent:p,c=e.selectedContentIcon?e.selectedContentIcon:c),f.forwardRef(function(d,y){const{element:h,kind:l,size:_}=Ae(p??"",c??void 0,i),m=Te(!!(a&&!e.selectedContent&&!e.selectedContentIcon),l);return S(ue,{...d,size:_,kind:m,children:h})})}function je(e,t){return e.getIntArrayValue(t)}function Me(e){return e.default??null}function $e(e){return e.value??null}function Ge(e){const{disabled:t,element:r,fragmentId:n,widgetMgr:o}=e,{clickMode:i,options:a,selectionVisualization:p,style:c,label:P,labelVisibility:d,help:y}=r,h=Y(),[l,_]=ce({getStateFromWidgetMgr:je,getDefaultStateFromProto:Me,getCurrStateFromProto:$e,updateWidgetMgrState:ke,element:r,widgetMgr:o,fragmentId:n}),m=(O,E)=>{const L=Ce(i,E,l);_({value:L,fromUi:!0})};let w;i===s.ClickMode.SINGLE_SELECT?w=k.radio:i===s.ClickMode.MULTI_SELECT&&(w=k.checkbox);const I=f.useMemo(()=>a.map((O,E)=>{const L=De(O,E,p,i,l,c);return S(L,{},`${O.content}-${E}`)}),[i,a,p,c,l]);return ee("div",{className:"stButtonGroup","data-testid":"stButtonGroup",children:[S(ae,{label:P,disabled:t,labelVisibility:te((d==null?void 0:d.value)??ie.LabelVisibilityOptions.COLLAPSED),children:y&&S(re,{children:S(ne,{content:y,placement:oe.TOP})})}),S(F,{disabled:t,mode:w,onClick:m,selected:i===s.ClickMode.MULTI_SELECT?l:Pe(l),overrides:{Root:{style:f.useCallback(()=>Be(c,h.spacing),[c,h.spacing])}},children:I})]})}const Ue=f.memo(Ge);export{Ue as default};
|