streamlit-nightly 1.52.3.dev20251226__py3-none-any.whl → 1.52.3.dev20251227__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 (96) hide show
  1. streamlit/static/index.html +1 -1
  2. streamlit/static/manifest.json +295 -295
  3. streamlit/static/static/js/{ErrorOutline.esm.EgYp1JC0.js → ErrorOutline.esm.DcfXgWUn.js} +1 -1
  4. streamlit/static/static/js/{FileDownload.esm.Bx4_eB28.js → FileDownload.esm.mv0ER-NN.js} +1 -1
  5. streamlit/static/static/js/{FileHelper.Ch2BA4gj.js → FileHelper.DrrhFRar.js} +1 -1
  6. streamlit/static/static/js/{FormClearHelper.CbNLnm5z.js → FormClearHelper.DyKNX1aO.js} +1 -1
  7. streamlit/static/static/js/{InputInstructions.ytPQehsP.js → InputInstructions.DNVNePDU.js} +1 -1
  8. streamlit/static/static/js/{Particles.B0caqiTk.js → Particles.DfQRmRqL.js} +1 -1
  9. streamlit/static/static/js/{ProgressBar.ByXgyUI-.js → ProgressBar.D7gjwuV4.js} +1 -1
  10. streamlit/static/static/js/{StreamlitSyntaxHighlighter.DsdwUjaY.js → StreamlitSyntaxHighlighter.C4EfgCCA.js} +1 -1
  11. streamlit/static/static/js/{TableChart.esm.CK1nJt0O.js → TableChart.esm.BRwgdYlO.js} +1 -1
  12. streamlit/static/static/js/{Toolbar.D1AoIspH.js → Toolbar.BwjOKIoX.js} +1 -1
  13. streamlit/static/static/js/{WidgetLabelHelpIconInline.DzUzytq4.js → WidgetLabelHelpIconInline.B31eEkR7.js} +1 -1
  14. streamlit/static/static/js/{base-input.oeS7z57b.js → base-input.DfcQke7n.js} +1 -1
  15. streamlit/static/static/js/{checkbox.C6aihPHD.js → checkbox.D1dO0sd2.js} +1 -1
  16. streamlit/static/static/js/{createDownloadLinkElement.CsxToINU.js → createDownloadLinkElement.COnF97s_.js} +1 -1
  17. streamlit/static/static/js/{data-grid-overlay-editor.Bl6ID8no.js → data-grid-overlay-editor.sTgLsMeV.js} +1 -1
  18. streamlit/static/static/js/{downloader.Bo39Kwk3.js → downloader.DICSpWsQ.js} +1 -1
  19. streamlit/static/static/js/{embed.CJ4NrRRq.js → embed.CdnV1dx9.js} +1 -1
  20. streamlit/static/static/js/{es6.BAKdNuUM.js → es6.deJoFr5d.js} +2 -2
  21. streamlit/static/static/js/{formatNumber.DGNn8k0o.js → formatNumber.DK7aeI7k.js} +1 -1
  22. streamlit/static/static/js/{iconPosition.C4WimyAl.js → iconPosition.D8Yv5FiE.js} +1 -1
  23. streamlit/static/static/js/{iframeResizer.contentWindow.CHCgybDa.js → iframeResizer.contentWindow.BU-dAwT1.js} +1 -1
  24. streamlit/static/static/js/{index.Nzlk-xLL.js → index.12y0V79l.js} +1 -1
  25. streamlit/static/static/js/{index.V7HcxVtK.js → index.8qTg2RM9.js} +1 -1
  26. streamlit/static/static/js/{index.CJ1UkRq9.js → index.AowxKR47.js} +1 -1
  27. streamlit/static/static/js/{index.CaX8_r0V.js → index.B-4FZ0nj.js} +5 -5
  28. streamlit/static/static/js/{index.Cj_D8-HC.js → index.B5uiXC5d.js} +1 -1
  29. streamlit/static/static/js/{index.Cf-lk2CT.js → index.BAmLrdtI.js} +1 -1
  30. streamlit/static/static/js/{index.DkS5TY4c.js → index.BKpNjc6p.js} +1 -1
  31. streamlit/static/static/js/{index.D0IWfzmU.js → index.BO68LeZH.js} +1 -1
  32. streamlit/static/static/js/{index.Bgs7HabB.js → index.BSpyyZms.js} +1 -1
  33. streamlit/static/static/js/{index.BOKTBHiC.js → index.Bnp4oXTj.js} +1 -1
  34. streamlit/static/static/js/{index.CMdAd5iy.js → index.Bwox_wj7.js} +1 -1
  35. streamlit/static/static/js/{index.x1QgojXR.js → index.C93OpKAy.js} +1 -1
  36. streamlit/static/static/js/{index.IxXdId-J.js → index.CHxfXEQs.js} +1 -1
  37. streamlit/static/static/js/{index.BEe1C5Rl.js → index.CPwKghBv.js} +1 -1
  38. streamlit/static/static/js/{index.BCkziNkD.js → index.CQhTluFq.js} +1 -1
  39. streamlit/static/static/js/{index.DoC7y9yI.js → index.CS3tpmQq.js} +43 -43
  40. streamlit/static/static/js/{index.DolJao2W.js → index.CjByu9X-.js} +1 -1
  41. streamlit/static/static/js/{index.BmRR1j1b.js → index.CoNSg7Jn.js} +1 -1
  42. streamlit/static/static/js/{index.U1LaOPI2.js → index.CsrQPO4k.js} +1 -1
  43. streamlit/static/static/js/{index.CfcMH4GD.js → index.CxeI_OXa.js} +1 -1
  44. streamlit/static/static/js/{index.B5cmRkBg.js → index.D14DFzgI.js} +1 -1
  45. streamlit/static/static/js/{index.D_vAfTwe.js → index.DJxfjWh8.js} +1 -1
  46. streamlit/static/static/js/{index.s0isFYL7.js → index.DMWRX2hh.js} +1 -1
  47. streamlit/static/static/js/{index.Cn9VRQoM.js → index.DQQMDt36.js} +1 -1
  48. streamlit/static/static/js/{index.Dx0SlFs7.js → index.DRnQbU3d.js} +1 -1
  49. streamlit/static/static/js/{index.mK1yna9c.js → index.DWULc3YI.js} +1 -1
  50. streamlit/static/static/js/{index.CT4SUWqA.js → index.DYHH1mfr.js} +1 -1
  51. streamlit/static/static/js/{index.DLnM5Z9H.js → index.D_ifDEh-.js} +1 -1
  52. streamlit/static/static/js/{index.BaIpjH-b.js → index.DaMZ1GDB.js} +1 -1
  53. streamlit/static/static/js/{index.yIXilf1K.js → index.DaVDJgbA.js} +1 -1
  54. streamlit/static/static/js/{index.B2cPWvqF.js → index.DfbB_5Z-.js} +1 -1
  55. streamlit/static/static/js/{index.DW01_488.js → index.DgfqdWkR.js} +1 -1
  56. streamlit/static/static/js/{index.DdoScjyS.js → index.Dhp14dRq.js} +1 -1
  57. streamlit/static/static/js/{index.B8Q1asYC.js → index.DieTLIPJ.js} +1 -1
  58. streamlit/static/static/js/{index.XZTrlwug.js → index.Dj7zOkQg.js} +1 -1
  59. streamlit/static/static/js/{index.ujIS495g.js → index.DryfJqoc.js} +1 -1
  60. streamlit/static/static/js/{index.DzRytoP2.js → index.DvTvKaqe.js} +1 -1
  61. streamlit/static/static/js/{index.Dj-b_JDG.js → index.DzIOW22k.js} +1 -1
  62. streamlit/static/static/js/{index.CTJZZaCv.js → index.IavvuC7m.js} +1 -1
  63. streamlit/static/static/js/{index.DABYIgIV.js → index.LEwNBspG.js} +1 -1
  64. streamlit/static/static/js/{index.Bex7PsFf.js → index.Ml__cfHd.js} +1 -1
  65. streamlit/static/static/js/{index.JTmr3rE8.js → index.MwqhcWcl.js} +1 -1
  66. streamlit/static/static/js/{index.SOA_RZER.js → index.SS0fb-z0.js} +1 -1
  67. streamlit/static/static/js/{index.Bze_1QwY.js → index.ZSnCX0Ea.js} +1 -1
  68. streamlit/static/static/js/{index.CiZfuJxo.js → index.mVwG03J8.js} +1 -1
  69. streamlit/static/static/js/{index.BRUZSHD6.js → index.mykhZq0V.js} +1 -1
  70. streamlit/static/static/js/{index.zYKENG3i.js → index.pF_JNVHJ.js} +1 -1
  71. streamlit/static/static/js/{index.CFKP3_lq.js → index.wNqPEQUk.js} +1 -1
  72. streamlit/static/static/js/{input.Bnl3SgHH.js → input.C1Qtlpog.js} +1 -1
  73. streamlit/static/static/js/{main.B5o_YnYO.js → main.Bmkh5wwK.js} +1 -1
  74. streamlit/static/static/js/{memory.DxprC3PM.js → memory.sbgNT5rv.js} +1 -1
  75. streamlit/static/static/js/{number-overlay-editor.5Sj-Hwh2.js → number-overlay-editor.enfKgE8B.js} +1 -1
  76. streamlit/static/static/js/{pandasStylerUtils.DByL-WPH.js → pandasStylerUtils.CTK2ZjDI.js} +1 -1
  77. streamlit/static/static/js/{sandbox.BzVWKATd.js → sandbox.DgbnlVWB.js} +1 -1
  78. streamlit/static/static/js/{styled-components.NZVfCeIk.js → styled-components.CUUmYQ6I.js} +1 -1
  79. streamlit/static/static/js/{throttle.BiJigB9B.js → throttle.BMPv1eQF.js} +1 -1
  80. streamlit/static/static/js/{timepicker.B6kEC5D6.js → timepicker.A5q0vGni.js} +1 -1
  81. streamlit/static/static/js/{toConsumableArray.C1RP-D79.js → toConsumableArray.BQcscadC.js} +1 -1
  82. streamlit/static/static/js/uniqueId.C-ekQlC4.js +1 -0
  83. streamlit/static/static/js/{useBasicWidgetState.DKTFBoPC.js → useBasicWidgetState.DxPSDiCY.js} +1 -1
  84. streamlit/static/static/js/{useIntlLocale.CddqQf4b.js → useIntlLocale.BZEYz-Gh.js} +1 -1
  85. streamlit/static/static/js/{useTextInputAutoExpand.REWB6jfY.js → useTextInputAutoExpand.BcX0HWJh.js} +1 -1
  86. streamlit/static/static/js/{useUpdateUiValue.CQwYZVCV.js → useUpdateUiValue.BIOar76Q.js} +1 -1
  87. streamlit/static/static/js/{useWaveformController.b3Q1Vyki.js → useWaveformController.Bk9pA3uJ.js} +1 -1
  88. streamlit/static/static/js/{withCalculatedWidth.D-VrTAE6.js → withCalculatedWidth.Coni8MnB.js} +1 -1
  89. streamlit/static/static/js/{withFullScreenWrapper.BrgpCF8A.js → withFullScreenWrapper.CxRdMHFu.js} +1 -1
  90. {streamlit_nightly-1.52.3.dev20251226.dist-info → streamlit_nightly-1.52.3.dev20251227.dist-info}/METADATA +1 -1
  91. {streamlit_nightly-1.52.3.dev20251226.dist-info → streamlit_nightly-1.52.3.dev20251227.dist-info}/RECORD +95 -95
  92. streamlit/static/static/js/uniqueId.BL9g5aSa.js +0 -1
  93. {streamlit_nightly-1.52.3.dev20251226.data → streamlit_nightly-1.52.3.dev20251227.data}/scripts/streamlit.cmd +0 -0
  94. {streamlit_nightly-1.52.3.dev20251226.dist-info → streamlit_nightly-1.52.3.dev20251227.dist-info}/WHEEL +0 -0
  95. {streamlit_nightly-1.52.3.dev20251226.dist-info → streamlit_nightly-1.52.3.dev20251227.dist-info}/entry_points.txt +0 -0
  96. {streamlit_nightly-1.52.3.dev20251226.dist-info → streamlit_nightly-1.52.3.dev20251227.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{aT as T,aU as W,aV as I,aW as L,F as V,r as n,l as A,aA as O,aX as B,o as E,j as m,p as H,ab as F,ac as N,aY as $,aZ as k,aw as D,a_ as P,ae as U}from"./index.DoC7y9yI.js";import{u as Y}from"./useBasicWidgetState.DKTFBoPC.js";import{a as j}from"./_arrayIncludes.B19Iyn2B.js";import"./FormClearHelper.CbNLnm5z.js";import"./_baseIndexOf.BTknn6Gb.js";var _=200;function K(o,t,d,p){var e=-1,g=j,s=!0,u=o.length,a=[],f=t.length;if(!u)return a;t.length>=_&&(g=W,s=!1,t=new T(t));e:for(;++e<u;){var i=o[e],c=i;if(i=i!==0?i:0,s&&c===c){for(var h=f;h--;)if(t[h]===c)continue e;a.push(i)}else g(t,c,p)||a.push(i)}return a}var X=I(function(o,t){return L(o)?K(o,t):[]});const Z=V("div",{target:"euzcfsp0"})(({theme:o})=>({"span[aria-disabled='true']":{background:o.colors.fadedText05}})),G=(o,t)=>o.getStringArrayValue(t),q=o=>o.default.map(t=>o.options[t])??null,J=o=>o.rawValues??null,Q=(o,t,d,p)=>{t.setStringArrayValue(o,d.value,{fromUi:d.fromUi},p)},ee=o=>{const{element:t,widgetMgr:d,fragmentId:p}=o,e=A(),g=n.useContext(O),[s,u]=Y({getStateFromWidgetMgr:G,getDefaultStateFromProto:q,getCurrStateFromProto:J,updateWidgetMgrState:Q,element:t,widgetMgr:d,fragmentId:p}),a=t.maxSelections>0&&s.length>=t.maxSelections,f=n.useMemo(()=>{if(t.maxSelections===0)return"No results";if(s.length===t.maxSelections){const r=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${r}. Remove an option first.`}return"No results"},[t.maxSelections,s.length]),i=n.useCallback(r=>{switch(r.type){case"remove":return X(s,r.option?.value);case"clear":return[];case"select":return s.concat([r.option?.value]);default:throw new Error(`State transition is unknown: ${r.type}`)}},[s]),c=n.useCallback(r=>{t.maxSelections&&r.type==="select"&&s.length>=t.maxSelections||u({value:i(r),fromUi:!0})},[t.maxSelections,i,u,s.length]),{options:h}=t,{placeholder:y,disabled:C,selectOptions:v,inputReadOnly:w,valuesToUiMulti:S,createFilterOptions:x}=B({options:h,isMulti:!0,acceptNewOptions:t.acceptNewOptions??!1,placeholderInput:t.placeholder}),z=n.useCallback((r,l)=>a?[]:x(s)(r,l),[x,a,s]),b=o.disabled||C,R=n.useMemo(()=>S(s),[S,s]),M=n.useMemo(()=>{const r=e.fontSizes.baseFontSize*1.6+14;return`${Math.round(r*4.25)}px`},[e.fontSizes.baseFontSize]);return E("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[m(N,{label:t.label,disabled:b,labelVisibility:H(t.labelVisibility?.value),children:t.help&&m(F,{content:t.help,label:t.label})}),m(Z,{children:m($,{creatable:t.acceptNewOptions??!1,options:v,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:y,type:P.select,multi:!0,onChange:c,value:R,disabled:b,size:"compact",noResultsMsg:f,filterOptions:z,closeOnSelect:!1,ignoreCase:!1,overrides:{Popover:{props:{ignoreBoundary:g,overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:D,props:{style:{cursor:"pointer"},overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:({$isFocused:r})=>{const l=U(e.colors,r);return{maxHeight:M,minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:l,borderRightColor:l,borderBottomColor:l,borderLeftColor:l}}},Placeholder:{style:()=>({flex:"inherit",color:b?e.colors.fadedText40:e.colors.fadedText60})},ValueContainer:{style:()=>({overflowY:"auto",paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.grayTextColor,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.grayTextColor}},Tag:{props:{overrides:{Root:{style:{fontWeight:e.fontWeights.normal,borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:w}},Dropdown:{component:k}}})})]})},ne=n.memo(ee);export{ne as default};
1
+ import{aT as T,aU as W,aV as I,aW as L,F as V,r as n,l as A,aA as O,aX as B,o as E,j as m,p as H,ab as F,ac as N,aY as $,aZ as k,aw as D,a_ as P,ae as U}from"./index.CS3tpmQq.js";import{u as Y}from"./useBasicWidgetState.DxPSDiCY.js";import{a as j}from"./_arrayIncludes.B19Iyn2B.js";import"./FormClearHelper.DyKNX1aO.js";import"./_baseIndexOf.BTknn6Gb.js";var _=200;function K(o,t,d,p){var e=-1,g=j,s=!0,u=o.length,a=[],f=t.length;if(!u)return a;t.length>=_&&(g=W,s=!1,t=new T(t));e:for(;++e<u;){var i=o[e],c=i;if(i=i!==0?i:0,s&&c===c){for(var h=f;h--;)if(t[h]===c)continue e;a.push(i)}else g(t,c,p)||a.push(i)}return a}var X=I(function(o,t){return L(o)?K(o,t):[]});const Z=V("div",{target:"euzcfsp0"})(({theme:o})=>({"span[aria-disabled='true']":{background:o.colors.fadedText05}})),G=(o,t)=>o.getStringArrayValue(t),q=o=>o.default.map(t=>o.options[t])??null,J=o=>o.rawValues??null,Q=(o,t,d,p)=>{t.setStringArrayValue(o,d.value,{fromUi:d.fromUi},p)},ee=o=>{const{element:t,widgetMgr:d,fragmentId:p}=o,e=A(),g=n.useContext(O),[s,u]=Y({getStateFromWidgetMgr:G,getDefaultStateFromProto:q,getCurrStateFromProto:J,updateWidgetMgrState:Q,element:t,widgetMgr:d,fragmentId:p}),a=t.maxSelections>0&&s.length>=t.maxSelections,f=n.useMemo(()=>{if(t.maxSelections===0)return"No results";if(s.length===t.maxSelections){const r=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${r}. Remove an option first.`}return"No results"},[t.maxSelections,s.length]),i=n.useCallback(r=>{switch(r.type){case"remove":return X(s,r.option?.value);case"clear":return[];case"select":return s.concat([r.option?.value]);default:throw new Error(`State transition is unknown: ${r.type}`)}},[s]),c=n.useCallback(r=>{t.maxSelections&&r.type==="select"&&s.length>=t.maxSelections||u({value:i(r),fromUi:!0})},[t.maxSelections,i,u,s.length]),{options:h}=t,{placeholder:y,disabled:C,selectOptions:v,inputReadOnly:w,valuesToUiMulti:S,createFilterOptions:x}=B({options:h,isMulti:!0,acceptNewOptions:t.acceptNewOptions??!1,placeholderInput:t.placeholder}),z=n.useCallback((r,l)=>a?[]:x(s)(r,l),[x,a,s]),b=o.disabled||C,R=n.useMemo(()=>S(s),[S,s]),M=n.useMemo(()=>{const r=e.fontSizes.baseFontSize*1.6+14;return`${Math.round(r*4.25)}px`},[e.fontSizes.baseFontSize]);return E("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[m(N,{label:t.label,disabled:b,labelVisibility:H(t.labelVisibility?.value),children:t.help&&m(F,{content:t.help,label:t.label})}),m(Z,{children:m($,{creatable:t.acceptNewOptions??!1,options:v,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:y,type:P.select,multi:!0,onChange:c,value:R,disabled:b,size:"compact",noResultsMsg:f,filterOptions:z,closeOnSelect:!1,ignoreCase:!1,overrides:{Popover:{props:{ignoreBoundary:g,overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:D,props:{style:{cursor:"pointer"},overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:({$isFocused:r})=>{const l=U(e.colors,r);return{maxHeight:M,minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:l,borderRightColor:l,borderBottomColor:l,borderLeftColor:l}}},Placeholder:{style:()=>({flex:"inherit",color:b?e.colors.fadedText40:e.colors.fadedText60})},ValueContainer:{style:()=>({overflowY:"auto",paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.grayTextColor,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.grayTextColor}},Tag:{props:{overrides:{Root:{style:{fontWeight:e.fontWeights.normal,borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:w}},Dropdown:{component:k}}})})]})},ne=n.memo(ee);export{ne as default};
@@ -1 +1 @@
1
- import{F as p,N as o,r as C,O as m,o as g,j as s,Q as N,q as T,R as b}from"./index.DoC7y9yI.js";import{g as A,a as L,f as w}from"./pandasStylerUtils.DByL-WPH.js";import"./moment.C7qA8nIE.js";import"./numbro.B9_PXfzp.js";import"./_baseIndexOf.BTknn6Gb.js";const h=p("div",{target:"e15vb32f0"})(({theme:t})=>({fontSize:t.fontSizes.md,fontFamily:t.genericFonts.bodyFont,lineHeight:t.lineHeights.small,captionSide:"bottom"})),M=p("div",{target:"e15vb32f1"})(({theme:t})=>({fontFamily:t.genericFonts.bodyFont,fontSize:t.fontSizes.sm,paddingTop:t.spacing.sm,paddingBottom:0,color:t.colors.fadedText60,textAlign:"left",wordWrap:"break-word",display:"inline-block"})),O=p("div",{target:"e15vb32f2"})(({theme:t,borderMode:e})=>({border:e===o.BorderMode.ALL?`${t.sizes.borderWidth} solid ${t.colors.dataframeBorderColor}`:"none",borderRadius:t.radii.default,overflow:"auto"})),v=p("table",{target:"e15vb32f3"})(({theme:t})=>({width:t.sizes.full,color:t.colors.bodyText,borderSpacing:0})),u=(t,e=o.BorderMode.ALL)=>({borderBottom:e!==o.BorderMode.NONE?`${t.sizes.borderWidth} solid ${t.colors.dataframeBorderColor}`:"none","tbody tr:last-child &":{borderBottom:e===o.BorderMode.ALL||e===o.BorderMode.HORIZONTAL?"none":void 0},borderRight:e===o.BorderMode.ALL?`${t.sizes.borderWidth} solid ${t.colors.dataframeBorderColor}`:"none","&:last-child":{borderRight:e===o.BorderMode.ALL?"none":void 0,paddingRight:e===o.BorderMode.NONE?"0":t.spacing.xs},verticalAlign:"middle",padding:`${t.spacing.twoXS} ${t.spacing.xs}`,"&:not(:first-of-type)":{paddingLeft:e===o.BorderMode.NONE||e===o.BorderMode.HORIZONTAL?t.spacing.lg:t.spacing.xs},"&:first-of-type":{paddingLeft:e===o.BorderMode.NONE?"0":t.spacing.xs},fontWeight:t.fontWeights.normal}),S=p("td",{target:"e15vb32f4"})(({theme:t,borderMode:e})=>u(t,e)),B=p("th",{target:"e15vb32f5"})(({theme:t,borderMode:e})=>({...u(t,e),textAlign:"inherit",color:t.colors.fadedText60,"&:first-of-type":{paddingLeft:e===o.BorderMode.NONE?"0":t.spacing.sm},"&:not(:first-of-type)":{paddingLeft:e===o.BorderMode.NONE||e===o.BorderMode.HORIZONTAL?t.spacing.lg:t.spacing.sm}})),R=p(S,{target:"e15vb32f6"})(({theme:t})=>({color:t.colors.gray70,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}));function H(t){const e=t.data,{cssId:l,cssStyles:n,caption:d}=e.styler??{},{numHeaderRows:f,numDataRows:c,numColumns:a}=e.dimensions,r=m(c),i=t.element.borderMode;return g(h,{className:"stTable","data-testid":"stTable",children:[n&&s("style",{children:n}),s(O,{borderMode:i,children:g(v,{id:l,"data-testid":"stTableStyledTable",children:[f>0&&E(e,i),s("tbody",{children:r.length===0?s("tr",{children:s(R,{"data-testid":"stTableStyledEmptyTableCell",colSpan:a||1,borderMode:i,children:"empty"})}):r.map(y=>$(e,y,a,i))})]})}),d&&s(M,{children:d})]})}function E(t,e){const l=e===o.BorderMode.NONE||e===o.BorderMode.HORIZONTAL;return s("thead",{children:A(t).map((n,d)=>s("tr",{children:n.map((f,c)=>{let a="inherit";if(l&&t.dimensions.numDataRows>0){const{contentType:r}=t.getCell(0,c);a=N(r)?"right":"left"}return s(B,{className:f.cssClass,scope:"col",borderMode:e,style:{textAlign:a},children:s(T,{source:f.name||" ",allowHTML:!1})},c)})},d))})}function $(t,e,l,n){return s("tr",{children:m(l).map(d=>x(t,e,d,n))},e)}function x(t,e,l,n){const{type:d,content:f,contentType:c}=t.getCell(e,l),a=L(t,e,l);let r=a?.displayContent||w(f,c),i=!1;const y={textAlign:N(c)?"right":"left"};switch(r?.endsWith('<span class="pd-t"></span>')&&(r=r.replace(/<span class="pd-t"><\/span>$/,""),i=!0),d){case b.INDEX:return g(B,{scope:"row",id:a?.cssId,className:a?.cssClass,borderMode:n,children:[i&&s("span",{className:"pd-t"}),s(T,{source:r||" ",allowHTML:!1})]},l);case b.DATA:return g(S,{id:a?.cssId,className:a?.cssClass,style:y,borderMode:n,children:[i&&s("span",{className:"pd-t"}),s(T,{source:r||" ",allowHTML:!1})]},l);default:throw new Error(`Cannot parse type "${d}".`)}}const j=C.memo(H);export{j as default};
1
+ import{F as p,N as o,r as C,O as m,o as g,j as s,Q as N,q as T,R as b}from"./index.CS3tpmQq.js";import{g as A,a as L,f as w}from"./pandasStylerUtils.CTK2ZjDI.js";import"./moment.C7qA8nIE.js";import"./numbro.B9_PXfzp.js";import"./_baseIndexOf.BTknn6Gb.js";const h=p("div",{target:"e15vb32f0"})(({theme:t})=>({fontSize:t.fontSizes.md,fontFamily:t.genericFonts.bodyFont,lineHeight:t.lineHeights.small,captionSide:"bottom"})),M=p("div",{target:"e15vb32f1"})(({theme:t})=>({fontFamily:t.genericFonts.bodyFont,fontSize:t.fontSizes.sm,paddingTop:t.spacing.sm,paddingBottom:0,color:t.colors.fadedText60,textAlign:"left",wordWrap:"break-word",display:"inline-block"})),O=p("div",{target:"e15vb32f2"})(({theme:t,borderMode:e})=>({border:e===o.BorderMode.ALL?`${t.sizes.borderWidth} solid ${t.colors.dataframeBorderColor}`:"none",borderRadius:t.radii.default,overflow:"auto"})),v=p("table",{target:"e15vb32f3"})(({theme:t})=>({width:t.sizes.full,color:t.colors.bodyText,borderSpacing:0})),u=(t,e=o.BorderMode.ALL)=>({borderBottom:e!==o.BorderMode.NONE?`${t.sizes.borderWidth} solid ${t.colors.dataframeBorderColor}`:"none","tbody tr:last-child &":{borderBottom:e===o.BorderMode.ALL||e===o.BorderMode.HORIZONTAL?"none":void 0},borderRight:e===o.BorderMode.ALL?`${t.sizes.borderWidth} solid ${t.colors.dataframeBorderColor}`:"none","&:last-child":{borderRight:e===o.BorderMode.ALL?"none":void 0,paddingRight:e===o.BorderMode.NONE?"0":t.spacing.xs},verticalAlign:"middle",padding:`${t.spacing.twoXS} ${t.spacing.xs}`,"&:not(:first-of-type)":{paddingLeft:e===o.BorderMode.NONE||e===o.BorderMode.HORIZONTAL?t.spacing.lg:t.spacing.xs},"&:first-of-type":{paddingLeft:e===o.BorderMode.NONE?"0":t.spacing.xs},fontWeight:t.fontWeights.normal}),S=p("td",{target:"e15vb32f4"})(({theme:t,borderMode:e})=>u(t,e)),B=p("th",{target:"e15vb32f5"})(({theme:t,borderMode:e})=>({...u(t,e),textAlign:"inherit",color:t.colors.fadedText60,"&:first-of-type":{paddingLeft:e===o.BorderMode.NONE?"0":t.spacing.sm},"&:not(:first-of-type)":{paddingLeft:e===o.BorderMode.NONE||e===o.BorderMode.HORIZONTAL?t.spacing.lg:t.spacing.sm}})),R=p(S,{target:"e15vb32f6"})(({theme:t})=>({color:t.colors.gray70,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}));function H(t){const e=t.data,{cssId:l,cssStyles:n,caption:d}=e.styler??{},{numHeaderRows:f,numDataRows:c,numColumns:a}=e.dimensions,r=m(c),i=t.element.borderMode;return g(h,{className:"stTable","data-testid":"stTable",children:[n&&s("style",{children:n}),s(O,{borderMode:i,children:g(v,{id:l,"data-testid":"stTableStyledTable",children:[f>0&&E(e,i),s("tbody",{children:r.length===0?s("tr",{children:s(R,{"data-testid":"stTableStyledEmptyTableCell",colSpan:a||1,borderMode:i,children:"empty"})}):r.map(y=>$(e,y,a,i))})]})}),d&&s(M,{children:d})]})}function E(t,e){const l=e===o.BorderMode.NONE||e===o.BorderMode.HORIZONTAL;return s("thead",{children:A(t).map((n,d)=>s("tr",{children:n.map((f,c)=>{let a="inherit";if(l&&t.dimensions.numDataRows>0){const{contentType:r}=t.getCell(0,c);a=N(r)?"right":"left"}return s(B,{className:f.cssClass,scope:"col",borderMode:e,style:{textAlign:a},children:s(T,{source:f.name||" ",allowHTML:!1})},c)})},d))})}function $(t,e,l,n){return s("tr",{children:m(l).map(d=>x(t,e,d,n))},e)}function x(t,e,l,n){const{type:d,content:f,contentType:c}=t.getCell(e,l),a=L(t,e,l);let r=a?.displayContent||w(f,c),i=!1;const y={textAlign:N(c)?"right":"left"};switch(r?.endsWith('<span class="pd-t"></span>')&&(r=r.replace(/<span class="pd-t"><\/span>$/,""),i=!0),d){case b.INDEX:return g(B,{scope:"row",id:a?.cssId,className:a?.cssClass,borderMode:n,children:[i&&s("span",{className:"pd-t"}),s(T,{source:r||" ",allowHTML:!1})]},l);case b.DATA:return g(S,{id:a?.cssId,className:a?.cssClass,style:y,borderMode:n,children:[i&&s("span",{className:"pd-t"}),s(T,{source:r||" ",allowHTML:!1})]},l);default:throw new Error(`Cannot parse type "${d}".`)}}const j=C.memo(H);export{j as default};