streamlit-nightly 1.44.1.dev20250326__py3-none-any.whl → 1.44.1.dev20250327__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.
Files changed (84) hide show
  1. streamlit/elements/lib/options_selector_utils.py +26 -5
  2. streamlit/elements/widgets/button_group.py +42 -11
  3. streamlit/elements/widgets/multiselect.py +166 -26
  4. streamlit/elements/widgets/selectbox.py +182 -38
  5. streamlit/proto/MultiSelect_pb2.py +4 -2
  6. streamlit/proto/MultiSelect_pb2.pyi +14 -2
  7. streamlit/proto/Selectbox_pb2.py +4 -2
  8. streamlit/proto/Selectbox_pb2.pyi +15 -2
  9. streamlit/static/index.html +1 -1
  10. streamlit/static/static/js/{FileDownload.esm.DyWffVOd.js → FileDownload.esm.jX-9l2Ep.js} +1 -1
  11. streamlit/static/static/js/{FileHelper.C5Rf1fu1.js → FileHelper.aCeQQwv9.js} +1 -1
  12. streamlit/static/static/js/{FormClearHelper.D2MZi-BE.js → FormClearHelper.CWUgHOqb.js} +1 -1
  13. streamlit/static/static/js/{Hooks.UTpr--3H.js → Hooks.z6bpnOa4.js} +1 -1
  14. streamlit/static/static/js/{InputInstructions.oXzay8Sc.js → InputInstructions.CxNXqmaa.js} +1 -1
  15. streamlit/static/static/js/{ProgressBar.Dkc6afbj.js → ProgressBar.DeJx_v03.js} +1 -1
  16. streamlit/static/static/js/{RenderInPortalIfExists.0vQEaJAa.js → RenderInPortalIfExists.BzVEnQEP.js} +1 -1
  17. streamlit/static/static/js/{Toolbar.BLonzKGv.js → Toolbar.Buaxb3gQ.js} +1 -1
  18. streamlit/static/static/js/{base-input.BVhyctGq.js → base-input.B02pchZb.js} +1 -1
  19. streamlit/static/static/js/{checkbox.DqunhWUH.js → checkbox.BNevNWhL.js} +1 -1
  20. streamlit/static/static/js/{createSuper.CpC2DZ-4.js → createSuper.HF1JI-bK.js} +1 -1
  21. streamlit/static/static/js/{data-grid-overlay-editor.BNc7oQAN.js → data-grid-overlay-editor.DHpEpsQ_.js} +1 -1
  22. streamlit/static/static/js/{downloader.BEmsLcSd.js → downloader.B32k91dq.js} +1 -1
  23. streamlit/static/static/js/{es6.Bka7yuWr.js → es6.j4L3xv_m.js} +2 -2
  24. streamlit/static/static/js/{iframeResizer.contentWindow.CseC9_0j.js → iframeResizer.contentWindow.DQOV--zq.js} +1 -1
  25. streamlit/static/static/js/{index.DcA9oLdi.js → index.1tdxODWC.js} +1 -1
  26. streamlit/static/static/js/{index.DDcRBpz_.js → index.B2-yUxP6.js} +1 -1
  27. streamlit/static/static/js/{index.NwBLa4vX.js → index.B28jf8c_.js} +13 -13
  28. streamlit/static/static/js/{index.DTByMWKb.js → index.BBHrAwbG.js} +1 -1
  29. streamlit/static/static/js/{index.DDfr2vz1.js → index.BDIF1v3E.js} +1 -1
  30. streamlit/static/static/js/{index.-uBfKDNW.js → index.BRDvEQpe.js} +1 -1
  31. streamlit/static/static/js/{index.CdRzA4dY.js → index.BT-PT2u0.js} +1 -1
  32. streamlit/static/static/js/{index.DPXDfP7O.js → index.BTG2J5Pk.js} +1 -1
  33. streamlit/static/static/js/{index.-GEjrTbP.js → index.BUz0sS-V.js} +1 -1
  34. streamlit/static/static/js/{index.sEBYkd7C.js → index.BeuGcxG8.js} +1 -1
  35. streamlit/static/static/js/{index.BgAs7EEH.js → index.BnYJb__c.js} +1 -1
  36. streamlit/static/static/js/{index.BGiS_myV.js → index.C-GJaT09.js} +12 -12
  37. streamlit/static/static/js/{index.CSzYGoqF.js → index.C1B9TyzK.js} +1 -1
  38. streamlit/static/static/js/{index.DfLVo1kK.js → index.CDMGlkYx.js} +1 -1
  39. streamlit/static/static/js/{index.DiZnms3l.js → index.CExICAHy.js} +1 -1
  40. streamlit/static/static/js/{index.Dg6pitBN.js → index.CKYXxi_d.js} +1 -1
  41. streamlit/static/static/js/index.CPMy5pwd.js +1 -0
  42. streamlit/static/static/js/{index.RS9NSuPn.js → index.CTgHTp02.js} +1 -1
  43. streamlit/static/static/js/{index.BPrkMaDs.js → index.CTwaWONb.js} +1 -1
  44. streamlit/static/static/js/{index.DH5gmTNJ.js → index.CcMFXZBL.js} +1 -1
  45. streamlit/static/static/js/index.ChvqDLgw.js +1 -0
  46. streamlit/static/static/js/{index.6ZLFnYFv.js → index.ClfebD_T.js} +1 -1
  47. streamlit/static/static/js/{index.CusXODwm.js → index.CpDe9l-f.js} +1 -1
  48. streamlit/static/static/js/{index.ByG1Ipsd.js → index.Cq_L2WtW.js} +1 -1
  49. streamlit/static/static/js/{index.D_RsV5T3.js → index.DBEif7dq.js} +2 -2
  50. streamlit/static/static/js/{index.DYmhwMwG.js → index.DNURUtUa.js} +2 -2
  51. streamlit/static/static/js/{index.DbB5iceE.js → index.DTDyF8nE.js} +1 -1
  52. streamlit/static/static/js/{index.C7zS3xAk.js → index.DaJw5fna.js} +1 -1
  53. streamlit/static/static/js/{index.-Ex9Sw0j.js → index.DbqewZ6W.js} +1 -1
  54. streamlit/static/static/js/{index.DvCWOxpn.js → index.DfvKnm4Q.js} +1 -1
  55. streamlit/static/static/js/{index.B9r4f8yP.js → index.DsRxnb2z.js} +1 -1
  56. streamlit/static/static/js/index.Nb8G9oM-.js +1 -0
  57. streamlit/static/static/js/{index.YDw6DAY-.js → index.R8Go3XlF.js} +1 -1
  58. streamlit/static/static/js/{index.BPw4HKmU.js → index.Uid-bSyh.js} +1 -1
  59. streamlit/static/static/js/{index.CHsi5M24.js → index.V3D0L00K.js} +1 -1
  60. streamlit/static/static/js/{index.K8WjTi1D.js → index.m0rRkw04.js} +1 -1
  61. streamlit/static/static/js/{index.BSsSumHQ.js → index.qkhdJyyt.js} +6 -6
  62. streamlit/static/static/js/{input.Cf4AxOS9.js → input.DogdK8Cg.js} +1 -1
  63. streamlit/static/static/js/{memory.x6zhEJ8E.js → memory.B_1d0kyG.js} +1 -1
  64. streamlit/static/static/js/{mergeWith.DL-_LuL_.js → mergeWith.9h0p6sC_.js} +1 -1
  65. streamlit/static/static/js/{number-overlay-editor.uQEd6gCw.js → number-overlay-editor.yRe6Yodu.js} +1 -1
  66. streamlit/static/static/js/{possibleConstructorReturn.6K8NTHlH.js → possibleConstructorReturn.C73_6grg.js} +1 -1
  67. streamlit/static/static/js/{sandbox.BY_N7kRf.js → sandbox.2u3nOS5d.js} +1 -1
  68. streamlit/static/static/js/{textarea.BoUKtqfY.js → textarea.DFCEFjUj.js} +1 -1
  69. streamlit/static/static/js/{timepicker.uTqYdkda.js → timepicker.GuNna1EN.js} +1 -1
  70. streamlit/static/static/js/{toConsumableArray.CA_5PwDK.js → toConsumableArray.DARzcvE5.js} +1 -1
  71. streamlit/static/static/js/{uniqueId.CmvPTKOg.js → uniqueId.fceb1ayN.js} +1 -1
  72. streamlit/static/static/js/{useBasicWidgetState.aMiqPmlk.js → useBasicWidgetState.D6255-xX.js} +1 -1
  73. streamlit/static/static/js/{useOnInputChange.DXi6gRKL.js → useOnInputChange.BjnOKne4.js} +1 -1
  74. streamlit/static/static/js/{withFullScreenWrapper._ccFC4BV.js → withFullScreenWrapper.B7h9p1kI.js} +1 -1
  75. streamlit/testing/v1/element_tree.py +8 -3
  76. {streamlit_nightly-1.44.1.dev20250326.dist-info → streamlit_nightly-1.44.1.dev20250327.dist-info}/METADATA +1 -1
  77. {streamlit_nightly-1.44.1.dev20250326.dist-info → streamlit_nightly-1.44.1.dev20250327.dist-info}/RECORD +81 -81
  78. streamlit/static/static/js/index.BgstN8el.js +0 -1
  79. streamlit/static/static/js/index.CRpHYHH-.js +0 -1
  80. streamlit/static/static/js/index.DByvN5ny.js +0 -1
  81. {streamlit_nightly-1.44.1.dev20250326.data → streamlit_nightly-1.44.1.dev20250327.data}/scripts/streamlit.cmd +0 -0
  82. {streamlit_nightly-1.44.1.dev20250326.dist-info → streamlit_nightly-1.44.1.dev20250327.dist-info}/WHEEL +0 -0
  83. {streamlit_nightly-1.44.1.dev20250326.dist-info → streamlit_nightly-1.44.1.dev20250327.dist-info}/entry_points.txt +0 -0
  84. {streamlit_nightly-1.44.1.dev20250326.dist-info → streamlit_nightly-1.44.1.dev20250327.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{n as U,r as a,bi as R,j as m,l as w}from"./index.NwBLa4vX.js";const A=U("iframe",{target:"eymnmwl0"})(({theme:r})=>({colorScheme:"normal",border:"none",padding:r.spacing.none,margin:r.spacing.none,width:"100%",aspectRatio:"16 / 9"})),O=w.getLogger("Video"),P={width:"100%"};function $({element:r,endpoints:i,elementMgr:p}){const s=a.useRef(null),{type:v,url:f,startTime:n,subtitles:u,endTime:c,loop:l,autoplay:S,muted:g}=r,T=a.useMemo(()=>{if(!r.id)return!0;const e=p.getElementState(r.id,"preventAutoplay");return e||p.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,p]),E=a.useMemo(()=>JSON.stringify(u?u.map(e=>i.buildMediaURL(`${e.url}`)):[]),[u,i]);a.useEffect(()=>{const e=JSON.parse(E);e.length!==0&&e.forEach(t=>{i.checkSourceUrlResponse(t,"Video Subtitle")})},[E,i]),a.useEffect(()=>{s.current&&(s.current.currentTime=n)},[n]),a.useEffect(()=>{const e=s.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),a.useEffect(()=>{const e=s.current;if(!e)return;let t=!1;const d=()=>{c>0&&e.currentTime>=c&&(l?(e.currentTime=n||0,e.play()):t||(t=!0,e.pause()))};return c>0&&e.addEventListener("timeupdate",d),()=>{e&&c>0&&e.removeEventListener("timeupdate",d)}},[c,l,n]),a.useEffect(()=>{const e=s.current;if(!e)return;const t=()=>{l&&(e.currentTime=n||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[l,n]);const V=e=>{const{startTime:t,endTime:d,loop:b,autoplay:L,muted:N}=r,o=new URL(e);if(t&&!isNaN(t)&&o.searchParams.append("start",t.toString()),d&&!isNaN(d)&&o.searchParams.append("end",d.toString()),b){o.searchParams.append("loop","1");const y=o.pathname.split("/").pop();y&&o.searchParams.append("playlist",y)}return L&&o.searchParams.append("autoplay","1"),N&&o.searchParams.append("mute","1"),o.toString()};if(v===R.Type.YOUTUBE_IFRAME)return m(A,{className:"stVideo","data-testid":"stVideo",title:f,src:V(f),allow:"autoplay; encrypted-media",allowFullScreen:!0});const h=e=>{const t=e.currentTarget.src;O.error(`Client Error: Video source error - ${t}`),i.sendClientErrorToHost("Video","Video source failed to load","onerror triggered",t)};return m("video",{className:"stVideo","data-testid":"stVideo",ref:s,controls:!0,muted:g,autoPlay:S&&!T,src:i.buildMediaURL(f),style:P,crossOrigin:void 0,onError:h,children:u&&u.map((e,t)=>m("track",{kind:"captions",src:i.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0,"data-testid":"stVideoSubtitle"},t))})}const M=a.memo($);export{M as default};
1
+ import{n as U,r as a,bi as R,j as m,l as w}from"./index.B28jf8c_.js";const A=U("iframe",{target:"eymnmwl0"})(({theme:r})=>({colorScheme:"normal",border:"none",padding:r.spacing.none,margin:r.spacing.none,width:"100%",aspectRatio:"16 / 9"})),O=w.getLogger("Video"),P={width:"100%"};function $({element:r,endpoints:i,elementMgr:p}){const s=a.useRef(null),{type:v,url:f,startTime:n,subtitles:u,endTime:c,loop:l,autoplay:S,muted:g}=r,T=a.useMemo(()=>{if(!r.id)return!0;const e=p.getElementState(r.id,"preventAutoplay");return e||p.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,p]),E=a.useMemo(()=>JSON.stringify(u?u.map(e=>i.buildMediaURL(`${e.url}`)):[]),[u,i]);a.useEffect(()=>{const e=JSON.parse(E);e.length!==0&&e.forEach(t=>{i.checkSourceUrlResponse(t,"Video Subtitle")})},[E,i]),a.useEffect(()=>{s.current&&(s.current.currentTime=n)},[n]),a.useEffect(()=>{const e=s.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),a.useEffect(()=>{const e=s.current;if(!e)return;let t=!1;const d=()=>{c>0&&e.currentTime>=c&&(l?(e.currentTime=n||0,e.play()):t||(t=!0,e.pause()))};return c>0&&e.addEventListener("timeupdate",d),()=>{e&&c>0&&e.removeEventListener("timeupdate",d)}},[c,l,n]),a.useEffect(()=>{const e=s.current;if(!e)return;const t=()=>{l&&(e.currentTime=n||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[l,n]);const V=e=>{const{startTime:t,endTime:d,loop:b,autoplay:L,muted:N}=r,o=new URL(e);if(t&&!isNaN(t)&&o.searchParams.append("start",t.toString()),d&&!isNaN(d)&&o.searchParams.append("end",d.toString()),b){o.searchParams.append("loop","1");const y=o.pathname.split("/").pop();y&&o.searchParams.append("playlist",y)}return L&&o.searchParams.append("autoplay","1"),N&&o.searchParams.append("mute","1"),o.toString()};if(v===R.Type.YOUTUBE_IFRAME)return m(A,{className:"stVideo","data-testid":"stVideo",title:f,src:V(f),allow:"autoplay; encrypted-media",allowFullScreen:!0});const h=e=>{const t=e.currentTarget.src;O.error(`Client Error: Video source error - ${t}`),i.sendClientErrorToHost("Video","Video source failed to load","onerror triggered",t)};return m("video",{className:"stVideo","data-testid":"stVideo",ref:s,controls:!0,muted:g,autoPlay:S&&!T,src:i.buildMediaURL(f),style:P,crossOrigin:void 0,onError:h,children:u&&u.map((e,t)=>m("track",{kind:"captions",src:i.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0,"data-testid":"stVideoSubtitle"},t))})}const M=a.memo($);export{M as default};
@@ -1 +1 @@
1
- import{r as i,j as c,br as g,bP as b}from"./index.NwBLa4vX.js";import{a as m}from"./useBasicWidgetState.aMiqPmlk.js";import"./FormClearHelper.D2MZi-BE.js";const f=(t,e)=>t.getStringValue(e),p=t=>t.default??null,C=t=>t.value??null,d=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},P=({element:t,disabled:e,widgetMgr:r,fragmentId:o})=>{var l;const[s,a]=m({getStateFromWidgetMgr:f,getDefaultStateFromProto:p,getCurrStateFromProto:C,updateWidgetMgrState:d,element:t,widgetMgr:r,fragmentId:o}),u=i.useCallback(n=>{a({value:n,fromUi:!0})},[a]);return c(b,{label:t.label,labelVisibility:g((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:u,disabled:e,value:s})},k=i.memo(P);export{k as default};
1
+ import{r as i,j as c,br as g,bP as b}from"./index.B28jf8c_.js";import{a as m}from"./useBasicWidgetState.D6255-xX.js";import"./FormClearHelper.CWUgHOqb.js";const f=(t,e)=>t.getStringValue(e),p=t=>t.default??null,C=t=>t.value??null,d=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},P=({element:t,disabled:e,widgetMgr:r,fragmentId:o})=>{var l;const[s,a]=m({getStateFromWidgetMgr:f,getDefaultStateFromProto:p,getCurrStateFromProto:C,updateWidgetMgrState:d,element:t,widgetMgr:r,fragmentId:o}),u=i.useCallback(n=>{a({value:n,fromUi:!0})},[a]);return c(b,{label:t.label,labelVisibility:g((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:u,disabled:e,value:s})},k=i.memo(P);export{k as default};