streamlit-nightly 1.45.2.dev20250522__py3-none-any.whl → 1.45.2.dev20250523__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/delta_generator.py +21 -0
- streamlit/elements/arrow.py +19 -0
- streamlit/elements/code.py +11 -10
- streamlit/elements/lib/built_in_chart_utils.py +19 -0
- streamlit/elements/lib/layout_utils.py +41 -1
- streamlit/elements/vega_charts.py +5 -0
- streamlit/errors.py +15 -0
- streamlit/proto/Block_pb2.py +32 -32
- streamlit/proto/Block_pb2.pyi +22 -10
- streamlit/proto/Code_pb2.py +5 -3
- streamlit/proto/Code_pb2.pyi +2 -9
- streamlit/proto/Element_pb2.py +5 -3
- streamlit/proto/Element_pb2.pyi +20 -3
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.CudC4cnG.js → ErrorOutline.esm.qteVcUUN.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.qn_AyTtU.js → FileDownload.esm.ncu7N-Hr.js} +1 -1
- streamlit/static/static/js/{FileHelper.BWuvkxif.js → FileHelper.zsMZ7RXt.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.CHYZBZGR.js → FormClearHelper.W8yVYXZp.js} +1 -1
- streamlit/static/static/js/{Hooks.aQtyO1Es.js → Hooks.DBj6srQ1.js} +1 -1
- streamlit/static/static/js/{InputInstructions.u4jPRzPB.js → InputInstructions.BobLsJJb.js} +1 -1
- streamlit/static/static/js/{ProgressBar.CG44OwiE.js → ProgressBar.CtvJrIzN.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.VXXdANh0.js → RenderInPortalIfExists.DnT_UdzV.js} +1 -1
- streamlit/static/static/js/{Toolbar.e8AKFI20.js → Toolbar.BVF7NtOB.js} +1 -1
- streamlit/static/static/js/{base-input.D7ucWcOg.js → base-input.B4sdS3vw.js} +1 -1
- streamlit/static/static/js/{checkbox.B9R-wnB7.js → checkbox.DKDitzF8.js} +1 -1
- streamlit/static/static/js/{createSuper.C1ofFeAG.js → createSuper.mhx956J9.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.DtdlN29o.js → data-grid-overlay-editor.CmXS0PAX.js} +1 -1
- streamlit/static/static/js/{downloader.amlkJvLF.js → downloader.Cnd9SuxG.js} +1 -1
- streamlit/static/static/js/{es6.Bx1hXnS0.js → es6.DM-pf09u.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.DgHMAYbI.js → iframeResizer.contentWindow.Gc5GAjZM.js} +1 -1
- streamlit/static/static/js/{index.B8eTe00V.js → index.AWkO-7e-.js} +1 -1
- streamlit/static/static/js/{index.BD_oIhGF.js → index.B0E6Rv1F.js} +1 -1
- streamlit/static/static/js/{index.CMLTPeKt.js → index.B29JQLHa.js} +5 -5
- streamlit/static/static/js/{index.BtNqOUEO.js → index.B45ExNhw.js} +1 -1
- streamlit/static/static/js/{index.CNh3_B-b.js → index.B6xTo8b8.js} +1 -1
- streamlit/static/static/js/{index.BWuE2_HE.js → index.BJQNG4O1.js} +1 -1
- streamlit/static/static/js/{index.BgTPKzvI.js → index.BNNR5Jmd.js} +1 -1
- streamlit/static/static/js/{index.Bdy3ZPdq.js → index.BONHiJUZ.js} +1 -1
- streamlit/static/static/js/{index.VzRep4kY.js → index.BR-S54Iv.js} +1 -1
- streamlit/static/static/js/{index.N0sZYfFM.js → index.BV38yp5k.js} +1 -1
- streamlit/static/static/js/{index.DQ5EXoB_.js → index.BWTBe3a1.js} +1 -1
- streamlit/static/static/js/{index.Yu7J_Dze.js → index.BfusYuD8.js} +1 -1
- streamlit/static/static/js/{index.C0T_M4GD.js → index.BkLkRTpZ.js} +1 -1
- streamlit/static/static/js/{index.DxHtKYyS.js → index.C5KKmyWy.js} +1 -1
- streamlit/static/static/js/{index.DN4Mx7FE.js → index.CJ-XXd1r.js} +1 -1
- streamlit/static/static/js/{index.D5GJYvYX.js → index.COBionvf.js} +1 -1
- streamlit/static/static/js/{index.DE1gGOzc.js → index.CWgnk1N4.js} +1 -1
- streamlit/static/static/js/{index.Or4BfcX_.js → index.CZ5fZcT5.js} +1 -1
- streamlit/static/static/js/{index.DUennCN8.js → index.C_2m4F7k.js} +1 -1
- streamlit/static/static/js/{index.DiBs3xkT.js → index.CgOynO1t.js} +1 -1
- streamlit/static/static/js/{index.DZf_kpi0.js → index.CjBaoWYr.js} +1 -1
- streamlit/static/static/js/{index.DNwNuLWE.js → index.CkKptP1T.js} +1 -1
- streamlit/static/static/js/{index.Bna1CU8i.js → index.D4XRYl23.js} +1 -1
- streamlit/static/static/js/{index.D08mj5Od.js → index.DAvhwYMG.js} +1 -1
- streamlit/static/static/js/{index.CQRM5-Cg.js → index.DIyx-z1Q.js} +1 -1
- streamlit/static/static/js/{index.CYHkBSAi.js → index.DOYomqqU.js} +1 -1
- streamlit/static/static/js/{index.C3vs9CpH.js → index.DOl-SOKu.js} +1 -1
- streamlit/static/static/js/{index.BdDyuQmj.js → index.DQGSbu2C.js} +1 -1
- streamlit/static/static/js/{index.BmoykTHR.js → index.DTU7qmDP.js} +1 -1
- streamlit/static/static/js/{index.DlKdkJEq.js → index.DdyZtGcg.js} +1 -1
- streamlit/static/static/js/{index.D97xl78q.js → index.DwUISpCs.js} +9 -9
- streamlit/static/static/js/{index.Bn5K9Bd_.js → index.I3iNnzJx.js} +1 -1
- streamlit/static/static/js/{index.7CBT51EL.js → index.WWYmGCrM.js} +1 -1
- streamlit/static/static/js/{index.Bon8EwWL.js → index._BaeK1t7.js} +1 -1
- streamlit/static/static/js/{index.BqEJFCLf.js → index.gBOr8z2K.js} +1 -1
- streamlit/static/static/js/{index.1mfAtb9U.js → index.p2Wl4zMi.js} +1 -1
- streamlit/static/static/js/{index.BaaFPBjg.js → index.vOqxh1m2.js} +1 -1
- streamlit/static/static/js/{input.CRcaB9oP.js → input.BvD9DHLa.js} +1 -1
- streamlit/static/static/js/{memory.F9D6Oyjj.js → memory.DCVB1HOm.js} +1 -1
- streamlit/static/static/js/{mergeWith.BYtZfcmi.js → mergeWith.BqTORFAq.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.ClWmQbhW.js → number-overlay-editor.VB_OvuPv.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.BHxvTsgt.js → possibleConstructorReturn.DhYxBDlj.js} +1 -1
- streamlit/static/static/js/{sandbox.9HJbznr2.js → sandbox.CoN7LRFk.js} +1 -1
- streamlit/static/static/js/{textarea.MC6GQYce.js → textarea.DkHpIjdT.js} +1 -1
- streamlit/static/static/js/{timepicker.BJLSDuQc.js → timepicker.C8UIzYhf.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BxOYujrG.js → toConsumableArray.DXfr1fvT.js} +1 -1
- streamlit/static/static/js/{uniqueId.nweXvThW.js → uniqueId.CgrMSBTb.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.ByOGmtKn.js → useBasicWidgetState.C-e-WEFS.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.oE3yUL9n.js → useOnInputChange.CtRJhZD6.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.Cg-VqiDm.js → withFullScreenWrapper.od0SAvAK.js} +1 -1
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250523.dist-info}/METADATA +2 -2
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250523.dist-info}/RECORD +86 -86
- {streamlit_nightly-1.45.2.dev20250522.data → streamlit_nightly-1.45.2.dev20250523.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250523.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250523.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250523.dist-info}/top_level.txt +0 -0
streamlit/delta_generator.py
CHANGED
@@ -106,6 +106,7 @@ if TYPE_CHECKING:
|
|
106
106
|
|
107
107
|
from streamlit.cursor import Cursor
|
108
108
|
from streamlit.elements.lib.built_in_chart_utils import AddRowsMetadata
|
109
|
+
from streamlit.elements.lib.layout_utils import LayoutConfig
|
109
110
|
|
110
111
|
MAX_DELTA_BYTES: Final[int] = 14 * 1024 * 1024 # 14MB
|
111
112
|
|
@@ -437,6 +438,7 @@ class DeltaGenerator(
|
|
437
438
|
delta_type: str,
|
438
439
|
element_proto: Message,
|
439
440
|
add_rows_metadata: AddRowsMetadata | None = None,
|
441
|
+
layout_config: LayoutConfig | None = None,
|
440
442
|
) -> DeltaGenerator:
|
441
443
|
"""Create NewElement delta, fill it, and enqueue it.
|
442
444
|
|
@@ -476,6 +478,25 @@ class DeltaGenerator(
|
|
476
478
|
msg_el_proto = getattr(msg.delta.new_element, delta_type)
|
477
479
|
msg_el_proto.CopyFrom(element_proto)
|
478
480
|
|
481
|
+
if layout_config:
|
482
|
+
if layout_config.height:
|
483
|
+
if isinstance(layout_config.height, int):
|
484
|
+
msg.delta.new_element.height_config.pixel_height = (
|
485
|
+
layout_config.height
|
486
|
+
)
|
487
|
+
elif layout_config.height == "content":
|
488
|
+
msg.delta.new_element.height_config.use_content = True
|
489
|
+
else:
|
490
|
+
msg.delta.new_element.height_config.use_stretch = True
|
491
|
+
|
492
|
+
if layout_config.width:
|
493
|
+
if isinstance(layout_config.width, int):
|
494
|
+
msg.delta.new_element.width_config.pixel_width = layout_config.width
|
495
|
+
elif layout_config.width == "content":
|
496
|
+
msg.delta.new_element.width_config.use_content = True
|
497
|
+
else:
|
498
|
+
msg.delta.new_element.width_config.use_stretch = True
|
499
|
+
|
479
500
|
# Only enqueue message and fill in metadata if there's a container.
|
480
501
|
msg_was_enqueued = False
|
481
502
|
if dg._root_container is not None and dg._cursor is not None:
|
streamlit/elements/arrow.py
CHANGED
@@ -908,6 +908,25 @@ def _arrow_add_rows(
|
|
908
908
|
and dg._cursor.props["add_rows_metadata"].last_index is None
|
909
909
|
):
|
910
910
|
st_method = getattr(dg, dg._cursor.props["add_rows_metadata"].chart_command)
|
911
|
+
metadata = dg._cursor.props["add_rows_metadata"]
|
912
|
+
|
913
|
+
# Pass the styling properties stored in add_rows_metadata
|
914
|
+
# to the new element call.
|
915
|
+
kwargs = {}
|
916
|
+
if metadata.color is not None:
|
917
|
+
kwargs["color"] = metadata.color
|
918
|
+
if metadata.width is not None:
|
919
|
+
kwargs["width"] = metadata.width
|
920
|
+
if metadata.height is not None:
|
921
|
+
kwargs["height"] = metadata.height
|
922
|
+
if metadata.stack is not None:
|
923
|
+
kwargs["stack"] = metadata.stack
|
924
|
+
|
925
|
+
if metadata.chart_command == "bar_chart":
|
926
|
+
kwargs["horizontal"] = metadata.horizontal
|
927
|
+
|
928
|
+
kwargs["use_container_width"] = metadata.use_container_width
|
929
|
+
|
911
930
|
st_method(data, **kwargs)
|
912
931
|
return None
|
913
932
|
|
streamlit/elements/code.py
CHANGED
@@ -16,7 +16,13 @@ from __future__ import annotations
|
|
16
16
|
|
17
17
|
from typing import TYPE_CHECKING, cast
|
18
18
|
|
19
|
-
from streamlit.elements.lib.layout_utils import
|
19
|
+
from streamlit.elements.lib.layout_utils import (
|
20
|
+
Height,
|
21
|
+
LayoutConfig,
|
22
|
+
WidthWithoutContent,
|
23
|
+
validate_height,
|
24
|
+
validate_width,
|
25
|
+
)
|
20
26
|
from streamlit.proto.Code_pb2 import Code as CodeProto
|
21
27
|
from streamlit.runtime.metrics_util import gather_metrics
|
22
28
|
from streamlit.string_util import clean_text
|
@@ -35,7 +41,7 @@ class CodeMixin:
|
|
35
41
|
*,
|
36
42
|
line_numbers: bool = False,
|
37
43
|
wrap_lines: bool = False,
|
38
|
-
height:
|
44
|
+
height: Height = "content",
|
39
45
|
width: WidthWithoutContent = "stretch",
|
40
46
|
) -> DeltaGenerator:
|
41
47
|
"""Display a code block with optional syntax highlighting.
|
@@ -111,17 +117,12 @@ class CodeMixin:
|
|
111
117
|
code_proto.language = language or "plaintext"
|
112
118
|
code_proto.show_line_numbers = line_numbers
|
113
119
|
code_proto.wrap_lines = wrap_lines
|
114
|
-
if height:
|
115
|
-
code_proto.height = height
|
116
120
|
|
117
|
-
|
121
|
+
validate_height(height, allow_content=True)
|
118
122
|
validate_width(width)
|
119
|
-
|
120
|
-
code_proto.width_config.pixel_width = width
|
121
|
-
else:
|
122
|
-
code_proto.width_config.use_stretch = True
|
123
|
+
layout_config = LayoutConfig(height=height, width=width)
|
123
124
|
|
124
|
-
return self.dg._enqueue("code", code_proto)
|
125
|
+
return self.dg._enqueue("code", code_proto, layout_config=layout_config)
|
125
126
|
|
126
127
|
@property
|
127
128
|
def dg(self) -> DeltaGenerator:
|
@@ -71,6 +71,15 @@ class AddRowsMetadata:
|
|
71
71
|
chart_command: str
|
72
72
|
last_index: Hashable | None
|
73
73
|
columns: PrepDataColumns
|
74
|
+
# Chart styling properties
|
75
|
+
color: str | Color | list[Color] | None = None
|
76
|
+
width: int | None = None
|
77
|
+
height: int | None = None
|
78
|
+
use_container_width: bool = True
|
79
|
+
# Only applicable for bar & area charts
|
80
|
+
stack: bool | ChartStackType | None = None
|
81
|
+
# Only applicable for bar charts
|
82
|
+
horizontal: bool = False
|
74
83
|
|
75
84
|
|
76
85
|
class ChartType(Enum):
|
@@ -147,8 +156,11 @@ def generate_chart(
|
|
147
156
|
size_from_user: str | float | None = None,
|
148
157
|
width: int | None = None,
|
149
158
|
height: int | None = None,
|
159
|
+
use_container_width: bool = True,
|
150
160
|
# Bar & Area charts only:
|
151
161
|
stack: bool | ChartStackType | None = None,
|
162
|
+
# Bar charts only:
|
163
|
+
horizontal: bool = False,
|
152
164
|
) -> tuple[alt.Chart | alt.LayerChart, AddRowsMetadata]:
|
153
165
|
"""Function to use the chart's type, data columns and indices to figure out the
|
154
166
|
chart's spec.
|
@@ -186,6 +198,13 @@ def generate_chart(
|
|
186
198
|
"color_column": color_column,
|
187
199
|
"size_column": size_column,
|
188
200
|
},
|
201
|
+
# Chart styling properties
|
202
|
+
color=color_from_user,
|
203
|
+
width=width,
|
204
|
+
height=height,
|
205
|
+
use_container_width=use_container_width,
|
206
|
+
stack=stack,
|
207
|
+
horizontal=horizontal,
|
189
208
|
)
|
190
209
|
|
191
210
|
# At this point, all foo_column variables are either None/empty or contain actual
|
@@ -11,15 +11,25 @@
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
|
+
from __future__ import annotations
|
14
15
|
|
16
|
+
from dataclasses import dataclass
|
15
17
|
from typing import Literal, Union
|
16
18
|
|
17
19
|
from typing_extensions import TypeAlias
|
18
20
|
|
19
|
-
from streamlit.errors import StreamlitInvalidWidthError
|
21
|
+
from streamlit.errors import StreamlitInvalidHeightError, StreamlitInvalidWidthError
|
20
22
|
|
21
23
|
WidthWithoutContent: TypeAlias = Union[int, Literal["stretch"]]
|
22
24
|
Width: TypeAlias = Union[int, Literal["stretch", "content"]]
|
25
|
+
HeightWithoutContent: TypeAlias = Union[int, Literal["stretch"]]
|
26
|
+
Height: TypeAlias = Union[int, Literal["stretch", "content"]]
|
27
|
+
|
28
|
+
|
29
|
+
@dataclass
|
30
|
+
class LayoutConfig:
|
31
|
+
width: Width | None = None
|
32
|
+
height: Height | None = None
|
23
33
|
|
24
34
|
|
25
35
|
def validate_width(width: Width, allow_content: bool = False) -> None:
|
@@ -49,3 +59,33 @@ def validate_width(width: Width, allow_content: bool = False) -> None:
|
|
49
59
|
raise StreamlitInvalidWidthError(width, allow_content)
|
50
60
|
elif width <= 0:
|
51
61
|
raise StreamlitInvalidWidthError(width, allow_content)
|
62
|
+
|
63
|
+
|
64
|
+
def validate_height(height: Height, allow_content: bool = False) -> None:
|
65
|
+
"""Validate the height parameter.
|
66
|
+
|
67
|
+
Parameters
|
68
|
+
----------
|
69
|
+
height : Any
|
70
|
+
The height value to validate.
|
71
|
+
allow_content : bool
|
72
|
+
Whether to allow "content" as a valid height value.
|
73
|
+
|
74
|
+
Raises
|
75
|
+
------
|
76
|
+
StreamlitInvalidHeightError
|
77
|
+
If the height value is invalid.
|
78
|
+
"""
|
79
|
+
if not isinstance(height, (int, str)):
|
80
|
+
raise StreamlitInvalidHeightError(height, allow_content)
|
81
|
+
|
82
|
+
if isinstance(height, str):
|
83
|
+
valid_strings = ["stretch"]
|
84
|
+
if allow_content:
|
85
|
+
valid_strings.append("content")
|
86
|
+
|
87
|
+
if height not in valid_strings:
|
88
|
+
raise StreamlitInvalidHeightError(height, allow_content)
|
89
|
+
|
90
|
+
elif height <= 0:
|
91
|
+
raise StreamlitInvalidHeightError(height, allow_content)
|
@@ -742,6 +742,7 @@ class VegaChartsMixin:
|
|
742
742
|
size_from_user=None,
|
743
743
|
width=width,
|
744
744
|
height=height,
|
745
|
+
use_container_width=use_container_width,
|
745
746
|
)
|
746
747
|
return cast(
|
747
748
|
"DeltaGenerator",
|
@@ -983,6 +984,7 @@ class VegaChartsMixin:
|
|
983
984
|
width=width,
|
984
985
|
height=height,
|
985
986
|
stack=stack,
|
987
|
+
use_container_width=use_container_width,
|
986
988
|
)
|
987
989
|
return cast(
|
988
990
|
"DeltaGenerator",
|
@@ -1248,7 +1250,9 @@ class VegaChartsMixin:
|
|
1248
1250
|
size_from_user=None,
|
1249
1251
|
width=width,
|
1250
1252
|
height=height,
|
1253
|
+
use_container_width=use_container_width,
|
1251
1254
|
stack=stack,
|
1255
|
+
horizontal=horizontal,
|
1252
1256
|
)
|
1253
1257
|
return cast(
|
1254
1258
|
"DeltaGenerator",
|
@@ -1459,6 +1463,7 @@ class VegaChartsMixin:
|
|
1459
1463
|
size_from_user=size,
|
1460
1464
|
width=width,
|
1461
1465
|
height=height,
|
1466
|
+
use_container_width=use_container_width,
|
1462
1467
|
)
|
1463
1468
|
return cast(
|
1464
1469
|
"DeltaGenerator",
|
streamlit/errors.py
CHANGED
@@ -480,3 +480,18 @@ class StreamlitInvalidWidthError(LocalizableStreamlitException):
|
|
480
480
|
width=repr(width),
|
481
481
|
valid_values=valid_values,
|
482
482
|
)
|
483
|
+
|
484
|
+
|
485
|
+
class StreamlitInvalidHeightError(LocalizableStreamlitException):
|
486
|
+
"""Exception raised when an invalid height value is provided."""
|
487
|
+
|
488
|
+
def __init__(self, height: Any, allow_content: bool = False) -> None:
|
489
|
+
valid_values = "an integer (pixels) or 'stretch'"
|
490
|
+
if allow_content:
|
491
|
+
valid_values = "an integer (pixels), 'stretch', or 'content'"
|
492
|
+
|
493
|
+
super().__init__(
|
494
|
+
"Invalid height value: {height}. Height must be either {valid_values}.",
|
495
|
+
height=repr(height),
|
496
|
+
valid_values=valid_values,
|
497
|
+
)
|
streamlit/proto/Block_pb2.py
CHANGED
@@ -17,7 +17,7 @@ from streamlit.proto import HeightConfig_pb2 as streamlit_dot_proto_dot_HeightCo
|
|
17
17
|
from streamlit.proto import GapSize_pb2 as streamlit_dot_proto_dot_GapSize__pb2
|
18
18
|
|
19
19
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Block.proto\x1a!streamlit/proto/WidthConfig.proto\x1a\"streamlit/proto/HeightConfig.proto\x1a\x1dstreamlit/proto/GapSize.proto\"\
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Block.proto\x1a!streamlit/proto/WidthConfig.proto\x1a\"streamlit/proto/HeightConfig.proto\x1a\x1dstreamlit/proto/GapSize.proto\"\xd7\x0e\n\x05\x42lock\x12#\n\x08vertical\x18\x01 \x01(\x0b\x32\x0f.Block.VerticalH\x00\x12\'\n\nhorizontal\x18\x02 \x01(\x0b\x32\x11.Block.HorizontalH\x00\x12\x1f\n\x06\x63olumn\x18\x03 \x01(\x0b\x32\r.Block.ColumnH\x00\x12\'\n\nexpandable\x18\x04 \x01(\x0b\x32\x11.Block.ExpandableH\x00\x12\x1b\n\x04\x66orm\x18\x05 \x01(\x0b\x32\x0b.Block.FormH\x00\x12,\n\rtab_container\x18\x06 \x01(\x0b\x32\x13.Block.TabContainerH\x00\x12\x19\n\x03tab\x18\x07 \x01(\x0b\x32\n.Block.TabH\x00\x12*\n\x0c\x63hat_message\x18\t \x01(\x0b\x32\x12.Block.ChatMessageH\x00\x12!\n\x07popover\x18\n \x01(\x0b\x32\x0e.Block.PopoverH\x00\x12\x1f\n\x06\x64ialog\x18\x0b \x01(\x0b\x32\r.Block.DialogH\x00\x12.\n\x0e\x66lex_container\x18\r \x01(\x0b\x32\x14.Block.FlexContainerH\x00\x12\x13\n\x0b\x61llow_empty\x18\x08 \x01(\x08\x12\x0f\n\x02id\x18\x0c \x01(\tH\x01\x88\x01\x01\x12\x33\n\rheight_config\x18\x0e \x01(\x0b\x32\x17.streamlit.HeightConfigH\x02\x88\x01\x01\x12\x31\n\x0cwidth_config\x18\x0f \x01(\x0b\x32\x16.streamlit.WidthConfigH\x03\x88\x01\x01\x1a*\n\x08Vertical\x12\x0e\n\x06\x62order\x18\x01 \x01(\x08\x12\x0e\n\x06height\x18\x02 \x01(\r\x1a\x19\n\nHorizontal\x12\x0b\n\x03gap\x18\x01 \x01(\t\x1a\x8d\x02\n\rFlexContainer\x12\x0e\n\x06\x62order\x18\x01 \x01(\x08\x12.\n\rheight_config\x18\x02 \x01(\x0b\x32\x17.streamlit.HeightConfig\x12(\n\ngap_config\x18\x04 \x01(\x0b\x32\x14.streamlit.GapConfig\x12\r\n\x05scale\x18\x05 \x01(\x02\x12\x31\n\tdirection\x18\x06 \x01(\x0e\x32\x1e.Block.FlexContainer.Direction\x12\x0c\n\x04wrap\x18\x07 \x01(\x08\"B\n\tDirection\x12\x17\n\x13\x44IRECTION_UNDEFINED\x10\x00\x12\x0c\n\x08VERTICAL\x10\x01\x12\x0e\n\nHORIZONTAL\x10\x02\x1a\xef\x01\n\x06\x43olumn\x12\x0e\n\x06weight\x18\x01 \x01(\x01\x12\x0f\n\x03gap\x18\x02 \x01(\tB\x02\x18\x01\x12;\n\x12vertical_alignment\x18\x03 \x01(\x0e\x32\x1f.Block.Column.VerticalAlignment\x12\x13\n\x0bshow_border\x18\x04 \x01(\x08\x12-\n\ngap_config\x18\x05 \x01(\x0b\x32\x14.streamlit.GapConfigH\x00\x88\x01\x01\"4\n\x11VerticalAlignment\x12\x07\n\x03TOP\x10\x00\x12\n\n\x06\x43\x45NTER\x10\x01\x12\n\n\x06\x42OTTOM\x10\x02\x42\r\n\x0b_gap_config\x1aM\n\nExpandable\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\x08\x65xpanded\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x0c\n\x04icon\x18\x03 \x01(\tB\x0b\n\t_expanded\x1a\x9d\x01\n\x06\x44ialog\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64ismissible\x18\x02 \x01(\x08\x12(\n\x05width\x18\x03 \x01(\x0e\x32\x19.Block.Dialog.DialogWidth\x12\x14\n\x07is_open\x18\x04 \x01(\x08H\x00\x88\x01\x01\"#\n\x0b\x44ialogWidth\x12\t\n\x05SMALL\x10\x00\x12\t\n\x05LARGE\x10\x01\x42\n\n\x08_is_open\x1aY\n\x04\x46orm\x12\x0f\n\x07\x66orm_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63lear_on_submit\x18\x02 \x01(\x08\x12\x0e\n\x06\x62order\x18\x03 \x01(\x08\x12\x17\n\x0f\x65nter_to_submit\x18\x04 \x01(\x08\x1a\x0e\n\x0cTabContainer\x1a\x14\n\x03Tab\x12\r\n\x05label\x18\x01 \x01(\t\x1a\x63\n\x07Popover\x12\r\n\x05label\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x02 \x01(\x08\x12\x0c\n\x04help\x18\x03 \x01(\t\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x12\x0c\n\x04icon\x18\x05 \x01(\t\x1a\xd1\x01\n\x0b\x43hatMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x02 \x01(\t\x12\x32\n\x0b\x61vatar_type\x18\x03 \x01(\x0e\x32\x1d.Block.ChatMessage.AvatarType\x12\x31\n\x0cwidth_config\x18\x04 \x01(\x0b\x32\x16.streamlit.WidthConfigH\x00\x88\x01\x01\",\n\nAvatarType\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05\x45MOJI\x10\x01\x12\x08\n\x04ICON\x10\x02\x42\x0f\n\r_width_configB\x06\n\x04typeB\x05\n\x03_idB\x10\n\x0e_height_configB\x0f\n\r_width_configB*\n\x1c\x63om.snowflake.apps.streamlitB\nBlockProtob\x06proto3')
|
21
21
|
|
22
22
|
_globals = globals()
|
23
23
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -28,35 +28,35 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
28
28
|
_globals['_BLOCK_COLUMN'].fields_by_name['gap']._loaded_options = None
|
29
29
|
_globals['_BLOCK_COLUMN'].fields_by_name['gap']._serialized_options = b'\030\001'
|
30
30
|
_globals['_BLOCK']._serialized_start=134
|
31
|
-
_globals['_BLOCK']._serialized_end=
|
32
|
-
_globals['_BLOCK_VERTICAL']._serialized_start=
|
33
|
-
_globals['_BLOCK_VERTICAL']._serialized_end=
|
34
|
-
_globals['_BLOCK_HORIZONTAL']._serialized_start=
|
35
|
-
_globals['_BLOCK_HORIZONTAL']._serialized_end=
|
36
|
-
_globals['_BLOCK_FLEXCONTAINER']._serialized_start=
|
37
|
-
_globals['_BLOCK_FLEXCONTAINER']._serialized_end=
|
38
|
-
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_start=
|
39
|
-
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_end=
|
40
|
-
_globals['_BLOCK_COLUMN']._serialized_start=
|
41
|
-
_globals['_BLOCK_COLUMN']._serialized_end=
|
42
|
-
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_start=
|
43
|
-
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_end=
|
44
|
-
_globals['_BLOCK_EXPANDABLE']._serialized_start=
|
45
|
-
_globals['_BLOCK_EXPANDABLE']._serialized_end=
|
46
|
-
_globals['_BLOCK_DIALOG']._serialized_start=
|
47
|
-
_globals['_BLOCK_DIALOG']._serialized_end=
|
48
|
-
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_start=
|
49
|
-
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_end=
|
50
|
-
_globals['_BLOCK_FORM']._serialized_start=
|
51
|
-
_globals['_BLOCK_FORM']._serialized_end=
|
52
|
-
_globals['_BLOCK_TABCONTAINER']._serialized_start=
|
53
|
-
_globals['_BLOCK_TABCONTAINER']._serialized_end=
|
54
|
-
_globals['_BLOCK_TAB']._serialized_start=
|
55
|
-
_globals['_BLOCK_TAB']._serialized_end=
|
56
|
-
_globals['_BLOCK_POPOVER']._serialized_start=
|
57
|
-
_globals['_BLOCK_POPOVER']._serialized_end=
|
58
|
-
_globals['_BLOCK_CHATMESSAGE']._serialized_start=
|
59
|
-
_globals['_BLOCK_CHATMESSAGE']._serialized_end=
|
60
|
-
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_start=
|
61
|
-
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_end=
|
31
|
+
_globals['_BLOCK']._serialized_end=2013
|
32
|
+
_globals['_BLOCK_VERTICAL']._serialized_start=699
|
33
|
+
_globals['_BLOCK_VERTICAL']._serialized_end=741
|
34
|
+
_globals['_BLOCK_HORIZONTAL']._serialized_start=743
|
35
|
+
_globals['_BLOCK_HORIZONTAL']._serialized_end=768
|
36
|
+
_globals['_BLOCK_FLEXCONTAINER']._serialized_start=771
|
37
|
+
_globals['_BLOCK_FLEXCONTAINER']._serialized_end=1040
|
38
|
+
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_start=974
|
39
|
+
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_end=1040
|
40
|
+
_globals['_BLOCK_COLUMN']._serialized_start=1043
|
41
|
+
_globals['_BLOCK_COLUMN']._serialized_end=1282
|
42
|
+
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_start=1215
|
43
|
+
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_end=1267
|
44
|
+
_globals['_BLOCK_EXPANDABLE']._serialized_start=1284
|
45
|
+
_globals['_BLOCK_EXPANDABLE']._serialized_end=1361
|
46
|
+
_globals['_BLOCK_DIALOG']._serialized_start=1364
|
47
|
+
_globals['_BLOCK_DIALOG']._serialized_end=1521
|
48
|
+
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_start=1474
|
49
|
+
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_end=1509
|
50
|
+
_globals['_BLOCK_FORM']._serialized_start=1523
|
51
|
+
_globals['_BLOCK_FORM']._serialized_end=1612
|
52
|
+
_globals['_BLOCK_TABCONTAINER']._serialized_start=1614
|
53
|
+
_globals['_BLOCK_TABCONTAINER']._serialized_end=1628
|
54
|
+
_globals['_BLOCK_TAB']._serialized_start=1630
|
55
|
+
_globals['_BLOCK_TAB']._serialized_end=1650
|
56
|
+
_globals['_BLOCK_POPOVER']._serialized_start=1652
|
57
|
+
_globals['_BLOCK_POPOVER']._serialized_end=1751
|
58
|
+
_globals['_BLOCK_CHATMESSAGE']._serialized_start=1754
|
59
|
+
_globals['_BLOCK_CHATMESSAGE']._serialized_end=1963
|
60
|
+
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_start=1902
|
61
|
+
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_end=1946
|
62
62
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Block_pb2.pyi
CHANGED
@@ -89,7 +89,6 @@ class Block(google.protobuf.message.Message):
|
|
89
89
|
|
90
90
|
BORDER_FIELD_NUMBER: builtins.int
|
91
91
|
HEIGHT_CONFIG_FIELD_NUMBER: builtins.int
|
92
|
-
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
93
92
|
GAP_CONFIG_FIELD_NUMBER: builtins.int
|
94
93
|
SCALE_FIELD_NUMBER: builtins.int
|
95
94
|
DIRECTION_FIELD_NUMBER: builtins.int
|
@@ -99,9 +98,9 @@ class Block(google.protobuf.message.Message):
|
|
99
98
|
direction: global___Block.FlexContainer.Direction.ValueType
|
100
99
|
wrap: builtins.bool
|
101
100
|
@property
|
102
|
-
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig:
|
103
|
-
|
104
|
-
|
101
|
+
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig:
|
102
|
+
"""TODO (lwilby): move this to use block level field."""
|
103
|
+
|
105
104
|
@property
|
106
105
|
def gap_config(self) -> streamlit.proto.GapSize_pb2.GapConfig: ...
|
107
106
|
def __init__(
|
@@ -109,14 +108,13 @@ class Block(google.protobuf.message.Message):
|
|
109
108
|
*,
|
110
109
|
border: builtins.bool = ...,
|
111
110
|
height_config: streamlit.proto.HeightConfig_pb2.HeightConfig | None = ...,
|
112
|
-
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
113
111
|
gap_config: streamlit.proto.GapSize_pb2.GapConfig | None = ...,
|
114
112
|
scale: builtins.float = ...,
|
115
113
|
direction: global___Block.FlexContainer.Direction.ValueType = ...,
|
116
114
|
wrap: builtins.bool = ...,
|
117
115
|
) -> None: ...
|
118
|
-
def HasField(self, field_name: typing.Literal["gap_config", b"gap_config", "height_config", b"height_config"
|
119
|
-
def ClearField(self, field_name: typing.Literal["border", b"border", "direction", b"direction", "gap_config", b"gap_config", "height_config", b"height_config", "scale", b"scale", "
|
116
|
+
def HasField(self, field_name: typing.Literal["gap_config", b"gap_config", "height_config", b"height_config"]) -> builtins.bool: ...
|
117
|
+
def ClearField(self, field_name: typing.Literal["border", b"border", "direction", b"direction", "gap_config", b"gap_config", "height_config", b"height_config", "scale", b"scale", "wrap", b"wrap"]) -> None: ...
|
120
118
|
|
121
119
|
@typing.final
|
122
120
|
class Column(google.protobuf.message.Message):
|
@@ -315,7 +313,9 @@ class Block(google.protobuf.message.Message):
|
|
315
313
|
avatar: builtins.str
|
316
314
|
avatar_type: global___Block.ChatMessage.AvatarType.ValueType
|
317
315
|
@property
|
318
|
-
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
|
316
|
+
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
|
317
|
+
"""TODO (lwilby): move this to use block level field."""
|
318
|
+
|
319
319
|
def __init__(
|
320
320
|
self,
|
321
321
|
*,
|
@@ -341,6 +341,8 @@ class Block(google.protobuf.message.Message):
|
|
341
341
|
FLEX_CONTAINER_FIELD_NUMBER: builtins.int
|
342
342
|
ALLOW_EMPTY_FIELD_NUMBER: builtins.int
|
343
343
|
ID_FIELD_NUMBER: builtins.int
|
344
|
+
HEIGHT_CONFIG_FIELD_NUMBER: builtins.int
|
345
|
+
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
344
346
|
allow_empty: builtins.bool
|
345
347
|
id: builtins.str
|
346
348
|
@property
|
@@ -365,6 +367,10 @@ class Block(google.protobuf.message.Message):
|
|
365
367
|
def dialog(self) -> global___Block.Dialog: ...
|
366
368
|
@property
|
367
369
|
def flex_container(self) -> global___Block.FlexContainer: ...
|
370
|
+
@property
|
371
|
+
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig: ...
|
372
|
+
@property
|
373
|
+
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
|
368
374
|
def __init__(
|
369
375
|
self,
|
370
376
|
*,
|
@@ -381,12 +387,18 @@ class Block(google.protobuf.message.Message):
|
|
381
387
|
flex_container: global___Block.FlexContainer | None = ...,
|
382
388
|
allow_empty: builtins.bool = ...,
|
383
389
|
id: builtins.str | None = ...,
|
390
|
+
height_config: streamlit.proto.HeightConfig_pb2.HeightConfig | None = ...,
|
391
|
+
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
384
392
|
) -> None: ...
|
385
|
-
def HasField(self, field_name: typing.Literal["_id", b"_id", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> builtins.bool: ...
|
386
|
-
def ClearField(self, field_name: typing.Literal["_id", b"_id", "allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> None: ...
|
393
|
+
def HasField(self, field_name: typing.Literal["_height_config", b"_height_config", "_id", b"_id", "_width_config", b"_width_config", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "height_config", b"height_config", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical", "width_config", b"width_config"]) -> builtins.bool: ...
|
394
|
+
def ClearField(self, field_name: typing.Literal["_height_config", b"_height_config", "_id", b"_id", "_width_config", b"_width_config", "allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "height_config", b"height_config", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical", "width_config", b"width_config"]) -> None: ...
|
395
|
+
@typing.overload
|
396
|
+
def WhichOneof(self, oneof_group: typing.Literal["_height_config", b"_height_config"]) -> typing.Literal["height_config"] | None: ...
|
387
397
|
@typing.overload
|
388
398
|
def WhichOneof(self, oneof_group: typing.Literal["_id", b"_id"]) -> typing.Literal["id"] | None: ...
|
389
399
|
@typing.overload
|
400
|
+
def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
|
401
|
+
@typing.overload
|
390
402
|
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["vertical", "horizontal", "column", "expandable", "form", "tab_container", "tab", "chat_message", "popover", "dialog", "flex_container"] | None: ...
|
391
403
|
|
392
404
|
global___Block = Block
|
streamlit/proto/Code_pb2.py
CHANGED
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
|
|
15
15
|
from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
|
16
16
|
|
17
17
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/WidthConfig.proto\"\
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/WidthConfig.proto\"n\n\x04\x43ode\x12\x11\n\tcode_text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x19\n\x11show_line_numbers\x18\x03 \x01(\x08\x12\x12\n\nwrap_lines\x18\x04 \x01(\x08\x12\x12\n\x06height\x18\x05 \x01(\rB\x02\x18\x01\x42)\n\x1c\x63om.snowflake.apps.streamlitB\tCodeProtob\x06proto3')
|
19
19
|
|
20
20
|
_globals = globals()
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -23,6 +23,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Code_pb2',
|
|
23
23
|
if not _descriptor._USE_C_DESCRIPTORS:
|
24
24
|
_globals['DESCRIPTOR']._loaded_options = None
|
25
25
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tCodeProto'
|
26
|
-
_globals['_CODE'].
|
27
|
-
_globals['_CODE'].
|
26
|
+
_globals['_CODE'].fields_by_name['height']._loaded_options = None
|
27
|
+
_globals['_CODE'].fields_by_name['height']._serialized_options = b'\030\001'
|
28
|
+
_globals['_CODE']._serialized_start=65
|
29
|
+
_globals['_CODE']._serialized_end=175
|
28
30
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Code_pb2.pyi
CHANGED
@@ -20,7 +20,6 @@ limitations under the License.
|
|
20
20
|
import builtins
|
21
21
|
import google.protobuf.descriptor
|
22
22
|
import google.protobuf.message
|
23
|
-
import streamlit.proto.WidthConfig_pb2
|
24
23
|
import typing
|
25
24
|
|
26
25
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
@@ -36,17 +35,13 @@ class Code(google.protobuf.message.Message):
|
|
36
35
|
SHOW_LINE_NUMBERS_FIELD_NUMBER: builtins.int
|
37
36
|
WRAP_LINES_FIELD_NUMBER: builtins.int
|
38
37
|
HEIGHT_FIELD_NUMBER: builtins.int
|
39
|
-
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
40
38
|
code_text: builtins.str
|
41
39
|
"""Content to display."""
|
42
40
|
language: builtins.str
|
43
41
|
show_line_numbers: builtins.bool
|
44
42
|
wrap_lines: builtins.bool
|
45
43
|
height: builtins.int
|
46
|
-
|
47
|
-
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
|
48
|
-
"""Width configuration"""
|
49
|
-
|
44
|
+
"""deprecated use height on Element.proto"""
|
50
45
|
def __init__(
|
51
46
|
self,
|
52
47
|
*,
|
@@ -55,9 +50,7 @@ class Code(google.protobuf.message.Message):
|
|
55
50
|
show_line_numbers: builtins.bool = ...,
|
56
51
|
wrap_lines: builtins.bool = ...,
|
57
52
|
height: builtins.int = ...,
|
58
|
-
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
59
53
|
) -> None: ...
|
60
|
-
def
|
61
|
-
def ClearField(self, field_name: typing.Literal["code_text", b"code_text", "height", b"height", "language", b"language", "show_line_numbers", b"show_line_numbers", "width_config", b"width_config", "wrap_lines", b"wrap_lines"]) -> None: ...
|
54
|
+
def ClearField(self, field_name: typing.Literal["code_text", b"code_text", "height", b"height", "language", b"language", "show_line_numbers", b"show_line_numbers", "wrap_lines", b"wrap_lines"]) -> None: ...
|
62
55
|
|
63
56
|
global___Code = Code
|
streamlit/proto/Element_pb2.py
CHANGED
@@ -63,9 +63,11 @@ from streamlit.proto import Toast_pb2 as streamlit_dot_proto_dot_Toast__pb2
|
|
63
63
|
from streamlit.proto import VegaLiteChart_pb2 as streamlit_dot_proto_dot_VegaLiteChart__pb2
|
64
64
|
from streamlit.proto import Video_pb2 as streamlit_dot_proto_dot_Video__pb2
|
65
65
|
from streamlit.proto import Heading_pb2 as streamlit_dot_proto_dot_Heading__pb2
|
66
|
+
from streamlit.proto import HeightConfig_pb2 as streamlit_dot_proto_dot_HeightConfig__pb2
|
67
|
+
from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
|
66
68
|
|
67
69
|
|
68
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Element.proto\x1a\x1bstreamlit/proto/Alert.proto\x1a\x1bstreamlit/proto/Arrow.proto\x1a\x1bstreamlit/proto/Audio.proto\x1a streamlit/proto/AudioInput.proto\x1a\x1estreamlit/proto/Balloons.proto\x1a(streamlit/proto/ArrowVegaLiteChart.proto\x1a streamlit/proto/BokehChart.proto\x1a\x1cstreamlit/proto/Button.proto\x1a!streamlit/proto/ButtonGroup.proto\x1a$streamlit/proto/DownloadButton.proto\x1a!streamlit/proto/CameraInput.proto\x1a\x1fstreamlit/proto/ChatInput.proto\x1a\x1estreamlit/proto/Checkbox.proto\x1a\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/ColorPicker.proto\x1a\x1fstreamlit/proto/DataFrame.proto\x1a\x1fstreamlit/proto/DateInput.proto\x1a%streamlit/proto/DeckGlJsonChart.proto\x1a\x1fstreamlit/proto/DocString.proto\x1a\x1bstreamlit/proto/Empty.proto\x1a\x1fstreamlit/proto/Exception.proto\x1a\x1dstreamlit/proto/Favicon.proto\x1a\"streamlit/proto/FileUploader.proto\x1a#streamlit/proto/GraphVizChart.proto\x1a\x1astreamlit/proto/Html.proto\x1a\x1cstreamlit/proto/IFrame.proto\x1a\x1bstreamlit/proto/Image.proto\x1a\x1astreamlit/proto/Json.proto\x1a streamlit/proto/LinkButton.proto\x1a!streamlit/proto/NumberInput.proto\x1a\x1estreamlit/proto/Markdown.proto\x1a\x1cstreamlit/proto/Metric.proto\x1a!streamlit/proto/MultiSelect.proto\x1a\x1estreamlit/proto/PageLink.proto\x1a!streamlit/proto/PlotlyChart.proto\x1a streamlit/proto/Components.proto\x1a\x1estreamlit/proto/Progress.proto\x1a\x1astreamlit/proto/Snow.proto\x1a\x1dstreamlit/proto/Spinner.proto\x1a\x1bstreamlit/proto/Radio.proto\x1a\x1fstreamlit/proto/Selectbox.proto\x1a\x1estreamlit/proto/Skeleton.proto\x1a\x1cstreamlit/proto/Slider.proto\x1a\x1astreamlit/proto/Text.proto\x1a\x1estreamlit/proto/TextArea.proto\x1a\x1fstreamlit/proto/TextInput.proto\x1a\x1fstreamlit/proto/TimeInput.proto\x1a\x1bstreamlit/proto/Toast.proto\x1a#streamlit/proto/VegaLiteChart.proto\x1a\x1bstreamlit/proto/Video.proto\x1a\x1dstreamlit/proto/Heading.proto\"\
|
70
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Element.proto\x1a\x1bstreamlit/proto/Alert.proto\x1a\x1bstreamlit/proto/Arrow.proto\x1a\x1bstreamlit/proto/Audio.proto\x1a streamlit/proto/AudioInput.proto\x1a\x1estreamlit/proto/Balloons.proto\x1a(streamlit/proto/ArrowVegaLiteChart.proto\x1a streamlit/proto/BokehChart.proto\x1a\x1cstreamlit/proto/Button.proto\x1a!streamlit/proto/ButtonGroup.proto\x1a$streamlit/proto/DownloadButton.proto\x1a!streamlit/proto/CameraInput.proto\x1a\x1fstreamlit/proto/ChatInput.proto\x1a\x1estreamlit/proto/Checkbox.proto\x1a\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/ColorPicker.proto\x1a\x1fstreamlit/proto/DataFrame.proto\x1a\x1fstreamlit/proto/DateInput.proto\x1a%streamlit/proto/DeckGlJsonChart.proto\x1a\x1fstreamlit/proto/DocString.proto\x1a\x1bstreamlit/proto/Empty.proto\x1a\x1fstreamlit/proto/Exception.proto\x1a\x1dstreamlit/proto/Favicon.proto\x1a\"streamlit/proto/FileUploader.proto\x1a#streamlit/proto/GraphVizChart.proto\x1a\x1astreamlit/proto/Html.proto\x1a\x1cstreamlit/proto/IFrame.proto\x1a\x1bstreamlit/proto/Image.proto\x1a\x1astreamlit/proto/Json.proto\x1a streamlit/proto/LinkButton.proto\x1a!streamlit/proto/NumberInput.proto\x1a\x1estreamlit/proto/Markdown.proto\x1a\x1cstreamlit/proto/Metric.proto\x1a!streamlit/proto/MultiSelect.proto\x1a\x1estreamlit/proto/PageLink.proto\x1a!streamlit/proto/PlotlyChart.proto\x1a streamlit/proto/Components.proto\x1a\x1estreamlit/proto/Progress.proto\x1a\x1astreamlit/proto/Snow.proto\x1a\x1dstreamlit/proto/Spinner.proto\x1a\x1bstreamlit/proto/Radio.proto\x1a\x1fstreamlit/proto/Selectbox.proto\x1a\x1estreamlit/proto/Skeleton.proto\x1a\x1cstreamlit/proto/Slider.proto\x1a\x1astreamlit/proto/Text.proto\x1a\x1estreamlit/proto/TextArea.proto\x1a\x1fstreamlit/proto/TextInput.proto\x1a\x1fstreamlit/proto/TimeInput.proto\x1a\x1bstreamlit/proto/Toast.proto\x1a#streamlit/proto/VegaLiteChart.proto\x1a\x1bstreamlit/proto/Video.proto\x1a\x1dstreamlit/proto/Heading.proto\x1a\"streamlit/proto/HeightConfig.proto\x1a!streamlit/proto/WidthConfig.proto\"\xe3\x0e\n\x07\x45lement\x12\x33\n\rheight_config\x18\x39 \x01(\x0b\x32\x17.streamlit.HeightConfigH\x01\x88\x01\x01\x12\x31\n\x0cwidth_config\x18: \x01(\x0b\x32\x16.streamlit.WidthConfigH\x02\x88\x01\x01\x12\x17\n\x05\x61lert\x18\x1e \x01(\x0b\x32\x06.AlertH\x00\x12\"\n\x10\x61rrow_data_frame\x18( \x01(\x0b\x32\x06.ArrowH\x00\x12\x1d\n\x0b\x61rrow_table\x18\' \x01(\x0b\x32\x06.ArrowH\x00\x12\x34\n\x15\x61rrow_vega_lite_chart\x18) \x01(\x0b\x32\x13.ArrowVegaLiteChartH\x00\x12\x17\n\x05\x61udio\x18\r \x01(\x0b\x32\x06.AudioH\x00\x12\"\n\x0b\x61udio_input\x18\x38 \x01(\x0b\x32\x0b.AudioInputH\x00\x12\x1d\n\x08\x62\x61lloons\x18\x0c \x01(\x0b\x32\t.BalloonsH\x00\x12\"\n\x0b\x62okeh_chart\x18\x11 \x01(\x0b\x32\x0b.BokehChartH\x00\x12\x19\n\x06\x62utton\x18\x13 \x01(\x0b\x32\x07.ButtonH\x00\x12$\n\x0c\x62utton_group\x18\x37 \x01(\x0b\x32\x0c.ButtonGroupH\x00\x12*\n\x0f\x64ownload_button\x18+ \x01(\x0b\x32\x0f.DownloadButtonH\x00\x12$\n\x0c\x63\x61mera_input\x18- \x01(\x0b\x32\x0c.CameraInputH\x00\x12 \n\nchat_input\x18\x31 \x01(\x0b\x32\n.ChatInputH\x00\x12\x1d\n\x08\x63heckbox\x18\x14 \x01(\x0b\x32\t.CheckboxH\x00\x12$\n\x0c\x63olor_picker\x18# \x01(\x0b\x32\x0c.ColorPickerH\x00\x12\x30\n\x12\x63omponent_instance\x18% \x01(\x0b\x32\x12.ComponentInstanceH\x00\x12 \n\ndata_frame\x18\x03 \x01(\x0b\x32\n.DataFrameH\x00\x12\x1b\n\x05table\x18\x0b \x01(\x0b\x32\n.DataFrameH\x00\x12 \n\ndate_input\x18\x1b \x01(\x0b\x32\n.DateInputH\x00\x12.\n\x12\x64\x65\x63k_gl_json_chart\x18\" \x01(\x0b\x32\x10.DeckGlJsonChartH\x00\x12 \n\ndoc_string\x18\x07 \x01(\x0b\x32\n.DocStringH\x00\x12\x17\n\x05\x65mpty\x18\x02 \x01(\x0b\x32\x06.EmptyH\x00\x12\x1f\n\texception\x18\x08 \x01(\x0b\x32\n.ExceptionH\x00\x12\x1b\n\x07\x66\x61vicon\x18$ \x01(\x0b\x32\x08.FaviconH\x00\x12&\n\rfile_uploader\x18! \x01(\x0b\x32\r.FileUploaderH\x00\x12(\n\x0egraphviz_chart\x18\x12 \x01(\x0b\x32\x0e.GraphVizChartH\x00\x12\x15\n\x04html\x18\x36 \x01(\x0b\x32\x05.HtmlH\x00\x12\x19\n\x06iframe\x18& \x01(\x0b\x32\x07.IFrameH\x00\x12\x1a\n\x04imgs\x18\x06 \x01(\x0b\x32\n.ImageListH\x00\x12\x15\n\x04json\x18\x1f \x01(\x0b\x32\x05.JsonH\x00\x12\"\n\x0blink_button\x18\x33 \x01(\x0b\x32\x0b.LinkButtonH\x00\x12\x1d\n\x08markdown\x18\x1d \x01(\x0b\x32\t.MarkdownH\x00\x12\x19\n\x06metric\x18* \x01(\x0b\x32\x07.MetricH\x00\x12#\n\x0bmultiselect\x18\x1c \x01(\x0b\x32\x0c.MultiSelectH\x00\x12$\n\x0cnumber_input\x18 \x01(\x0b\x32\x0c.NumberInputH\x00\x12\x1e\n\tpage_link\x18\x35 \x01(\x0b\x32\t.PageLinkH\x00\x12$\n\x0cplotly_chart\x18\x10 \x01(\x0b\x32\x0c.PlotlyChartH\x00\x12\x1d\n\x08progress\x18\x05 \x01(\x0b\x32\t.ProgressH\x00\x12\x17\n\x05radio\x18\x17 \x01(\x0b\x32\x06.RadioH\x00\x12\x1f\n\tselectbox\x18\x19 \x01(\x0b\x32\n.SelectboxH\x00\x12\x1d\n\x08skeleton\x18\x34 \x01(\x0b\x32\t.SkeletonH\x00\x12\x19\n\x06slider\x18\x15 \x01(\x0b\x32\x07.SliderH\x00\x12\x15\n\x04snow\x18. \x01(\x0b\x32\x05.SnowH\x00\x12\x1b\n\x07spinner\x18, \x01(\x0b\x32\x08.SpinnerH\x00\x12\x15\n\x04text\x18\x01 \x01(\x0b\x32\x05.TextH\x00\x12\x1e\n\ttext_area\x18\x16 \x01(\x0b\x32\t.TextAreaH\x00\x12 \n\ntext_input\x18\x18 \x01(\x0b\x32\n.TextInputH\x00\x12 \n\ntime_input\x18\x1a \x01(\x0b\x32\n.TimeInputH\x00\x12\x17\n\x05toast\x18\x32 \x01(\x0b\x32\x06.ToastH\x00\x12)\n\x0fvega_lite_chart\x18\n \x01(\x0b\x32\x0e.VegaLiteChartH\x00\x12\x17\n\x05video\x18\x0e \x01(\x0b\x32\x06.VideoH\x00\x12\x1b\n\x07heading\x18/ \x01(\x0b\x32\x08.HeadingH\x00\x12\x15\n\x04\x63ode\x18\x30 \x01(\x0b\x32\x05.CodeH\x00\x42\x06\n\x04typeB\x10\n\x0e_height_configB\x0f\n\r_width_configJ\x04\x08\t\x10\nB,\n\x1c\x63om.snowflake.apps.streamlitB\x0c\x45lementProtob\x06proto3')
|
69
71
|
|
70
72
|
_globals = globals()
|
71
73
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -73,6 +75,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Element_pb2
|
|
73
75
|
if not _descriptor._USE_C_DESCRIPTORS:
|
74
76
|
_globals['DESCRIPTOR']._loaded_options = None
|
75
77
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014ElementProto'
|
76
|
-
_globals['_ELEMENT']._serialized_start=
|
77
|
-
_globals['_ELEMENT']._serialized_end=
|
78
|
+
_globals['_ELEMENT']._serialized_start=1753
|
79
|
+
_globals['_ELEMENT']._serialized_end=3644
|
78
80
|
# @@protoc_insertion_point(module_scope)
|