streamlit-nightly 1.53.2.dev20260127__py3-none-any.whl → 1.53.2.dev20260131__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 (225) hide show
  1. streamlit/config.py +14 -2
  2. streamlit/config_util.py +63 -8
  3. streamlit/elements/deck_gl_json_chart.py +5 -1
  4. streamlit/elements/lib/built_in_chart_utils.py +24 -4
  5. streamlit/elements/lib/color_util.py +20 -1
  6. streamlit/elements/vega_charts.py +24 -4
  7. streamlit/proto/Alert_pb2.py +2 -3
  8. streamlit/proto/AppPage_pb2.py +2 -3
  9. streamlit/proto/ArrowData_pb2.py +2 -3
  10. streamlit/proto/ArrowNamedDataSet_pb2.py +2 -3
  11. streamlit/proto/ArrowVegaLiteChart_pb2.py +2 -3
  12. streamlit/proto/Arrow_pb2.py +11 -18
  13. streamlit/proto/Arrow_pb2.pyi +1 -42
  14. streamlit/proto/AudioInput_pb2.py +2 -3
  15. streamlit/proto/Audio_pb2.py +2 -3
  16. streamlit/proto/AuthRedirect_pb2.py +2 -3
  17. streamlit/proto/AutoRerun_pb2.py +2 -3
  18. streamlit/proto/BackMsg_pb2.py +2 -3
  19. streamlit/proto/Balloons_pb2.py +2 -3
  20. streamlit/proto/BidiComponent_pb2.py +2 -3
  21. streamlit/proto/Block_pb2.py +36 -43
  22. streamlit/proto/Block_pb2.pyi +3 -48
  23. streamlit/proto/BokehChart_pb2.py +2 -3
  24. streamlit/proto/ButtonGroup_pb2.py +2 -3
  25. streamlit/proto/ButtonLikeIconPosition_pb2.py +2 -3
  26. streamlit/proto/Button_pb2.py +3 -6
  27. streamlit/proto/Button_pb2.pyi +1 -18
  28. streamlit/proto/CameraInput_pb2.py +2 -3
  29. streamlit/proto/ChatInput_pb2.py +5 -8
  30. streamlit/proto/ChatInput_pb2.pyi +1 -17
  31. streamlit/proto/Checkbox_pb2.py +2 -3
  32. streamlit/proto/ClientState_pb2.py +2 -3
  33. streamlit/proto/Code_pb2.py +3 -6
  34. streamlit/proto/Code_pb2.pyi +1 -18
  35. streamlit/proto/ColorPicker_pb2.py +2 -3
  36. streamlit/proto/Common_pb2.py +7 -8
  37. streamlit/proto/Common_pb2.pyi +2 -10
  38. streamlit/proto/Components_pb2.py +2 -3
  39. streamlit/proto/DateInput_pb2.py +2 -3
  40. streamlit/proto/DateTimeInput_pb2.py +2 -3
  41. streamlit/proto/DeckGlJsonChart_pb2.py +5 -12
  42. streamlit/proto/DeckGlJsonChart_pb2.pyi +1 -54
  43. streamlit/proto/Delta_pb2.py +4 -6
  44. streamlit/proto/Delta_pb2.pyi +5 -14
  45. streamlit/proto/DocString_pb2.py +2 -3
  46. streamlit/proto/DownloadButton_pb2.py +2 -3
  47. streamlit/proto/Element_pb2.py +4 -7
  48. streamlit/proto/Element_pb2.pyi +3 -23
  49. streamlit/proto/Empty_pb2.py +2 -3
  50. streamlit/proto/Exception_pb2.py +2 -3
  51. streamlit/proto/Favicon_pb2.py +2 -3
  52. streamlit/proto/FileUploader_pb2.py +2 -3
  53. streamlit/proto/ForwardMsg_pb2.py +12 -18
  54. streamlit/proto/ForwardMsg_pb2.pyi +4 -48
  55. streamlit/proto/GapSize_pb2.py +2 -3
  56. streamlit/proto/GitInfo_pb2.py +2 -3
  57. streamlit/proto/GraphVizChart_pb2.py +3 -6
  58. streamlit/proto/GraphVizChart_pb2.pyi +1 -18
  59. streamlit/proto/Heading_pb2.py +2 -3
  60. streamlit/proto/HeightConfig_pb2.py +2 -3
  61. streamlit/proto/Html_pb2.py +2 -3
  62. streamlit/proto/IFrame_pb2.py +3 -10
  63. streamlit/proto/IFrame_pb2.pyi +1 -42
  64. streamlit/proto/Image_pb2.py +3 -6
  65. streamlit/proto/Image_pb2.pyi +1 -18
  66. streamlit/proto/Json_pb2.py +2 -3
  67. streamlit/proto/LabelVisibilityMessage_pb2.py +2 -3
  68. streamlit/proto/LinkButton_pb2.py +2 -3
  69. streamlit/proto/Logo_pb2.py +2 -3
  70. streamlit/proto/Markdown_pb2.py +2 -3
  71. streamlit/proto/Metric_pb2.py +2 -3
  72. streamlit/proto/MetricsEvent_pb2.py +2 -3
  73. streamlit/proto/MultiSelect_pb2.py +3 -6
  74. streamlit/proto/MultiSelect_pb2.pyi +1 -11
  75. streamlit/proto/Navigation_pb2.py +2 -3
  76. streamlit/proto/NewSession_pb2.py +27 -26
  77. streamlit/proto/NewSession_pb2.pyi +24 -12
  78. streamlit/proto/NumberInput_pb2.py +2 -3
  79. streamlit/proto/PageConfig_pb2.py +2 -3
  80. streamlit/proto/PageInfo_pb2.py +2 -3
  81. streamlit/proto/PageLink_pb2.py +2 -3
  82. streamlit/proto/PageNotFound_pb2.py +2 -3
  83. streamlit/proto/PageProfile_pb2.py +2 -3
  84. streamlit/proto/ParentMessage_pb2.py +2 -3
  85. streamlit/proto/PlotlyChart_pb2.py +5 -10
  86. streamlit/proto/PlotlyChart_pb2.pyi +1 -58
  87. streamlit/proto/Progress_pb2.py +2 -3
  88. streamlit/proto/Radio_pb2.py +3 -6
  89. streamlit/proto/Radio_pb2.pyi +2 -19
  90. streamlit/proto/RootContainer_pb2.py +2 -3
  91. streamlit/proto/Selectbox_pb2.py +3 -6
  92. streamlit/proto/Selectbox_pb2.pyi +2 -19
  93. streamlit/proto/SessionEvent_pb2.py +2 -3
  94. streamlit/proto/SessionStatus_pb2.py +2 -3
  95. streamlit/proto/Skeleton_pb2.py +2 -3
  96. streamlit/proto/Slider_pb2.py +2 -3
  97. streamlit/proto/Snow_pb2.py +2 -3
  98. streamlit/proto/Space_pb2.py +2 -3
  99. streamlit/proto/Spinner_pb2.py +2 -3
  100. streamlit/proto/TextAlignmentConfig_pb2.py +2 -3
  101. streamlit/proto/TextArea_pb2.py +3 -6
  102. streamlit/proto/TextArea_pb2.pyi +1 -18
  103. streamlit/proto/TextInput_pb2.py +2 -3
  104. streamlit/proto/Text_pb2.py +2 -3
  105. streamlit/proto/TimeInput_pb2.py +2 -3
  106. streamlit/proto/Toast_pb2.py +2 -3
  107. streamlit/proto/Transient_pb2.py +2 -3
  108. streamlit/proto/Video_pb2.py +2 -3
  109. streamlit/proto/WidgetStates_pb2.py +2 -3
  110. streamlit/proto/WidthConfig_pb2.py +2 -3
  111. streamlit/proto/openmetrics_data_model_pb2.py +2 -3
  112. streamlit/runtime/app_session.py +19 -0
  113. streamlit/runtime/runtime.py +0 -4
  114. streamlit/static/index.html +1 -1
  115. streamlit/static/manifest.json +296 -296
  116. streamlit/static/static/js/{ErrorOutline.esm.DiaGWPsE.js → ErrorOutline.esm.DC6KVDKK.js} +1 -1
  117. streamlit/static/static/js/{FileDownload.esm.D-Qgpk5d.js → FileDownload.esm.Z9hRQIHi.js} +1 -1
  118. streamlit/static/static/js/{FileHelper.DmtDDGp0.js → FileHelper.DqvW90pm.js} +1 -1
  119. streamlit/static/static/js/{FormClearHelper.BM3uDLnU.js → FormClearHelper.DTFnX0js.js} +1 -1
  120. streamlit/static/static/js/{InputInstructions.B2YZ5Lle.js → InputInstructions.CdzsN_Va.js} +1 -1
  121. streamlit/static/static/js/{Particles.BzfZrl-0.js → Particles.12xFSjcn.js} +1 -1
  122. streamlit/static/static/js/{ProgressBar.DWErD3j3.js → ProgressBar.Dg-oMbWg.js} +1 -1
  123. streamlit/static/static/js/{StreamlitSyntaxHighlighter.DB31rUPf.js → StreamlitSyntaxHighlighter.rbzmcipw.js} +1 -1
  124. streamlit/static/static/js/{TableChart.esm.D3oUYYYd.js → TableChart.esm.CzJtGIR-.js} +1 -1
  125. streamlit/static/static/js/{Toolbar.CPyjMABY.js → Toolbar.COH7NaOE.js} +1 -1
  126. streamlit/static/static/js/{WidgetLabelHelpIconInline.C1NBCx-y.js → WidgetLabelHelpIconInline.Dlc8f0Ji.js} +1 -1
  127. streamlit/static/static/js/{base-input.C_CrNgNd.js → base-input.Q-zJLgRK.js} +4 -4
  128. streamlit/static/static/js/{checkbox.S6O8DPFl.js → checkbox.BKgWNdeI.js} +1 -1
  129. streamlit/static/static/js/{createDownloadLinkElement.B-5tIJBw.js → createDownloadLinkElement.6oO-YlYv.js} +1 -1
  130. streamlit/static/static/js/{data-grid-overlay-editor.BW5aAEJN.js → data-grid-overlay-editor.CO0xdNiG.js} +1 -1
  131. streamlit/static/static/js/{downloader.BswLlj7p.js → downloader.BBXcXdX1.js} +1 -1
  132. streamlit/static/static/js/{embed.QjYZXbaW.js → embed.CJzOXYBF.js} +1 -1
  133. streamlit/static/static/js/{es6.Dm_kl6Cp.js → es6.CdxPQzwJ.js} +2 -2
  134. streamlit/static/static/js/{formatNumber.CH39oSMw.js → formatNumber.DB5irY8c.js} +1 -1
  135. streamlit/static/static/js/{iconPosition.Dp9f2jam.js → iconPosition.BVScIr6G.js} +1 -1
  136. streamlit/static/static/js/{iframeResizer.contentWindow.DOprY46-.js → iframeResizer.contentWindow.D_QHVqPM.js} +1 -1
  137. streamlit/static/static/js/{index.CAzk7fUP.js → index.6DFY6LUF.js} +1 -1
  138. streamlit/static/static/js/{index.BBVcEzWu.js → index.B80gSxrS.js} +1 -1
  139. streamlit/static/static/js/{index.6UQ__fP7.js → index.BDtN2n7T.js} +1 -1
  140. streamlit/static/static/js/{index.BYjec3-R.js → index.BED2_zc7.js} +1 -1
  141. streamlit/static/static/js/{index.DMwRlpNi.js → index.BQnLeHnr.js} +1 -1
  142. streamlit/static/static/js/{index.s9zpEF8P.js → index.BSYebegS.js} +1 -1
  143. streamlit/static/static/js/{index.6OwBTJdz.js → index.BSpYHDvk.js} +1 -1
  144. streamlit/static/static/js/{index.BUbgW8RJ.js → index.BiCbrx53.js} +1 -1
  145. streamlit/static/static/js/{index.CYxcFtYt.js → index.Biyf9aUg.js} +1 -1
  146. streamlit/static/static/js/{index.BQu5Qf_i.js → index.BqbKiDp2.js} +1 -1
  147. streamlit/static/static/js/{index.BcUwq6kI.js → index.BqxwnMem.js} +1 -1
  148. streamlit/static/static/js/{index.CDZffl1q.js → index.BtOoVQt7.js} +1 -1
  149. streamlit/static/static/js/{index.C57ViuAX.js → index.BxMkW82k.js} +1 -1
  150. streamlit/static/static/js/{index.DypwtfIh.js → index.BxQxTpWl.js} +1 -1
  151. streamlit/static/static/js/{index.BaKZ4ira.js → index.C5oqIM3a.js} +1 -1
  152. streamlit/static/static/js/{index.tjRGlTlQ.js → index.CBE2cIbj.js} +1 -1
  153. streamlit/static/static/js/{index.Cb7V19H9.js → index.CE2WIFD1.js} +1 -1
  154. streamlit/static/static/js/{index.lMhsw-5K.js → index.CPc_uZux.js} +50 -50
  155. streamlit/static/static/js/{index.CfXTal6g.js → index.CUYi3FrD.js} +1 -1
  156. streamlit/static/static/js/index.Cpu2p5bH.js +1 -0
  157. streamlit/static/static/js/{index.OI2eh_me.js → index.CrY1BsL3.js} +1 -1
  158. streamlit/static/static/js/{index.B9XI6y3j.js → index.CtbETWQK.js} +1 -1
  159. streamlit/static/static/js/{index.6iOQDEVC.js → index.CvtybR-u.js} +1 -1
  160. streamlit/static/static/js/{index.DK9Im19R.js → index.CxoREvnF.js} +1 -1
  161. streamlit/static/static/js/{index.DsZNm1_D.js → index.D6OexhdL.js} +1 -1
  162. streamlit/static/static/js/{index.Ci3x7GcT.js → index.D9v2Y8Gk.js} +1 -1
  163. streamlit/static/static/js/{index.BFxjXeYb.js → index.DAfIQKfP.js} +1 -1
  164. streamlit/static/static/js/index.DAnczAW2.js +2 -0
  165. streamlit/static/static/js/{index.D1tkD8Lg.js → index.DAyGxxdm.js} +1 -1
  166. streamlit/static/static/js/{index.BNsCI-Q1.js → index.DCe7fo-m.js} +1 -1
  167. streamlit/static/static/js/{index.B6Sk5Jwr.js → index.DNfyKqhQ.js} +1 -1
  168. streamlit/static/static/js/{index.BlgpfTUq.js → index.DRoJNzFX.js} +1 -1
  169. streamlit/static/static/js/{index.CkSzTTpO.js → index.DU68jVpM.js} +54 -54
  170. streamlit/static/static/js/{index.TTO_Lb69.js → index.DZmBuE3z.js} +2 -2
  171. streamlit/static/static/js/{index.Cw5Xlisw.js → index.DhRAGiPR.js} +1 -1
  172. streamlit/static/static/js/{index.BUOjbZl6.js → index.DrcbvB2t.js} +1 -1
  173. streamlit/static/static/js/{index.wKGUZfH4.js → index.Dud7RRHc.js} +1 -1
  174. streamlit/static/static/js/{index.BxtweGcn.js → index.DyXcT2tD.js} +1 -1
  175. streamlit/static/static/js/{index.X1r5cenD.js → index.DyfvmNCy.js} +222 -222
  176. streamlit/static/static/js/{index.JKOtpaMf.js → index.GieKl4BG.js} +1 -1
  177. streamlit/static/static/js/{index.CuJ82OKQ.js → index.YULCxEtm.js} +1 -1
  178. streamlit/static/static/js/{index.-7yn3zqE.js → index._1zqETQ9.js} +2 -2
  179. streamlit/static/static/js/{index.gsc49XzN.js → index.bQJYmJ2T.js} +1 -1
  180. streamlit/static/static/js/{index.BlchQrZL.js → index.iXh5nbLZ.js} +1 -1
  181. streamlit/static/static/js/index.mSdC1FV6.js +1 -0
  182. streamlit/static/static/js/{index.DoRYpzHm.js → index.nL1fkE1D.js} +1 -1
  183. streamlit/static/static/js/{index.4QSKV4yi.js → index.tuFFlbxa.js} +1 -1
  184. streamlit/static/static/js/{index.Bwaj-9Zv.js → index.y-pa6LIX.js} +1 -1
  185. streamlit/static/static/js/{input.CIKqvWjB.js → input.BcC6sPE_.js} +1 -1
  186. streamlit/static/static/js/{main.BkNqoTrd.js → main.TU5_aabd.js} +1 -1
  187. streamlit/static/static/js/{memory.DNcbFok2.js → memory.By_OTlI4.js} +1 -1
  188. streamlit/static/static/js/{number-overlay-editor.DwjiYKav.js → number-overlay-editor.FSRaRpbU.js} +1 -1
  189. streamlit/static/static/js/{pandasStylerUtils.BSc50we3.js → pandasStylerUtils.3IiIKU9-.js} +1 -1
  190. streamlit/static/static/js/{sandbox.DJL9Gdcf.js → sandbox.DnxTbWzV.js} +1 -1
  191. streamlit/static/static/js/{styled-components.D4jE1G9j.js → styled-components.BeEcZ0vW.js} +1 -1
  192. streamlit/static/static/js/{throttle.dHeXiPIK.js → throttle.emUyC44c.js} +1 -1
  193. streamlit/static/static/js/{timepicker.CIpoSUyW.js → timepicker.DZ_ZufYF.js} +1 -1
  194. streamlit/static/static/js/{toConsumableArray.AOXQx2YY.js → toConsumableArray.DDV1bN1-.js} +1 -1
  195. streamlit/static/static/js/uniqueId.DTwvAE-J.js +1 -0
  196. streamlit/static/static/js/{useBasicWidgetState.BwQxG7iA.js → useBasicWidgetState.DvpdEDYZ.js} +1 -1
  197. streamlit/static/static/js/{useIntlLocale.JXPZPWaJ.js → useIntlLocale.BBDLbTq9.js} +1 -1
  198. streamlit/static/static/js/{useTextInputAutoExpand.CD_nhoE_.js → useTextInputAutoExpand.BIApLJKn.js} +1 -1
  199. streamlit/static/static/js/{useUpdateUiValue.Cl1Y22Ao.js → useUpdateUiValue.DQ4RuJNC.js} +1 -1
  200. streamlit/static/static/js/{useWaveformController.DJhScSDn.js → useWaveformController.B0olyXLQ.js} +1 -1
  201. streamlit/static/static/js/{withCalculatedWidth.CrAfFzO9.js → withCalculatedWidth.DYeqePuh.js} +1 -1
  202. streamlit/static/static/js/{withFullScreenWrapper.EdE3zOz5.js → withFullScreenWrapper.DtkUCO_d.js} +1 -1
  203. streamlit/testing/v1/element_tree.py +16 -2
  204. streamlit/web/bootstrap.py +5 -2
  205. streamlit/web/server/server.py +0 -1
  206. streamlit/web/server/server_util.py +22 -0
  207. streamlit/web/server/starlette/starlette_app.py +0 -1
  208. {streamlit_nightly-1.53.2.dev20260127.dist-info → streamlit_nightly-1.53.2.dev20260131.dist-info}/METADATA +10 -25
  209. {streamlit_nightly-1.53.2.dev20260127.dist-info → streamlit_nightly-1.53.2.dev20260131.dist-info}/RECORD +212 -221
  210. streamlit/proto/DataFrame_pb2.py +0 -56
  211. streamlit/proto/DataFrame_pb2.pyi +0 -430
  212. streamlit/proto/NamedDataSet_pb2.py +0 -28
  213. streamlit/proto/NamedDataSet_pb2.pyi +0 -67
  214. streamlit/proto/PagesChanged_pb2.py +0 -28
  215. streamlit/proto/PagesChanged_pb2.pyi +0 -55
  216. streamlit/proto/VegaLiteChart_pb2.py +0 -29
  217. streamlit/proto/VegaLiteChart_pb2.pyi +0 -79
  218. streamlit/static/static/js/index.B0Wcvg8a.js +0 -2
  219. streamlit/static/static/js/index.CivdhE_9.js +0 -1
  220. streamlit/static/static/js/index.DTUAvbJ0.js +0 -1
  221. streamlit/static/static/js/uniqueId.DRPc21MO.js +0 -1
  222. streamlit_nightly-1.53.2.dev20260127.data/scripts/streamlit.cmd +0 -16
  223. {streamlit_nightly-1.53.2.dev20260127.dist-info → streamlit_nightly-1.53.2.dev20260131.dist-info}/WHEEL +0 -0
  224. {streamlit_nightly-1.53.2.dev20260127.dist-info → streamlit_nightly-1.53.2.dev20260131.dist-info}/entry_points.txt +0 -0
  225. {streamlit_nightly-1.53.2.dev20260127.dist-info → streamlit_nightly-1.53.2.dev20260131.dist-info}/top_level.txt +0 -0
@@ -1,29 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: streamlit/proto/VegaLiteChart.proto
4
- # Protobuf Python Version: 5.26.1
5
- """Generated protocol buffer code."""
6
- from google.protobuf import descriptor as _descriptor
7
- from google.protobuf import descriptor_pool as _descriptor_pool
8
- from google.protobuf import symbol_database as _symbol_database
9
- from google.protobuf.internal import builder as _builder
10
- # @@protoc_insertion_point(imports)
11
-
12
- _sym_db = _symbol_database.Default()
13
-
14
-
15
- from streamlit.proto import DataFrame_pb2 as streamlit_dot_proto_dot_DataFrame__pb2
16
- from streamlit.proto import NamedDataSet_pb2 as streamlit_dot_proto_dot_NamedDataSet__pb2
17
-
18
-
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#streamlit/proto/VegaLiteChart.proto\x1a\x1fstreamlit/proto/DataFrame.proto\x1a\"streamlit/proto/NamedDataSet.proto\"{\n\rVegaLiteChart\x12\x0c\n\x04spec\x18\x01 \x01(\t\x12\x18\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\n.DataFrame\x12\x1f\n\x08\x64\x61tasets\x18\x04 \x03(\x0b\x32\r.NamedDataSet\x12\x1b\n\x13use_container_width\x18\x05 \x01(\x08J\x04\x08\x03\x10\x04\x42\x32\n\x1c\x63om.snowflake.apps.streamlitB\x12VegaLiteChartProtob\x06proto3')
20
-
21
- _globals = globals()
22
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.VegaLiteChart_pb2', _globals)
24
- if not _descriptor._USE_C_DESCRIPTORS:
25
- _globals['DESCRIPTOR']._loaded_options = None
26
- _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\022VegaLiteChartProto'
27
- _globals['_VEGALITECHART']._serialized_start=108
28
- _globals['_VEGALITECHART']._serialized_end=231
29
- # @@protoc_insertion_point(module_scope)
@@ -1,79 +0,0 @@
1
- """
2
- @generated by mypy-protobuf. Do not edit manually!
3
- isort:skip_file
4
- *!
5
- Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
6
-
7
- Licensed under the Apache License, Version 2.0 (the "License");
8
- you may not use this file except in compliance with the License.
9
- You may obtain a copy of the License at
10
-
11
- http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS,
15
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- See the License for the specific language governing permissions and
17
- limitations under the License.
18
- """
19
-
20
- from collections import abc as _abc
21
- from google.protobuf import descriptor as _descriptor
22
- from google.protobuf import message as _message
23
- from google.protobuf.internal import containers as _containers
24
- from streamlit.proto import DataFrame_pb2 as _DataFrame_pb2
25
- from streamlit.proto import NamedDataSet_pb2 as _NamedDataSet_pb2
26
- import builtins as _builtins
27
- import sys
28
- import typing as _typing
29
-
30
- if sys.version_info >= (3, 10):
31
- from typing import TypeAlias as _TypeAlias
32
- else:
33
- from typing_extensions import TypeAlias as _TypeAlias
34
-
35
- DESCRIPTOR: _descriptor.FileDescriptor
36
-
37
- @_typing.final
38
- class VegaLiteChart(_message.Message):
39
- """DEPRECATED: This proto message is deprecated and unused. The ArrowVegaLiteChart
40
- proto message should be used instead.
41
- """
42
-
43
- DESCRIPTOR: _descriptor.Descriptor
44
-
45
- SPEC_FIELD_NUMBER: _builtins.int
46
- DATA_FIELD_NUMBER: _builtins.int
47
- DATASETS_FIELD_NUMBER: _builtins.int
48
- USE_CONTAINER_WIDTH_FIELD_NUMBER: _builtins.int
49
- spec: _builtins.str
50
- """The a JSON-formatted string with the Vega-Lite spec."""
51
- use_container_width: _builtins.bool
52
- """If True, will overwrite the chart width spec to fit to container."""
53
- @_builtins.property
54
- def data(self) -> _DataFrame_pb2.DataFrame:
55
- """TODO Maybe remove
56
- The dataframe that will be used as the chart's main data source, if
57
- specified using Vega-Lite's inline API.
58
- """
59
-
60
- @_builtins.property
61
- def datasets(self) -> _containers.RepeatedCompositeFieldContainer[_NamedDataSet_pb2.NamedDataSet]:
62
- """Dataframes associated with this chart using Vega-Lite's datasets API, if
63
- any.
64
- """
65
-
66
- def __init__(
67
- self,
68
- *,
69
- spec: _builtins.str = ...,
70
- data: _DataFrame_pb2.DataFrame | None = ...,
71
- datasets: _abc.Iterable[_NamedDataSet_pb2.NamedDataSet] | None = ...,
72
- use_container_width: _builtins.bool = ...,
73
- ) -> None: ...
74
- _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data"] # noqa: Y015
75
- def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
76
- _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "datasets", b"datasets", "spec", b"spec", "use_container_width", b"use_container_width"] # noqa: Y015
77
- def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
78
-
79
- Global___VegaLiteChart: _TypeAlias = VegaLiteChart # noqa: Y015
@@ -1,2 +0,0 @@
1
- import{z as qt,r as x,j as te}from"./index.lMhsw-5K.js";const{entries:gt,setPrototypeOf:ft,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object;let{freeze:R,seal:O,create:ht}=Object,{apply:ve,construct:Ue}=typeof Reflect<"u"&&Reflect;R||(R=function(n){return n});O||(O=function(n){return n});ve||(ve=function(n,s,a){return n.apply(s,a)});Ue||(Ue=function(n,s){return new n(...s)});const me=y(Array.prototype.forEach),Qt=y(Array.prototype.lastIndexOf),ut=y(Array.prototype.pop),K=y(Array.prototype.push),en=y(Array.prototype.splice),de=y(String.prototype.toLowerCase),Ce=y(String.prototype.toString),mt=y(String.prototype.match),Z=y(String.prototype.replace),tn=y(String.prototype.indexOf),nn=y(String.prototype.trim),b=y(Object.prototype.hasOwnProperty),S=y(RegExp.prototype.test),J=on(TypeError);function y(o){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var s=arguments.length,a=new Array(s>1?s-1:0),d=1;d<s;d++)a[d-1]=arguments[d];return ve(o,n,a)}}function on(o){return function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return Ue(o,s)}}function l(o,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de;ft&&ft(o,null);let a=n.length;for(;a--;){let d=n[a];if(typeof d=="string"){const A=s(d);A!==d&&(Kt(n)||(n[a]=A),d=A)}o[d]=!0}return o}function rn(o){for(let n=0;n<o.length;n++)b(o,n)||(o[n]=null);return o}function w(o){const n=ht(null);for(const[s,a]of gt(o))b(o,s)&&(Array.isArray(a)?n[s]=rn(a):a&&typeof a=="object"&&a.constructor===Object?n[s]=w(a):n[s]=a);return n}function Q(o,n){for(;o!==null;){const a=Jt(o,n);if(a){if(a.get)return y(a.get);if(typeof a.value=="function")return y(a.value)}o=Zt(o)}function s(){return null}return s}const pt=R(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),we=R(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xe=R(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),an=R(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pe=R(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sn=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dt=R(["#text"]),Tt=R(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ke=R(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_t=R(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),pe=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ln=O(/\{\{[\w\W]*|[\w\W]*\}\}/gm),cn=O(/<%[\w\W]*|[\w\W]*%>/gm),fn=O(/\$\{[\w\W]*/gm),un=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),mn=O(/^aria-[\-\w]+$/),St=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pn=O(/^(?:\w+script|data):/i),dn=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=O(/^html$/i),Tn=O(/^[a-z][.\w]*(-[.\w]+)+$/i);var Et=Object.freeze({__proto__:null,ARIA_ATTR:mn,ATTR_WHITESPACE:dn,CUSTOM_ELEMENT:Tn,DATA_ATTR:un,DOCTYPE_NAME:Rt,ERB_EXPR:cn,IS_ALLOWED_URI:St,IS_SCRIPT_OR_DATA:pn,MUSTACHE_EXPR:ln,TMPLIT_EXPR:fn});const ee={element:1,text:3,progressingInstruction:7,comment:8,document:9},_n=function(){return typeof window>"u"?null:window},En=function(n,s){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let a=null;const d="data-tt-policy-suffix";s&&s.hasAttribute(d)&&(a=s.getAttribute(d));const A="dompurify"+(a?"#"+a:"");try{return n.createPolicy(A,{createHTML(I){return I},createScriptURL(I){return I}})}catch{return console.warn("TrustedTypes policy "+A+" could not be created."),null}},At=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yt(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_n();const n=r=>yt(r);if(n.version="3.2.6",n.removed=[],!o||!o.document||o.document.nodeType!==ee.document||!o.Element)return n.isSupported=!1,n;let{document:s}=o;const a=s,d=a.currentScript,{DocumentFragment:A,HTMLTemplateElement:I,Node:G,Element:ne,NodeFilter:B,NamedNodeMap:bt=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:It,DOMParser:Dt,trustedTypes:oe}=o,Y=ne.prototype,Nt=Q(Y,"cloneNode"),Mt=Q(Y,"remove"),Ct=Q(Y,"nextSibling"),wt=Q(Y,"childNodes"),ie=Q(Y,"parentNode");if(typeof I=="function"){const r=s.createElement("template");r.content&&r.content.ownerDocument&&(s=r.content.ownerDocument)}let g,X="";const{implementation:_e,createNodeIterator:xt,createDocumentFragment:Pt,getElementsByTagName:kt}=s,{importNode:vt}=a;let h=At();n.isSupported=typeof gt=="function"&&typeof ie=="function"&&_e&&_e.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:Ae,TMPLIT_EXPR:ge,DATA_ATTR:Ut,ARIA_ATTR:Ht,IS_SCRIPT_OR_DATA:Ft,ATTR_WHITESPACE:Fe,CUSTOM_ELEMENT:zt}=Et;let{IS_ALLOWED_URI:ze}=Et,m=null;const We=l({},[...pt,...we,...xe,...Pe,...dt]);let T=null;const Ge=l({},[...Tt,...ke,..._t,...pe]);let f=Object.seal(ht(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,he=null,Be=!0,Se=!0,Ye=!1,Xe=!0,k=!1,re=!0,P=!1,Re=!1,ye=!1,v=!1,ae=!1,se=!1,je=!0,Ve=!1;const Wt="user-content-";let Le=!0,V=!1,U={},H=null;const $e=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Ke=l({},["audio","video","img","source","image","track"]);let Oe=null;const Ze=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",ce="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml";let F=N,be=!1,Ie=null;const Gt=l({},[le,ce,N],Ce);let fe=l({},["mi","mo","mn","ms","mtext"]),ue=l({},["annotation-xml"]);const Bt=l({},["title","style","font","a","script"]);let $=null;const Yt=["application/xhtml+xml","text/html"],Xt="text/html";let p=null,z=null;const jt=s.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},De=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(z&&z===e)){if((!e||typeof e!="object")&&(e={}),e=w(e),$=Yt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Xt:e.PARSER_MEDIA_TYPE,p=$==="application/xhtml+xml"?Ce:de,m=b(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,p):We,T=b(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,p):Ge,Ie=b(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,Ce):Gt,Oe=b(e,"ADD_URI_SAFE_ATTR")?l(w(Ze),e.ADD_URI_SAFE_ATTR,p):Ze,qe=b(e,"ADD_DATA_URI_TAGS")?l(w(Ke),e.ADD_DATA_URI_TAGS,p):Ke,H=b(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,p):$e,j=b(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,p):w({}),he=b(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,p):w({}),U=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,re=e.SAFE_FOR_XML!==!1,P=e.WHOLE_DOCUMENT||!1,v=e.RETURN_DOM||!1,ae=e.RETURN_DOM_FRAGMENT||!1,se=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,ze=e.ALLOWED_URI_REGEXP||St,F=e.NAMESPACE||N,fe=e.MATHML_TEXT_INTEGRATION_POINTS||fe,ue=e.HTML_INTEGRATION_POINTS||ue,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Se=!1),ae&&(v=!0),U&&(m=l({},dt),T=[],U.html===!0&&(l(m,pt),l(T,Tt)),U.svg===!0&&(l(m,we),l(T,ke),l(T,pe)),U.svgFilters===!0&&(l(m,xe),l(T,ke),l(T,pe)),U.mathMl===!0&&(l(m,Pe),l(T,_t),l(T,pe))),e.ADD_TAGS&&(m===We&&(m=w(m)),l(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(T===Ge&&(T=w(T)),l(T,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&l(Oe,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(H===$e&&(H=w(H)),l(H,e.FORBID_CONTENTS,p)),Le&&(m["#text"]=!0),P&&l(m,["html","head","body"]),m.table&&(l(m,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw J('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw J('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=En(oe,d)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));R&&R(e),z=e}},Qe=l({},[...we,...xe,...an]),et=l({},[...Pe,...sn]),Vt=function(e){let t=ie(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const i=de(e.tagName),c=de(t.tagName);return Ie[e.namespaceURI]?e.namespaceURI===ce?t.namespaceURI===N?i==="svg":t.namespaceURI===le?i==="svg"&&(c==="annotation-xml"||fe[c]):!!Qe[i]:e.namespaceURI===le?t.namespaceURI===N?i==="math":t.namespaceURI===ce?i==="math"&&ue[c]:!!et[i]:e.namespaceURI===N?t.namespaceURI===ce&&!ue[c]||t.namespaceURI===le&&!fe[c]?!1:!et[i]&&(Bt[i]||!Qe[i]):!!($==="application/xhtml+xml"&&Ie[e.namespaceURI]):!1},D=function(e){K(n.removed,{element:e});try{ie(e).removeChild(e)}catch{Mt(e)}},W=function(e,t){try{K(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{K(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(v||ae)try{D(t)}catch{}else try{t.setAttribute(e,"")}catch{}},tt=function(e){let t=null,i=null;if(ye)e="<remove></remove>"+e;else{const u=mt(e,/^[\r\n\t ]+/);i=u&&u[0]}$==="application/xhtml+xml"&&F===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=g?g.createHTML(e):e;if(F===N)try{t=new Dt().parseFromString(c,$)}catch{}if(!t||!t.documentElement){t=_e.createDocument(F,"template",null);try{t.documentElement.innerHTML=be?X:c}catch{}}const _=t.body||t.documentElement;return e&&i&&_.insertBefore(s.createTextNode(i),_.childNodes[0]||null),F===N?kt.call(t,P?"html":"body")[0]:P?t.documentElement:_},nt=function(e){return xt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Ne=function(e){return e instanceof It&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof bt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},ot=function(e){return typeof G=="function"&&e instanceof G};function M(r,e,t){me(r,i=>{i.call(n,e,t,z)})}const it=function(e){let t=null;if(M(h.beforeSanitizeElements,e,null),Ne(e))return D(e),!0;const i=p(e.nodeName);if(M(h.uponSanitizeElement,e,{tagName:i,allowedTags:m}),re&&e.hasChildNodes()&&!ot(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent)||e.nodeType===ee.progressingInstruction||re&&e.nodeType===ee.comment&&S(/<[/\w]/g,e.data))return D(e),!0;if(!m[i]||j[i]){if(!j[i]&&at(i)&&(f.tagNameCheck instanceof RegExp&&S(f.tagNameCheck,i)||f.tagNameCheck instanceof Function&&f.tagNameCheck(i)))return!1;if(Le&&!H[i]){const c=ie(e)||e.parentNode,_=wt(e)||e.childNodes;if(_&&c){const u=_.length;for(let L=u-1;L>=0;--L){const C=Nt(_[L],!0);C.__removalCount=(e.__removalCount||0)+1,c.insertBefore(C,Ct(e))}}}return D(e),!0}return e instanceof ne&&!Vt(e)||(i==="noscript"||i==="noembed"||i==="noframes")&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(k&&e.nodeType===ee.text&&(t=e.textContent,me([Ee,Ae,ge],c=>{t=Z(t,c," ")}),e.textContent!==t&&(K(n.removed,{element:e.cloneNode()}),e.textContent=t)),M(h.afterSanitizeElements,e,null),!1)},rt=function(e,t,i){if(je&&(t==="id"||t==="name")&&(i in s||i in jt))return!1;if(!(Se&&!he[t]&&S(Ut,t))){if(!(Be&&S(Ht,t))){if(!T[t]||he[t]){if(!(at(e)&&(f.tagNameCheck instanceof RegExp&&S(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&S(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&S(f.tagNameCheck,i)||f.tagNameCheck instanceof Function&&f.tagNameCheck(i))))return!1}else if(!Oe[t]){if(!S(ze,Z(i,Fe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&tn(i,"data:")===0&&qe[e])){if(!(Ye&&!S(Ft,Z(i,Fe,"")))){if(i)return!1}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&mt(e,zt)},st=function(e){M(h.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ne(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0};let c=t.length;for(;c--;){const _=t[c],{name:u,namespaceURI:L,value:C}=_,q=p(u),Me=C;let E=u==="value"?Me:nn(Me);if(i.attrName=q,i.attrValue=E,i.keepAttr=!0,i.forceKeepAttr=void 0,M(h.uponSanitizeAttribute,e,i),E=i.attrValue,Ve&&(q==="id"||q==="name")&&(W(u,e),E=Wt+E),re&&S(/((--!?|])>)|<\/(style|title)/i,E)){W(u,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){W(u,e);continue}if(!Xe&&S(/\/>/i,E)){W(u,e);continue}k&&me([Ee,Ae,ge],ct=>{E=Z(E,ct," ")});const lt=p(e.nodeName);if(!rt(lt,q,E)){W(u,e);continue}if(g&&typeof oe=="object"&&typeof oe.getAttributeType=="function"&&!L)switch(oe.getAttributeType(lt,q)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==Me)try{L?e.setAttributeNS(L,u,E):e.setAttribute(u,E),Ne(e)?D(e):ut(n.removed)}catch{W(u,e)}}M(h.afterSanitizeAttributes,e,null)},$t=function r(e){let t=null;const i=nt(e);for(M(h.beforeSanitizeShadowDOM,e,null);t=i.nextNode();)M(h.uponSanitizeShadowNode,t,null),it(t),st(t),t.content instanceof A&&r(t.content);M(h.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,i=null,c=null,_=null;if(be=!r,be&&(r="<!-->"),typeof r!="string"&&!ot(r))if(typeof r.toString=="function"){if(r=r.toString(),typeof r!="string")throw J("dirty is not a string, aborting")}else throw J("toString is not a function");if(!n.isSupported)return r;if(Re||De(e),n.removed=[],typeof r=="string"&&(V=!1),V){if(r.nodeName){const C=p(r.nodeName);if(!m[C]||j[C])throw J("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof G)t=tt("<!---->"),i=t.ownerDocument.importNode(r,!0),i.nodeType===ee.element&&i.nodeName==="BODY"||i.nodeName==="HTML"?t=i:t.appendChild(i);else{if(!v&&!k&&!P&&r.indexOf("<")===-1)return g&&se?g.createHTML(r):r;if(t=tt(r),!t)return v?null:se?X:""}t&&ye&&D(t.firstChild);const u=nt(V?r:t);for(;c=u.nextNode();)it(c),st(c),c.content instanceof A&&$t(c.content);if(V)return r;if(v){if(ae)for(_=Pt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=vt.call(a,_,!0)),_}let L=P?t.outerHTML:t.innerHTML;return P&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&S(Rt,t.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
2
- `+L),k&&me([Ee,Ae,ge],C=>{L=Z(L,C," ")}),g&&se?g.createHTML(L):L},n.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};De(r),Re=!0},n.clearConfig=function(){z=null,Re=!1},n.isValidAttribute=function(r,e,t){z||De({});const i=p(r),c=p(e);return rt(i,c,t)},n.addHook=function(r,e){typeof e=="function"&&K(h[r],e)},n.removeHook=function(r,e){if(e!==void 0){const t=Qt(h[r],e);return t===-1?void 0:en(h[r],t,1)[0]}return ut(h[r])},n.removeHooks=function(r){h[r]=[]},n.removeAllHooks=function(){h=At()},n}var Te=yt();const He="data-temp-href-target";Te.addHook("beforeSanitizeAttributes",function(o){o instanceof HTMLElement&&o.hasAttribute("target")&&o.getAttribute("target")==="_blank"&&o.setAttribute(He,"_blank")});Te.addHook("afterSanitizeAttributes",function(o){o instanceof HTMLElement&&o.hasAttribute(He)&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"),o.removeAttribute(He))});const Lt={USE_PROFILES:{html:!0},FORCE_BODY:!0},An=qt("div",{target:"e1o5kn6k0"})(({theme:o})=>({width:"100%","ul, ol, dl":{paddingLeft:o.spacing.threeXL}})),Ot=x.forwardRef(function(n,s){return te(An,{className:"stHtml","data-testid":"stHtml",ref:s,...n})}),gn={...Lt,ADD_TAGS:["script","style"],ADD_ATTR:["src","type","async","defer","nonce","crossorigin","referrerpolicy","integrity"]};function hn(o){return Te.sanitize(o,gn)}const Sn=({body:o})=>{const n=x.useRef(null),s=x.useMemo(()=>hn(o),[o]);return x.useEffect(()=>{const a=n.current;return a?(a.innerHTML=s,Array.from(a.querySelectorAll("script")).forEach(A=>{const I=document.createElement("script");for(const{name:G,value:ne}of Array.from(A.attributes))try{I.setAttribute(G,ne)}catch{}A.src||(I.textContent=A.textContent),A.parentNode?.replaceChild(I,A)}),()=>{a.innerHTML=""}):void 0},[s]),te(Ot,{ref:n})},Rn=x.memo(Sn);function yn(o){return Te.sanitize(o,Lt)}function Ln({body:o}){const n=x.useMemo(()=>yn(o),[o]);return n?te(Ot,{dangerouslySetInnerHTML:{__html:n}}):null}const On=x.memo(Ln);function bn({element:o}){const{body:n,unsafeAllowJavascript:s}=o;return s?te(Rn,{body:n}):te(On,{body:n})}const Dn=x.memo(bn);export{Dn as default};
@@ -1 +0,0 @@
1
- import{z as u,r as L,W as C,o as x,j as i,R as E,q as b,V as v}from"./index.lMhsw-5K.js";import{w as y,E as W}from"./withFullScreenWrapper.EdE3zOz5.js";import{S as p,T}from"./Toolbar.CPyjMABY.js";const F=u("div",{target:"e1xt4yf90"})(({theme:e,shouldStretch:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:e.spacing.lg,maxWidth:"100%",width:t?"100%":"fit-content"})),R=u("div",{target:"e1xt4yf91"})(({theme:e,shouldStretch:t})=>({display:"flex",flexDirection:"column",alignItems:"stretch",width:t?"100%":"auto",flexGrow:t?1:0,">img":{borderRadius:e.radii.default}})),j=u("div",{target:"e1xt4yf92"})(({theme:e})=>({textAlign:"center",marginTop:e.spacing.xs,wordWrap:"break-word",padding:e.spacing.threeXS})),H=v.getLogger("ImageList");function M(e,t,r){if(e){if(e.useStretch)return r;if(e.useContent)return;if(e.pixelWidth)return e.pixelWidth}if(t!=null)switch(t){case-1:case-3:case-4:return;case-2:case-5:return r;default:return t>0?t:void 0}}const G=({itemKey:e,image:t,imgStyle:r,buildMediaURL:l,handleImageError:s,shouldStretch:d})=>{const o=E(t.url);return x(R,{"data-testid":"stImageContainer",shouldStretch:d,children:[i("img",{style:r,src:l(t.url),alt:e,onError:s,crossOrigin:o}),t.caption&&i(j,{"data-testid":"stImageCaption",style:r,children:i(b,{source:t.caption,allowHTML:!1,isCaption:!0,isLabel:!0})})]})};function O({element:e,endpoints:t,widthConfig:r,disableFullscreenMode:l}){const{expanded:s,width:d,height:o,expand:f,collapse:h}=C(W),g=d||0,I=M(r,e.width,g),m=r?.useStretch||e.width===-5,a={};o&&s?(a.maxHeight=o,a.objectFit="contain",a.width="100%"):(a.width=I??"100%",a.maxWidth="100%");const w=c=>{const n=c.currentTarget.src;H.error(`Client Error: Image source error - ${n}`),t.sendClientErrorToHost("Image","Image source failed to load","onerror triggered",n)};return x(p,{width:g,height:o,useContainerWidth:s,topCentered:!0,children:[i(T,{target:p,isFullScreen:s,onExpand:f,onCollapse:h,disableFullscreenMode:l}),i(F,{className:"stImage","data-testid":"stImage",shouldStretch:m,children:e.imgs.map((c,n)=>i(G,{itemKey:n.toString(),image:c,imgStyle:a,buildMediaURL:S=>t.buildMediaURL(S),handleImageError:w,shouldStretch:m},n))})]})}const U=y(O),D=L.memo(U);export{D as default};
@@ -1 +0,0 @@
1
- import{r as a,E as B,_ as $,l as X,e as L,Q,O as K,bd as z,be as j,bf as Y,bg as Z,n as k,bh as M,V as U,W as q,k as ee,b8 as te,bi as ne,j as x,o as se,b1 as re}from"./index.lMhsw-5K.js";import{w as oe,E as ae}from"./withFullScreenWrapper.EdE3zOz5.js";import{a as _,S as H,T as ie}from"./Toolbar.CPyjMABY.js";import{R as ce}from"./index.CkSzTTpO.js";import{a as J,c as le,b as ue,e as fe,t as de,S as me,d as pe}from"./embed.QjYZXbaW.js";import{u as he}from"./FormClearHelper.BM3uDLnU.js";import{T as ge}from"./TableChart.esm.D3oUYYYd.js";import"./moment.C7qA8nIE.js";import"./pandasStylerUtils.BSc50we3.js";import"./numbro.B9_PXfzp.js";import"./_baseIndexOf.BTknn6Gb.js";import"./index.8HslT92O.js";import"./main.BkNqoTrd.js";import"./throttle.dHeXiPIK.js";import"./toConsumableArray.AOXQx2YY.js";import"./formatNumber.CH39oSMw.js";import"./sprintf.DpPCfzXw.js";import"./formatMoment.C6Hwn6X5.js";import"./checkbox.S6O8DPFl.js";import"./createDownloadLinkElement.B-5tIJBw.js";import"./FileDownload.esm.D-Qgpk5d.js";import"./_arrayIncludes.B19Iyn2B.js";import"./threshold.CUNQbqMA.js";import"./value.DaKxGC7O.js";import"./timer.BZio6gjG.js";var W=a.forwardRef(function(n,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(B,$({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"}))});W.displayName="InsertChart";const Se=20;function ye(n){"params"in n&&"encoding"in n&&n.params.forEach(t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&t.select.type==="point"&&!("encodings"in t.select)&&L(t.select.encodings)&&(t.select.encodings=Object.keys(n.encoding)))})}const be=(n,t,r,s,f,l,u,m)=>{const e=JSON.parse(n);if(typeof e.height=="number"&&e.height<=0&&delete e.height,typeof e.width=="number"&&e.width<=0&&delete e.width,s==="streamlit"?e.config=J(e.config,l):e.usermeta?.embedOptions?.theme==="streamlit"?(e.config=J(e.config,l),e.usermeta.embedOptions.theme=void 0):e.config=le(e.config,l),e.title&&(typeof e.title=="string"&&(e.title={text:e.title}),e.title.limit=e.title.limit??Math.max(u-40,0)),r&&m&&m>0&&(e.height=m),t&&u&&u>0&&(e.width=u,"vconcat"in e&&e.vconcat.forEach(o=>{o===null||typeof o!="object"||"hconcat"in o||"vconcat"in o||"concat"in o||"layer"in o||(o.width=u)})),e.padding||(e.padding={}),L(e.padding.bottom)&&(e.padding.bottom=Se),e.datasets)throw new Error("Datasets should not be passed as part of the spec");return f.length>0&&ye(e),e},we=(n,t,r,s,f)=>{const l=X(),{id:u,formId:m,spec:e,data:o,datasets:i,vegaLiteTheme:d,selectionMode:c}=n,h=a.useMemo(()=>c,[JSON.stringify(c)]),S=a.useMemo(()=>be(e,s,f,d,h,l,t,r),[e,s,f,d,h,l,t,r]);return{id:u,formId:m,vegaLiteTheme:d,spec:S,selectionMode:h,data:o,datasets:i,useContainerWidth:s}},Ce={DATAFRAME_INDEX:"(index)"};function Ee(n){return!n||n.dimensions.numDataRows===0?null:F(n)}function Ne(n){const t=I(n);if(L(t))return null;const r={};for(const[s,f]of Object.entries(t))r[s]=F(f);return r}function I(n){if(n?.length===0)return null;const t={};return n.forEach(r=>{if(!r)return;const s=r.hasName?r.name:null;t[s]=r.data}),t}function F(n,t=0){if(n.dimensions.numDataRows===0)return[];const r=[],{numDataRows:s,numDataColumns:f,numIndexColumns:l}=n.dimensions,u=n.columnTypes[0]??void 0,m=u?.type===Q.INDEX&&(K(u)||z(u)||j(u));for(let e=t;e<s;e++){const o={};if(m){const{content:i}=n.getCell(e,0);o[Ce.DATAFRAME_INDEX]=typeof i=="bigint"?Number(i):i}for(let i=0;i<f;i++){const d=i+l,{content:c,contentType:h}=n.getCell(e,d);if((c instanceof Date||typeof c=="number"&&Number.isFinite(c))&&(z(h)||j(h))&&!Y(h)){const S=new Date(c).getTimezoneOffset()*60*1e3;o[n.columnNames[0][d]]=c.valueOf()+S}else o[n.columnNames[0][d]]=typeof c=="bigint"?Number(c):c}r.push(o)}return r}const Ve=150,De=U.getLogger("useVegaLiteSelections"),Oe=(n,t,r)=>{const{id:s,formId:f,selectionMode:l}=n,u=a.useCallback(e=>{l.forEach(i=>{e.addSignalListener(i,Z(Ve,(d,c)=>{const h=e.getState({data:(N,A)=>l.some(g=>`${g}_store`===N),recurse:!1});k(h)&&t.setElementState(s,"viewState",h);let S=c;"vlPoint"in c&&"or"in c.vlPoint&&(S=c.vlPoint.or);const D={id:s,formId:f},E=JSON.parse(t.getStringValue(D)||"{}"),V={selection:{...E?.selection||{},[d]:S||{}}};M(E,V)||t.setStringValue(D,JSON.stringify(V),{fromUi:!0},r)}))});const o=t.getElementState(s,"viewState");if(k(o))try{return e.setState(o)}catch(i){De.warn("Failed to restore view state",i)}return e},[s,l,t,f,r]),m=a.useCallback(()=>{const e={selection:{}};l.forEach(c=>{e.selection[c]={}});const o={id:s,formId:f},i=t.getStringValue(o),d=i?JSON.parse(i):e;M(d,e)||t.setStringValue(o,JSON.stringify(e),{fromUi:!0},r)},[s,f,r,l,t]);return{maybeConfigureSelections:u,onFormCleared:m}},P="source",Te=U.getLogger("useVegaEmbed");function ve(n,t,r){const s=a.useRef(null),f=a.useRef(null),l=a.useRef(P),u=a.useRef(null),m=a.useRef([]),e=a.useRef(null),o=a.useRef([]),[i,d]=a.useState(!1),{maybeConfigureSelections:c,onFormCleared:h}=Oe(n,t,r);he({widgetMgr:t,element:n,onFormCleared:h});const{data:S,datasets:D}=n;a.useEffect(()=>{e.current=S,o.current=D,s.current===null&&(u.current=S,m.current=D)},[S,D]);const E=a.useCallback(()=>{f.current&&f.current(),f.current=null,s.current=null},[]),V=a.useCallback(async(g,b)=>{if(g.current===null)throw new Error("Element missing.");d(!0);try{E();const w={ast:!0,expr:ue,tooltip:{disableDefaultStyle:!0},defaultStyle:!1,forceActionsMenu:!0},{vgSpec:y,view:R,finalize:T}=await fe(g.current,b,w);s.current=c(R),f.current=T;const p=Ne(o.current),C=p?Object.keys(p):[];if(C.length===1){const[v]=C;l.current=v}else C.length===0&&y.data&&(l.current=P);const O=Ee(e.current);if(O&&s.current.insert(l.current,O),p)for(const[v,G]of Object.entries(p))s.current.insert(v,G);return await s.current.runAsync(),await s.current.resize().runAsync(),u.current=e.current,m.current=o.current,s.current}finally{d(!1)}},[E,c]),N=a.useCallback((g,b,w,y)=>{if(!y||y.dimensions.numDataRows===0){try{g.remove(b,de)}catch{}return}if(!w||w.dimensions.numDataRows===0){g.insert(b,F(y));return}y.hash!==w.hash&&(g.data(b,F(y)),Te.info(`Had to clear the ${b} dataset before inserting data through Vega view.`))},[]),A=a.useCallback(async(g,b)=>{if(s.current===null||i)return null;const w=u.current,y=m.current;(w||g)&&N(s.current,l.current,w,g);const R=I(y)??{},T=I(b)??{};for(const[p,C]of Object.entries(T)){const O=p||l.current,v=R[O];N(s.current,O,v,C)}for(const p of Object.keys(R))!Object.hasOwn(T,p)&&p!==l.current&&N(s.current,p,null,null);return await s.current?.resize().runAsync(),u.current=g,m.current=b,s.current},[N,i]);return{createView:V,updateView:A,finalizeView:E}}function Ae(n){try{const t=typeof n=="string"?JSON.parse(n):n;return!!(t.facet||t.encoding?.row||t.encoding?.column||t.encoding?.facet)}catch{return!1}}function Re(n){try{const t=typeof n=="string"?JSON.parse(n):n;return!("vconcat"in t)||!Array.isArray(t.vconcat)?!1:t.vconcat.some(r=>r!==null&&typeof r=="object"&&("hconcat"in r||"vconcat"in r||"concat"in r||"layer"in r))}catch{return!1}}const xe=({disableFullscreenMode:n,element:t,fragmentId:r,widgetMgr:s,widthConfig:f,heightConfig:l})=>{const[u,m]=a.useState(!1),[e,o]=a.useState(!1),{expanded:i,height:d,width:c,expand:h,collapse:S}=q(ae),{width:D,height:E,elementRef:V}=ee([u]),N=te(f)||t.useContainerWidth,A=ne(l),g=Ae(t.spec),b=Re(t.spec),w=we(t,g?c??0:D,(i?d:E)??0,i&&!b?!0:N,i?!0:A),{createView:y,updateView:R,finalizeView:T}=ve(w,s,r),{data:p,datasets:C,spec:O}=w;if(a.useLayoutEffect(()=>(V.current!==null&&y(V,O),T),[y,T,O,c,d,u,V]),a.useEffect(()=>{R(p,C)},[p,C]),a.useEffect(()=>{p||C?.[0]?.data?o(!0):o(!1)},[p,C]),u){const v=d??(E>0?E:void 0);return x(ce,{data:p??C[0]?.data,height:v,width:f??void 0,customToolbarActions:[x(_,{label:"Show chart",icon:W,onClick:()=>{m(!1)}},"show-chart")]})}return se(H,{height:A?i?d:"100%":d,useContainerWidth:i?!0:N,children:[x(ie,{target:H,isFullScreen:i,onExpand:h,onCollapse:S,disableFullscreenMode:n,children:e&&x(_,{label:"Show data",icon:ge,onClick:()=>{m(!0)}})}),x(re,{styles:[me]}),x(pe,{"data-testid":"stVegaLiteChart",className:"stVegaLiteChart",useContainerWidth:N,useContainerHeight:A,ref:V})]})},Fe=oe(xe),rt=a.memo(Fe);export{me as StyledVegaLiteChartTooltips,J as applyStreamlitTheme,rt as default};
@@ -1 +0,0 @@
1
- import{J as i}from"./index.lMhsw-5K.js";var n=0;function u(r){var t=++n;return i(r)+t}export{u};
@@ -1,16 +0,0 @@
1
- rem Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
2
- rem
3
- rem Licensed under the Apache License, Version 2.0 (the "License");
4
- rem you may not use this file except in compliance with the License.
5
- rem You may obtain a copy of the License at
6
- rem
7
- rem http://www.apache.org/licenses/LICENSE-2.0
8
- rem
9
- rem Unless required by applicable law or agreed to in writing, software
10
- rem distributed under the License is distributed on an "AS IS" BASIS,
11
- rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- rem See the License for the specific language governing permissions and
13
- rem limitations under the License.
14
-
15
- @echo OFF
16
- python -m streamlit %*