streamlit-nightly 1.41.2.dev20250102__py2.py3-none-any.whl → 1.41.2.dev20250103__py2.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 (76) hide show
  1. streamlit/elements/widgets/time_widgets.py +62 -2
  2. streamlit/error_util.py +8 -2
  3. streamlit/static/index.html +1 -1
  4. streamlit/static/static/js/{FileDownload.esm.CNoj4-Mv.js → FileDownload.esm.CRoG5i8r.js} +1 -1
  5. streamlit/static/static/js/{FormClearHelper.CDUcNE9t.js → FormClearHelper.DWef4hWz.js} +1 -1
  6. streamlit/static/static/js/{Hooks.DMpj-RLb.js → Hooks.-GVqTMyj.js} +1 -1
  7. streamlit/static/static/js/{InputInstructions.DaNtjCNr.js → InputInstructions.BohKIZFT.js} +1 -1
  8. streamlit/static/static/js/{ProgressBar.BRPIMM7l.js → ProgressBar.ByDCgAp7.js} +2 -2
  9. streamlit/static/static/js/{RenderInPortalIfExists.Cfc5-09w.js → RenderInPortalIfExists.DJNskB1V.js} +1 -1
  10. streamlit/static/static/js/{Toolbar._8UjRFMn.js → Toolbar.B93Vwnd4.js} +1 -1
  11. streamlit/static/static/js/{base-input.BKegJgWw.js → base-input.CTx0gvzT.js} +4 -4
  12. streamlit/static/static/js/{createSuper.jxh1FiCj.js → createSuper.BwPw7vsr.js} +1 -1
  13. streamlit/static/static/js/{data-grid-overlay-editor.BB33zQGs.js → data-grid-overlay-editor.CLQHI5MN.js} +1 -1
  14. streamlit/static/static/js/{downloader.Cm-5-MSJ.js → downloader.WO6ZA_Co.js} +1 -1
  15. streamlit/static/static/js/{es6.OcNPOAdx.js → es6.55gLy6L6.js} +2 -2
  16. streamlit/static/static/js/{getPrototypeOf.BY5XPmcO.js → getPrototypeOf.DJw8FwRX.js} +1 -1
  17. streamlit/static/static/js/{iframeResizer.contentWindow.BFAgAgvG.js → iframeResizer.contentWindow.B4_zxk6k.js} +1 -1
  18. streamlit/static/static/js/index.4oltPSDN.js +1 -0
  19. streamlit/static/static/js/{index.DvnQilxK.js → index.9Y5ek_7z.js} +1 -1
  20. streamlit/static/static/js/{index.DASuqVzI.js → index.B9uAqDdL.js} +1 -1
  21. streamlit/static/static/js/{index.DUIN-jsB.js → index.BJ_D3md2.js} +1 -1
  22. streamlit/static/static/js/{index.Vds5Jt2I.js → index.BW_GOkH1.js} +1 -1
  23. streamlit/static/static/js/index.BdQidO-z.js +197 -0
  24. streamlit/static/static/js/{index.tzlSUp7h.js → index.BeYh1C02.js} +3 -3
  25. streamlit/static/static/js/{index.C77ezkzE.js → index.BqdO5rz5.js} +7 -7
  26. streamlit/static/static/js/{index.CzlkG9Fr.js → index.CA049ZDW.js} +2 -2
  27. streamlit/static/static/js/{index.CxdjcKNq.js → index.CGGiK-tN.js} +2 -2
  28. streamlit/static/static/js/{index.De2k2c-U.js → index.CIwb9X9s.js} +1 -1
  29. streamlit/static/static/js/index.CQk_PsCc.js +1 -0
  30. streamlit/static/static/js/{index.CAMMqKeD.js → index.CTKJYGMX.js} +1 -1
  31. streamlit/static/static/js/index.CVKTpi5B.js +2 -0
  32. streamlit/static/static/js/{index.ATVdLDmC.js → index.CkBAk1pS.js} +1 -1
  33. streamlit/static/static/js/{index.VoGEnWSD.js → index.CwosDieY.js} +2 -2
  34. streamlit/static/static/js/{index.DJTR-TvF.js → index.D1JevM_2.js} +1 -1
  35. streamlit/static/static/js/{index.CVx5m08a.js → index.DBkgIii2.js} +1 -1
  36. streamlit/static/static/js/{index.wdIHSIcW.js → index.DD9fCaBj.js} +1 -1
  37. streamlit/static/static/js/{index.BtYb1969.js → index.DE7Cx7jU.js} +1 -1
  38. streamlit/static/static/js/{index.QGeCkb2Q.js → index.DNYJVjE8.js} +1 -1
  39. streamlit/static/static/js/{index.6vjR_n-y.js → index.DXat8gQf.js} +4 -4
  40. streamlit/static/static/js/{index.CGzczlx9.js → index.D_6VpY6P.js} +1 -1
  41. streamlit/static/static/js/{index.K-tM-X1m.js → index.Dk0ptJZt.js} +1 -1
  42. streamlit/static/static/js/{index.CUh8Rsc7.js → index.J7Vrq5lQ.js} +1 -1
  43. streamlit/static/static/js/{index.Bu-D_kDf.js → index.R8aPyg_g.js} +4 -4
  44. streamlit/static/static/js/{index.7hDSQs9w.js → index.SLtqkRJD.js} +1 -1
  45. streamlit/static/static/js/{index.De_q7lv4.js → index.St5APQjJ.js} +1 -1
  46. streamlit/static/static/js/{index.C-rNevaH.js → index._bgPbXSL.js} +2 -2
  47. streamlit/static/static/js/index.bOS3gI2u.js +1 -0
  48. streamlit/static/static/js/{index.CBHLGMyy.js → index.bkgZHDpc.js} +1 -1
  49. streamlit/static/static/js/{index.DMr0rZjG.js → index.gqEzZP5J.js} +1 -1
  50. streamlit/static/static/js/{index.qUb9zYOr.js → index.oYpNgdlw.js} +1 -1
  51. streamlit/static/static/js/{index.DMDxcX2K.js → index.pU7vIfXj.js} +1 -1
  52. streamlit/static/static/js/{index.BF39aXr4.js → index.ts8s7CAI.js} +1 -1
  53. streamlit/static/static/js/{index.BfhP6PDz.js → index.uc9sf5pQ.js} +1 -1
  54. streamlit/static/static/js/{index.uWSBHHII.js → index.zMOhoVg6.js} +3 -3
  55. streamlit/static/static/js/{input.C3o7UqTF.js → input.CXSAsjSZ.js} +2 -2
  56. streamlit/static/static/js/{memory.DAjIQM15.js → memory.DdFkwmdB.js} +1 -1
  57. streamlit/static/static/js/{number-overlay-editor.YLsBH7YM.js → number-overlay-editor.BwYQjq5H.js} +1 -1
  58. streamlit/static/static/js/{sandbox.5Z6Ir5FQ.js → sandbox.Di7DT8TM.js} +1 -1
  59. streamlit/static/static/js/{slicedToArray.Dr1mYLAX.js → slicedToArray.yExWK_Ke.js} +2 -2
  60. streamlit/static/static/js/{textarea.BjNH-nD-.js → textarea.B7FAzJHc.js} +2 -2
  61. streamlit/static/static/js/{timepicker.B5grIdSj.js → timepicker.Cvt746F5.js} +1 -1
  62. streamlit/static/static/js/{uniqueId.DGVuWfUI.js → uniqueId.Dme_RYod.js} +1 -1
  63. streamlit/static/static/js/{useBasicWidgetState.BMoJJAfz.js → useBasicWidgetState.BrxTjxxP.js} +1 -1
  64. streamlit/static/static/js/{useOnInputChange.D4-GhwNq.js → useOnInputChange.8aWa7n-i.js} +1 -1
  65. streamlit/static/static/js/{withFullScreenWrapper.qbbU-bZp.js → withFullScreenWrapper.BBIHM2Cb.js} +1 -1
  66. {streamlit_nightly-1.41.2.dev20250102.dist-info → streamlit_nightly-1.41.2.dev20250103.dist-info}/METADATA +1 -1
  67. {streamlit_nightly-1.41.2.dev20250102.dist-info → streamlit_nightly-1.41.2.dev20250103.dist-info}/RECORD +71 -71
  68. streamlit/static/static/js/index.B4QbLNs0.js +0 -1
  69. streamlit/static/static/js/index.BNduMvHL.js +0 -1
  70. streamlit/static/static/js/index.BxB51OcG.js +0 -1
  71. streamlit/static/static/js/index.Cpt1ZWEY.js +0 -2
  72. streamlit/static/static/js/index.QhNU1B5h.js +0 -197
  73. {streamlit_nightly-1.41.2.dev20250102.data → streamlit_nightly-1.41.2.dev20250103.data}/scripts/streamlit.cmd +0 -0
  74. {streamlit_nightly-1.41.2.dev20250102.dist-info → streamlit_nightly-1.41.2.dev20250103.dist-info}/WHEEL +0 -0
  75. {streamlit_nightly-1.41.2.dev20250102.dist-info → streamlit_nightly-1.41.2.dev20250103.dist-info}/entry_points.txt +0 -0
  76. {streamlit_nightly-1.41.2.dev20250102.dist-info → streamlit_nightly-1.41.2.dev20250103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ import{r as s,M as R,bZ as T,a8 as U,j as l,a$ as k,bc as A,b0 as P,aL as B,b1 as D}from"./index.DXat8gQf.js";import{u as j}from"./uniqueId.Dme_RYod.js";import{u as _,a as $,b as K}from"./useOnInputChange.8aWa7n-i.js";import{I as O}from"./InputInstructions.BohKIZFT.js";import{a as q}from"./useBasicWidgetState.BrxTjxxP.js";import{T as G}from"./textarea.B7FAzJHc.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.DWef4hWz.js";import"./base-input.CTx0gvzT.js";const W=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,Z=a=>a.value??null,w=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},J=({disabled:a,element:t,widgetMgr:o,fragmentId:u,width:h})=>{var x;const g=s.useRef(j("text_area_")).current,[r,n]=s.useState(!1),[S,b]=s.useState(!1),[i,d]=s.useState(W(o,t)??null),y=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[I,c]=q({getStateFromWidgetMgr:W,getDefaultStateFromProto:N,getCurrStateFromProto:Z,updateWidgetMgrState:w,element:t,widgetMgr:o,fragmentId:u,onFormCleared:y});_(I,i,d,r);const e=R(),p=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),V=s.useCallback(()=>{r&&p(),b(!1)},[r,p]),C=s.useCallback(()=>{b(!0)},[]),F=$({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),v=K(t.formId,p,r,o,u,!0),E={width:h},{height:f,placeholder:z,formId:m}=t,H=T({formId:m})?o.allowFormEnterToSubmit(m):r,L=S&&h>e.breakpoints.hideWidgetDetails;return U("div",{className:"stTextArea","data-testid":"stTextArea",style:E,children:[l(D,{label:t.label,disabled:a,labelVisibility:k((x=t.labelVisibility)==null?void 0:x.value),htmlFor:g,children:t.help&&l(A,{children:l(P,{content:t.help,placement:B.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:z,onBlur:V,onFocus:C,onChange:F,onKeyDown:v,"aria-label":t.label,disabled:a,id:g,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:f?`${f}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),L&&l(O,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:T({formId:m}),allowEnterToSubmit:H})]})},rt=s.memo(J);export{rt as default};
@@ -1 +1 @@
1
- import{n as t,D as d,j as c,aC as l,aD as g,A as e}from"./index.6vjR_n-y.js";const f=t("iframe",{target:"etgi5ab0"})(({theme:o,disableScrolling:i})=>({colorScheme:"normal",border:"none",padding:o.spacing.none,margin:o.spacing.none,overflow:i?"hidden":void 0}));function F({element:o,width:i}){const s=o.hasWidth?o.width:i,n=r(o.src),a=d(n)?void 0:r(o.srcdoc);return c(f,{className:"stIFrame","data-testid":"stIFrame",allow:l,disableScrolling:!o.scrolling,src:n,srcDoc:a,width:s,height:o.height,scrolling:o.scrolling?"auto":"no",sandbox:g,title:"st.iframe"})}function r(o){return e(o)||o===""?void 0:o}export{F as default};
1
+ import{n as t,D as d,j as c,aD as l,aE as g,A as e}from"./index.DXat8gQf.js";const f=t("iframe",{target:"etgi5ab0"})(({theme:o,disableScrolling:i})=>({colorScheme:"normal",border:"none",padding:o.spacing.none,margin:o.spacing.none,overflow:i?"hidden":void 0}));function E({element:o,width:i}){const s=o.hasWidth?o.width:i,n=r(o.src),a=d(n)?void 0:r(o.srcdoc);return c(f,{className:"stIFrame","data-testid":"stIFrame",allow:l,disableScrolling:!o.scrolling,src:n,srcDoc:a,width:s,height:o.height,scrolling:o.scrolling?"auto":"no",sandbox:g,title:"st.iframe"})}function r(o){return e(o)||o===""?void 0:o}export{E as default};
@@ -1 +1 @@
1
- import{n as s,R as g,a6 as x,aJ as b,M as C,j as n,aH as v,aK as L,a7 as y,am as w,a1 as S}from"./index.6vjR_n-y.js";const T=s("div",{target:"e15akk1j0"})({display:"flex",flexDirection:"column"}),h=s("a",{target:"e15akk1j1"})(({disabled:r,isCurrentPage:o,fluidWidth:t,theme:e})=>({textDecoration:"none",width:typeof t=="number"?`${t}px`:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...r?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}})),H=s("span",{target:"e15akk1j2"})(({disabled:r,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...r?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}));function P(r,o){return r===null&&o?!0:r===null&&!o?!1:r===!0}function B(r){const{onPageChange:o,currentPageScriptHash:t}=g.useContext(x),e=g.useContext(b),{colors:u}=C(),{disabled:l,element:a,width:i}=r,p={width:i},f=P(a.useContainerWidth,e),c=t===a.pageScriptHash,k=d=>{a.external?l&&d.preventDefault():(d.preventDefault(),l||o(a.pageScriptHash))};return n("div",{className:"stPageLink","data-testid":"stPageLink",style:p,children:n(v,{help:a.help,placement:L.TOP_RIGHT,children:n(T,{children:y(h,{"data-testid":"stPageLink-NavLink",disabled:l,isCurrentPage:c,fluidWidth:f?i:!1,href:a.page,target:a.external?"_blank":"",rel:"noreferrer",onClick:k,children:[a.icon&&n(w,{size:"lg",color:u.bodyText,iconValue:a.icon}),n(H,{disabled:l,children:n(S,{source:a.label,allowHTML:!1,isLabel:!0,boldLabel:c,largerLabel:!0,disableLinks:!0})})]})})})})}export{B as default};
1
+ import{n as s,R as g,a7 as x,aK as b,M as C,j as n,aI as L,aL as v,a8 as y,an as w,a2 as S}from"./index.DXat8gQf.js";const T=s("div",{target:"e15akk1j0"})({display:"flex",flexDirection:"column"}),h=s("a",{target:"e15akk1j1"})(({disabled:r,isCurrentPage:o,fluidWidth:t,theme:e})=>({textDecoration:"none",width:typeof t=="number"?`${t}px`:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...r?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}})),P=s("span",{target:"e15akk1j2"})(({disabled:r,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...r?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}));function j(r,o){return r===null&&o?!0:r===null&&!o?!1:r===!0}function D(r){const{onPageChange:o,currentPageScriptHash:t}=g.useContext(x),e=g.useContext(b),{colors:u}=C(),{disabled:l,element:a,width:i}=r,p={width:i},f=j(a.useContainerWidth,e),c=t===a.pageScriptHash,k=d=>{a.external?l&&d.preventDefault():(d.preventDefault(),l||o(a.pageScriptHash))};return n("div",{className:"stPageLink","data-testid":"stPageLink",style:p,children:n(L,{help:a.help,placement:v.TOP_RIGHT,children:n(T,{children:y(h,{"data-testid":"stPageLink-NavLink",disabled:l,isCurrentPage:c,fluidWidth:f?i:!1,href:a.page,target:a.external?"_blank":"",rel:"noreferrer",onClick:k,children:[a.icon&&n(w,{size:"lg",color:u.bodyText,iconValue:a.icon}),n(P,{disabled:l,children:n(S,{source:a.label,allowHTML:!1,isLabel:!0,boldLabel:c,largerLabel:!0,disableLinks:!0})})]})})})})}export{D as default};
@@ -1 +1 @@
1
- import{r as a,j as E}from"./index.6vjR_n-y.js";function T({element:t,width:f,endpoints:c,elementMgr:o}){const i=a.useRef(null),{startTime:u,endTime:n,loop:d,autoplay:p}=t,l=a.useMemo(()=>{if(!t.id)return!0;const e=o.getElementState(t.id,"preventAutoplay");return e||o.setElementState(t.id,"preventAutoplay",!0),e??!1},[t.id,o]);a.useEffect(()=>{i.current&&(i.current.currentTime=u)},[u]),a.useEffect(()=>{const e=i.current,r=()=>{e&&(e.currentTime=t.startTime)};return e&&e.addEventListener("loadedmetadata",r),()=>{e&&e.removeEventListener("loadedmetadata",r)}},[t]),a.useEffect(()=>{const e=i.current;if(!e)return;let r=!1;const s=()=>{n>0&&e.currentTime>=n&&(d?(e.currentTime=u||0,e.play()):r||(r=!0,e.pause()))};return n>0&&e.addEventListener("timeupdate",s),()=>{e&&n>0&&e.removeEventListener("timeupdate",s)}},[n,d,u]),a.useEffect(()=>{const e=i.current;if(!e)return;const r=()=>{d&&(e.currentTime=u||0,e.play())};return e.addEventListener("ended",r),()=>{e&&e.removeEventListener("ended",r)}},[d,u]);const m=c.buildMediaURL(t.url);return E("audio",{className:"stAudio","data-testid":"stAudio",ref:i,controls:!0,autoPlay:p&&!l,src:m,style:{width:f}})}export{T as default};
1
+ import{r as a,j as E}from"./index.DXat8gQf.js";function T({element:t,width:f,endpoints:c,elementMgr:o}){const i=a.useRef(null),{startTime:u,endTime:n,loop:d,autoplay:p}=t,l=a.useMemo(()=>{if(!t.id)return!0;const e=o.getElementState(t.id,"preventAutoplay");return e||o.setElementState(t.id,"preventAutoplay",!0),e??!1},[t.id,o]);a.useEffect(()=>{i.current&&(i.current.currentTime=u)},[u]),a.useEffect(()=>{const e=i.current,r=()=>{e&&(e.currentTime=t.startTime)};return e&&e.addEventListener("loadedmetadata",r),()=>{e&&e.removeEventListener("loadedmetadata",r)}},[t]),a.useEffect(()=>{const e=i.current;if(!e)return;let r=!1;const s=()=>{n>0&&e.currentTime>=n&&(d?(e.currentTime=u||0,e.play()):r||(r=!0,e.pause()))};return n>0&&e.addEventListener("timeupdate",s),()=>{e&&n>0&&e.removeEventListener("timeupdate",s)}},[n,d,u]),a.useEffect(()=>{const e=i.current;if(!e)return;const r=()=>{d&&(e.currentTime=u||0,e.play())};return e.addEventListener("ended",r),()=>{e&&e.removeEventListener("ended",r)}},[d,u]);const m=c.buildMediaURL(t.url);return E("audio",{className:"stAudio","data-testid":"stAudio",ref:i,controls:!0,autoPlay:p&&!l,src:m,style:{width:f}})}export{T as default};
@@ -1 +1 @@
1
- import{n as t,aL as e,a7 as o,j as s,a1 as i}from"./index.6vjR_n-y.js";import{P as l}from"./ProgressBar.BRPIMM7l.js";const d=t("div",{target:"eg8e9hd0"})(({theme:a})=>({paddingBottom:a.spacing.sm,lineHeight:"normal",color:e(a)}));function c({element:a,width:r}){return o("div",{className:"stProgress","data-testid":"stProgress",children:[s(d,{children:s(i,{source:a.text,allowHTML:!1,isLabel:!0})}),s(l,{value:a.value,width:r})]})}export{c as default};
1
+ import{n as t,aM as e,a8 as o,j as s,a2 as i}from"./index.DXat8gQf.js";import{P as l}from"./ProgressBar.ByDCgAp7.js";const d=t("div",{target:"eg8e9hd0"})(({theme:a})=>({paddingBottom:a.spacing.sm,lineHeight:"normal",color:e(a)}));function c({element:a,width:r}){return o("div",{className:"stProgress","data-testid":"stProgress",children:[s(d,{children:s(i,{source:a.text,allowHTML:!1,isLabel:!0})}),s(l,{value:a.value,width:r})]})}export{c as default};