streamlit-nightly 1.42.1.dev20250210__py2.py3-none-any.whl → 1.42.1.dev20250212__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/commands/page_config.py +1 -1
- streamlit/config.py +9 -0
- streamlit/elements/arrow.py +11 -0
- streamlit/elements/widgets/data_editor.py +22 -6
- streamlit/proto/Arrow_pb2.py +8 -8
- streamlit/proto/Arrow_pb2.pyi +7 -2
- streamlit/proto/NewSession_pb2.py +16 -16
- streamlit/proto/NewSession_pb2.pyi +12 -3
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{FileDownload.esm.CJC5yID5.js → FileDownload.esm.gmDYBMnS.js} +1 -1
- streamlit/static/static/js/{FileDropzone.BxEWox87.js → FileDropzone.BhS2dkwO.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.D3S2tctS.js → FormClearHelper.BjdyfMQx.js} +1 -1
- streamlit/static/static/js/{Hooks.BwOODKo2.js → Hooks.BKB06vs4.js} +1 -1
- streamlit/static/static/js/{InputInstructions.Cm2uD0mH.js → InputInstructions.BEaJdOY6.js} +1 -1
- streamlit/static/static/js/{ProgressBar.BqFWIdp2.js → ProgressBar.DycN90bZ.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.ax0m2H0_.js → RenderInPortalIfExists.BhsYk57k.js} +1 -1
- streamlit/static/static/js/{Toolbar.CRowl_WL.js → Toolbar.M28tVbcl.js} +1 -1
- streamlit/static/static/js/{base-input.krLFbHyn.js → base-input.BJFXZaN6.js} +1 -1
- streamlit/static/static/js/{createSuper.k6SaTk0j.js → createSuper.CR2BB5ll.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.BUaZRQkO.js → data-grid-overlay-editor.DThw5LO3.js} +1 -1
- streamlit/static/static/js/{downloader.CFLXdJg2.js → downloader.oXcdDod3.js} +1 -1
- streamlit/static/static/js/{es6.gxLg_8ha.js → es6.Dm6Lr5sS.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.DkwEeyR9.js → iframeResizer.contentWindow.EQIQrAd4.js} +1 -1
- streamlit/static/static/js/{index.Cesoqj5i.js → index.0Eb9CO_K.js} +1 -1
- streamlit/static/static/js/{index.cRZuEjlj.js → index.B1X_ANFX.js} +1 -1
- streamlit/static/static/js/{index.BSsjknPR.js → index.B2zhJEHf.js} +1 -1
- streamlit/static/static/js/{index.BOCJ0fVC.js → index.B49jyHZy.js} +1 -1
- streamlit/static/static/js/{index.Cj8uDDnI.js → index.BELZ0Ua3.js} +1 -1
- streamlit/static/static/js/{index.DXBI5Jkr.js → index.BZUNGvtg.js} +2 -2
- streamlit/static/static/js/{index.BOR0ctru.js → index.BjOrvaSf.js} +1 -1
- streamlit/static/static/js/{index.DJY4JXFf.js → index.BkwFDrjh.js} +1 -1
- streamlit/static/static/js/{index.BdR17uHT.js → index.BmunCvlQ.js} +1 -1
- streamlit/static/static/js/{index.Blgy4CCd.js → index.BrTAJ7cx.js} +7 -7
- streamlit/static/static/js/{index.CUPb182F.js → index.BzhkD1G1.js} +1 -1
- streamlit/static/static/js/{index.DrwNQ7G8.js → index.C-qfcK5k.js} +22 -22
- streamlit/static/static/js/{index.DEpXqZe9.js → index.C02XURgk.js} +1 -1
- streamlit/static/static/js/{index.BiQ_POiE.js → index.C8ahq2Yl.js} +1 -1
- streamlit/static/static/js/{index.BOVOcQJK.js → index.CAvxO15c.js} +1 -1
- streamlit/static/static/js/{index.Cksh9dIb.js → index.CIgcpP2h.js} +1 -1
- streamlit/static/static/js/{index.Be3Ud760.js → index.CPA4hfh-.js} +15 -15
- streamlit/static/static/js/{index.BAHug0jz.js → index.CYO_k8m0.js} +1 -1
- streamlit/static/static/js/{index.CoIye-dC.js → index.CYR86Hh7.js} +1 -1
- streamlit/static/static/js/{index.PzwaVSFN.js → index.Cb9G_5ys.js} +1 -1
- streamlit/static/static/js/{index.BbOp1EEY.js → index.Cm_RlOaX.js} +61 -61
- streamlit/static/static/js/{index.C-4bC9wo.js → index.CqE8cJhC.js} +1 -1
- streamlit/static/static/js/{index.DooQ24w4.js → index.D-x9B5Oa.js} +1 -1
- streamlit/static/static/js/{index.FyfJgAtw.js → index.D2G_9kKo.js} +1 -1
- streamlit/static/static/js/{index.D69WEQtH.js → index.DHr41xKA.js} +1 -1
- streamlit/static/static/js/{index.BaBZULmv.js → index.DXjCUYHV.js} +1 -1
- streamlit/static/static/js/{index.C_Vm41WK.js → index.DhzvJb2S.js} +1 -1
- streamlit/static/static/js/{index.D8KPGiS9.js → index.DvCjEp1s.js} +1 -1
- streamlit/static/static/js/{index.UW7UEFVt.js → index.DwnmFzkn.js} +1 -1
- streamlit/static/static/js/{index.xMCeK5i-.js → index.DxFBqI9I.js} +1 -1
- streamlit/static/static/js/{index.C1ewZGYv.js → index.L2uUYiab.js} +1 -1
- streamlit/static/static/js/{index.C8CCX_u3.js → index.V7XbIe_g.js} +1 -1
- streamlit/static/static/js/{index.CVtSssNQ.js → index.Vm77sF3W.js} +1 -1
- streamlit/static/static/js/{index.B7i1hjL6.js → index.X-CeecsU.js} +1 -1
- streamlit/static/static/js/{index.C_eNMQ0G.js → index.YLipy1A9.js} +1 -1
- streamlit/static/static/js/{index.DxK0b7hW.js → index.tuHBuV8y.js} +1 -1
- streamlit/static/static/js/{index.waVftNUu.js → index.xghdNmh6.js} +1 -1
- streamlit/static/static/js/{input.RldPkbfl.js → input.Ch5EKcBw.js} +1 -1
- streamlit/static/static/js/{memory.CJUkEDwO.js → memory.cKfo0PEw.js} +1 -1
- streamlit/static/static/js/{mergeWith.mP6-fMJS.js → mergeWith.CrVvaazT.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.Cexyv1f1.js → number-overlay-editor.C5_oSHKj.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.Bfw_ecB7.js → possibleConstructorReturn.B1H1HPCb.js} +1 -1
- streamlit/static/static/js/{sandbox.B9QCFfso.js → sandbox.ZiYcTL56.js} +1 -1
- streamlit/static/static/js/{textarea.BphfZ_P9.js → textarea.GanBEqei.js} +1 -1
- streamlit/static/static/js/{timepicker.BGFe-2JD.js → timepicker.D-6GNeM1.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BtjgDmTZ.js → toConsumableArray.DP3pcQU2.js} +1 -1
- streamlit/static/static/js/{uniqueId.BG3aVKeE.js → uniqueId.Br0SB0lz.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.GQaAM6uH.js → useBasicWidgetState.DDri_chl.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.B6mIpebi.js → useOnInputChange.DwB-vggD.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.XgZUnj3Y.js → withFullScreenWrapper.sAYwL3bu.js} +1 -1
- {streamlit_nightly-1.42.1.dev20250210.dist-info → streamlit_nightly-1.42.1.dev20250212.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.42.1.dev20250210.dist-info → streamlit_nightly-1.42.1.dev20250212.dist-info}/RECORD +79 -79
- {streamlit_nightly-1.42.1.dev20250210.data → streamlit_nightly-1.42.1.dev20250212.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.42.1.dev20250210.dist-info → streamlit_nightly-1.42.1.dev20250212.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.42.1.dev20250210.dist-info → streamlit_nightly-1.42.1.dev20250212.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.42.1.dev20250210.dist-info → streamlit_nightly-1.42.1.dev20250212.dist-info}/top_level.txt +0 -0
@@ -172,7 +172,7 @@ def set_page_config(
|
|
172
172
|
format ``":material/icon_name:"`` where "icon_name" is the name
|
173
173
|
of the icon in snake case.
|
174
174
|
|
175
|
-
For example, ``
|
175
|
+
For example, ``page_icon=":material/thumb_up:"`` will display the
|
176
176
|
Thumb Up icon. Find additional icons in the `Material Symbols \
|
177
177
|
<https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
|
178
178
|
font library.
|
streamlit/config.py
CHANGED
@@ -1073,6 +1073,15 @@ _create_option(
|
|
1073
1073
|
type_=bool,
|
1074
1074
|
)
|
1075
1075
|
|
1076
|
+
_create_option(
|
1077
|
+
"theme.baseFontSize",
|
1078
|
+
description="""
|
1079
|
+
Sets the root font size (in pixels) for the app, which determines the overall
|
1080
|
+
scale of text and UI elements. The default base font size is 16.
|
1081
|
+
""",
|
1082
|
+
type_=int,
|
1083
|
+
)
|
1084
|
+
|
1076
1085
|
# Config Section: Secrets #
|
1077
1086
|
|
1078
1087
|
_create_section("secrets", "Secrets configuration.")
|
streamlit/elements/arrow.py
CHANGED
@@ -235,6 +235,7 @@ class ArrowMixin:
|
|
235
235
|
key: Key | None = None,
|
236
236
|
on_select: Literal["ignore"] = "ignore",
|
237
237
|
selection_mode: SelectionMode | Iterable[SelectionMode] = "multi-row",
|
238
|
+
row_height: int | None = None,
|
238
239
|
) -> DeltaGenerator: ...
|
239
240
|
|
240
241
|
@overload
|
@@ -251,6 +252,7 @@ class ArrowMixin:
|
|
251
252
|
key: Key | None = None,
|
252
253
|
on_select: Literal["rerun"] | WidgetCallback,
|
253
254
|
selection_mode: SelectionMode | Iterable[SelectionMode] = "multi-row",
|
255
|
+
row_height: int | None = None,
|
254
256
|
) -> DataframeState: ...
|
255
257
|
|
256
258
|
@gather_metrics("dataframe")
|
@@ -267,6 +269,7 @@ class ArrowMixin:
|
|
267
269
|
key: Key | None = None,
|
268
270
|
on_select: Literal["ignore", "rerun"] | WidgetCallback = "ignore",
|
269
271
|
selection_mode: SelectionMode | Iterable[SelectionMode] = "multi-row",
|
272
|
+
row_height: int | None = None,
|
270
273
|
) -> DeltaGenerator | DataframeState:
|
271
274
|
"""Display a dataframe as an interactive table.
|
272
275
|
|
@@ -416,6 +419,10 @@ class ArrowMixin:
|
|
416
419
|
|
417
420
|
When column selections are enabled, column sorting is disabled.
|
418
421
|
|
422
|
+
row_height : int or None
|
423
|
+
The height of each row in the dataframe in pixels. If ``row_height``
|
424
|
+
is ``None`` (default), Streamlit will use a default row height.
|
425
|
+
|
419
426
|
Returns
|
420
427
|
-------
|
421
428
|
element or dict
|
@@ -557,6 +564,9 @@ class ArrowMixin:
|
|
557
564
|
if height:
|
558
565
|
proto.height = height
|
559
566
|
|
567
|
+
if row_height:
|
568
|
+
proto.row_height = row_height
|
569
|
+
|
560
570
|
if column_order:
|
561
571
|
proto.column_order[:] = column_order
|
562
572
|
|
@@ -613,6 +623,7 @@ class ArrowMixin:
|
|
613
623
|
column_config=proto.columns,
|
614
624
|
selection_mode=selection_mode,
|
615
625
|
is_selection_activated=is_selection_activated,
|
626
|
+
row_height=row_height,
|
616
627
|
)
|
617
628
|
|
618
629
|
serde = DataframeSelectionSerde()
|
@@ -116,13 +116,16 @@ class EditingState(TypedDict, total=False):
|
|
116
116
|
Attributes
|
117
117
|
----------
|
118
118
|
edited_rows : Dict[int, Dict[str, str | int | float | bool | None]]
|
119
|
-
An hierarchical mapping of edited cells based on:
|
119
|
+
An hierarchical mapping of edited cells based on:
|
120
|
+
row position -> column name -> value.
|
120
121
|
|
121
122
|
added_rows : List[Dict[str, str | int | float | bool | None]]
|
122
|
-
A list of added rows, where each row is a mapping from column name to
|
123
|
+
A list of added rows, where each row is a mapping from column name to
|
124
|
+
the cell value.
|
123
125
|
|
124
126
|
deleted_rows : List[int]
|
125
|
-
A list of deleted rows, where each row is the numerical position of
|
127
|
+
A list of deleted rows, where each row is the numerical position of
|
128
|
+
the deleted row.
|
126
129
|
"""
|
127
130
|
|
128
131
|
edited_rows: dict[int, dict[str, str | int | float | bool | None]]
|
@@ -550,6 +553,7 @@ class DataEditorMixin:
|
|
550
553
|
on_change: WidgetCallback | None = None,
|
551
554
|
args: WidgetArgs | None = None,
|
552
555
|
kwargs: WidgetKwargs | None = None,
|
556
|
+
row_height: int | None = None,
|
553
557
|
) -> EditableData:
|
554
558
|
pass
|
555
559
|
|
@@ -570,6 +574,7 @@ class DataEditorMixin:
|
|
570
574
|
on_change: WidgetCallback | None = None,
|
571
575
|
args: WidgetArgs | None = None,
|
572
576
|
kwargs: WidgetKwargs | None = None,
|
577
|
+
row_height: int | None = None,
|
573
578
|
) -> pd.DataFrame:
|
574
579
|
pass
|
575
580
|
|
@@ -590,6 +595,7 @@ class DataEditorMixin:
|
|
590
595
|
on_change: WidgetCallback | None = None,
|
591
596
|
args: WidgetArgs | None = None,
|
592
597
|
kwargs: WidgetKwargs | None = None,
|
598
|
+
row_height: int | None = None,
|
593
599
|
) -> DataTypes:
|
594
600
|
"""Display a data editor widget.
|
595
601
|
|
@@ -689,6 +695,10 @@ class DataEditorMixin:
|
|
689
695
|
kwargs : dict
|
690
696
|
An optional dict of kwargs to pass to the callback.
|
691
697
|
|
698
|
+
row_height : int or None
|
699
|
+
The height of each row in the data editor in pixels. If ``row_height``
|
700
|
+
is ``None`` (default), Streamlit will use a default row height.
|
701
|
+
|
692
702
|
Returns
|
693
703
|
-------
|
694
704
|
pandas.DataFrame, pandas.Series, pyarrow.Table, numpy.ndarray, list, set, tuple, or dict.
|
@@ -738,7 +748,8 @@ class DataEditorMixin:
|
|
738
748
|
https://doc-data-editor1.streamlit.app/
|
739
749
|
height: 450px
|
740
750
|
|
741
|
-
Or you can customize the data editor via ``column_config``, ``hide_index``,
|
751
|
+
Or you can customize the data editor via ``column_config``, ``hide_index``,
|
752
|
+
``column_order``, or ``disabled``:
|
742
753
|
|
743
754
|
>>> import pandas as pd
|
744
755
|
>>> import streamlit as st
|
@@ -799,8 +810,9 @@ class DataEditorMixin:
|
|
799
810
|
data_format = dataframe_util.determine_data_format(data)
|
800
811
|
if data_format == dataframe_util.DataFormat.UNKNOWN:
|
801
812
|
raise StreamlitAPIException(
|
802
|
-
f"The data type ({type(data).__name__}) or format is not supported by
|
803
|
-
"Please convert your data into a Pandas Dataframe or
|
813
|
+
f"The data type ({type(data).__name__}) or format is not supported by "
|
814
|
+
"the data editor. Please convert your data into a Pandas Dataframe or "
|
815
|
+
"another supported data format."
|
804
816
|
)
|
805
817
|
|
806
818
|
# The dataframe should always be a copy of the original data
|
@@ -893,6 +905,7 @@ class DataEditorMixin:
|
|
893
905
|
column_order=column_order,
|
894
906
|
column_config_mapping=str(column_config_mapping),
|
895
907
|
num_rows=num_rows,
|
908
|
+
row_height=row_height,
|
896
909
|
)
|
897
910
|
|
898
911
|
proto = ArrowProto()
|
@@ -905,6 +918,9 @@ class DataEditorMixin:
|
|
905
918
|
if height:
|
906
919
|
proto.height = height
|
907
920
|
|
921
|
+
if row_height:
|
922
|
+
proto.row_height = row_height
|
923
|
+
|
908
924
|
if column_order:
|
909
925
|
proto.column_order[:] = column_order
|
910
926
|
|
streamlit/proto/Arrow_pb2.py
CHANGED
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Arrow.proto\"\
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Arrow.proto\"\xcb\x03\n\x05\x41rrow\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x17\n\x06styler\x18\x02 \x01(\x0b\x32\x07.Styler\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x1b\n\x13use_container_width\x18\x05 \x01(\x08\x12\n\n\x02id\x18\x06 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x07 \x01(\t\x12(\n\x0c\x65\x64iting_mode\x18\x08 \x01(\x0e\x32\x12.Arrow.EditingMode\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12\x0f\n\x07\x66orm_id\x18\n \x01(\t\x12\x14\n\x0c\x63olumn_order\x18\x0b \x03(\t\x12,\n\x0eselection_mode\x18\x0c \x03(\x0e\x32\x14.Arrow.SelectionMode\x12\x17\n\nrow_height\x18\r \x01(\rH\x00\x88\x01\x01\"4\n\x0b\x45\x64itingMode\x12\r\n\tREAD_ONLY\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07\x44YNAMIC\x10\x02\"S\n\rSelectionMode\x12\x0e\n\nSINGLE_ROW\x10\x00\x12\r\n\tMULTI_ROW\x10\x01\x12\x11\n\rSINGLE_COLUMN\x10\x02\x12\x10\n\x0cMULTI_COLUMN\x10\x03\x42\r\n\x0b_row_height\"O\n\x06Styler\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x0f\n\x07\x63\x61ption\x18\x02 \x01(\t\x12\x0e\n\x06styles\x18\x03 \x01(\t\x12\x16\n\x0e\x64isplay_values\x18\x04 \x01(\x0c\x42*\n\x1c\x63om.snowflake.apps.streamlitB\nArrowProtob\x06proto3')
|
18
18
|
|
19
19
|
_globals = globals()
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -23,11 +23,11 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
23
23
|
_globals['DESCRIPTOR']._loaded_options = None
|
24
24
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nArrowProto'
|
25
25
|
_globals['_ARROW']._serialized_start=32
|
26
|
-
_globals['_ARROW']._serialized_end=
|
27
|
-
_globals['_ARROW_EDITINGMODE']._serialized_start=
|
28
|
-
_globals['_ARROW_EDITINGMODE']._serialized_end=
|
29
|
-
_globals['_ARROW_SELECTIONMODE']._serialized_start=
|
30
|
-
_globals['_ARROW_SELECTIONMODE']._serialized_end=
|
31
|
-
_globals['_STYLER']._serialized_start=
|
32
|
-
_globals['_STYLER']._serialized_end=
|
26
|
+
_globals['_ARROW']._serialized_end=491
|
27
|
+
_globals['_ARROW_EDITINGMODE']._serialized_start=339
|
28
|
+
_globals['_ARROW_EDITINGMODE']._serialized_end=391
|
29
|
+
_globals['_ARROW_SELECTIONMODE']._serialized_start=393
|
30
|
+
_globals['_ARROW_SELECTIONMODE']._serialized_end=476
|
31
|
+
_globals['_STYLER']._serialized_start=493
|
32
|
+
_globals['_STYLER']._serialized_end=572
|
33
33
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Arrow_pb2.pyi
CHANGED
@@ -99,6 +99,7 @@ class Arrow(google.protobuf.message.Message):
|
|
99
99
|
FORM_ID_FIELD_NUMBER: builtins.int
|
100
100
|
COLUMN_ORDER_FIELD_NUMBER: builtins.int
|
101
101
|
SELECTION_MODE_FIELD_NUMBER: builtins.int
|
102
|
+
ROW_HEIGHT_FIELD_NUMBER: builtins.int
|
102
103
|
data: builtins.bytes
|
103
104
|
"""The serialized arrow dataframe"""
|
104
105
|
width: builtins.int
|
@@ -117,6 +118,8 @@ class Arrow(google.protobuf.message.Message):
|
|
117
118
|
"""Deactivates editing"""
|
118
119
|
form_id: builtins.str
|
119
120
|
"""The form ID of the widget, this is required if the dataframe is editable"""
|
121
|
+
row_height: builtins.int
|
122
|
+
"""Row height in pixels"""
|
120
123
|
@property
|
121
124
|
def styler(self) -> global___Styler:
|
122
125
|
"""Pandas styler information"""
|
@@ -144,9 +147,11 @@ class Arrow(google.protobuf.message.Message):
|
|
144
147
|
form_id: builtins.str = ...,
|
145
148
|
column_order: collections.abc.Iterable[builtins.str] | None = ...,
|
146
149
|
selection_mode: collections.abc.Iterable[global___Arrow.SelectionMode.ValueType] | None = ...,
|
150
|
+
row_height: builtins.int | None = ...,
|
147
151
|
) -> None: ...
|
148
|
-
def HasField(self, field_name: typing.Literal["styler", b"styler"]) -> builtins.bool: ...
|
149
|
-
def ClearField(self, field_name: typing.Literal["column_order", b"column_order", "columns", b"columns", "data", b"data", "disabled", b"disabled", "editing_mode", b"editing_mode", "form_id", b"form_id", "height", b"height", "id", b"id", "selection_mode", b"selection_mode", "styler", b"styler", "use_container_width", b"use_container_width", "width", b"width"]) -> None: ...
|
152
|
+
def HasField(self, field_name: typing.Literal["_row_height", b"_row_height", "row_height", b"row_height", "styler", b"styler"]) -> builtins.bool: ...
|
153
|
+
def ClearField(self, field_name: typing.Literal["_row_height", b"_row_height", "column_order", b"column_order", "columns", b"columns", "data", b"data", "disabled", b"disabled", "editing_mode", b"editing_mode", "form_id", b"form_id", "height", b"height", "id", b"id", "row_height", b"row_height", "selection_mode", b"selection_mode", "styler", b"styler", "use_container_width", b"use_container_width", "width", b"width"]) -> None: ...
|
154
|
+
def WhichOneof(self, oneof_group: typing.Literal["_row_height", b"_row_height"]) -> typing.Literal["row_height"] | None: ...
|
150
155
|
|
151
156
|
global___Arrow = Arrow
|
152
157
|
|
@@ -16,7 +16,7 @@ from streamlit.proto import AppPage_pb2 as streamlit_dot_proto_dot_AppPage__pb2
|
|
16
16
|
from streamlit.proto import SessionStatus_pb2 as streamlit_dot_proto_dot_SessionStatus__pb2
|
17
17
|
|
18
18
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\xfc\x05\n\x11\x43ustomThemeConfig\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\"\n\x1asecondary_background_color\x18\x02 \x01(\t\x12\x18\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\t\x12\x12\n\ntext_color\x18\x04 \x01(\t\x12+\n\x04\x66ont\x18\x05 \x01(\x0e\x32\x1d.CustomThemeConfig.FontFamily\x12*\n\x04\x62\x61se\x18\x06 \x01(\x0e\x32\x1c.CustomThemeConfig.BaseTheme\x12\x1f\n\x17widget_background_color\x18\x07 \x01(\t\x12\x1b\n\x13widget_border_color\x18\x08 \x01(\t\x12\x15\n\x05radii\x18\t \x01(\x0b\x32\x06.Radii\x12\x11\n\tbody_font\x18\r \x01(\t\x12\x11\n\tcode_font\x18\x0e \x01(\t\x12\x1d\n\nfont_faces\x18\x0f \x03(\x0b\x32\t.FontFace\x12\x1e\n\nfont_sizes\x18\x10 \x01(\x0b\x32\n.FontSizes\x12!\n\x19skeleton_background_color\x18\x11 \x01(\t\x12\x16\n\troundness\x18\x12 \x01(\x02H\x00\x88\x01\x01\x12\x19\n\x0c\x62order_color\x18\x13 \x01(\tH\x01\x88\x01\x01\x12&\n\x19show_border_around_inputs\x18\x14 \x01(\x08H\x02\x88\x01\x01\x12\x17\n\nlink_color\x18\x15 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0e\x62\x61se_font_size\x18\x16 \x01(\x05H\x04\x88\x01\x01\" \n\tBaseTheme\x12\t\n\x05LIGHT\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\"6\n\nFontFamily\x12\x0e\n\nSANS_SERIF\x10\x00\x12\t\n\x05SERIF\x10\x01\x12\r\n\tMONOSPACE\x10\x02\x42\x0c\n\n_roundnessB\x0f\n\r_border_colorB\x1c\n\x1a_show_border_around_inputsB\r\n\x0b_link_colorB\x11\n\x0f_base_font_size\"F\n\x08\x46ontFace\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06\x66\x61mily\x18\x02 \x01(\t\x12\x0e\n\x06weight\x18\x03 \x01(\x05\x12\r\n\x05style\x18\x04 \x01(\t\"<\n\x05Radii\x12\x1a\n\x12\x62\x61se_widget_radius\x18\x01 \x01(\x05\x12\x17\n\x0f\x63heckbox_radius\x18\x02 \x01(\x05\"T\n\tFontSizes\x12\x16\n\x0etiny_font_size\x18\x01 \x01(\x05\x12\x17\n\x0fsmall_font_size\x18\x02 \x01(\x05\x12\x16\n\x0e\x62\x61se_font_size\x18\x03 \x01(\x05\"E\n\x08UserInfo\x12\x17\n\x0finstallation_id\x18\x01 \x01(\t\x12\x1a\n\x12installation_id_v3\x18\x05 \x01(\tJ\x04\x08\x02\x10\x03\"D\n\x0f\x45nvironmentInfo\x12\x19\n\x11streamlit_version\x18\x01 \x01(\t\x12\x16\n\x0epython_version\x18\x02 \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0fNewSessionProtob\x06proto3')
|
20
20
|
|
21
21
|
_globals = globals()
|
22
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -33,19 +33,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['_CONFIG_TOOLBARMODE']._serialized_start=800
|
34
34
|
_globals['_CONFIG_TOOLBARMODE']._serialized_end=863
|
35
35
|
_globals['_CUSTOMTHEMECONFIG']._serialized_start=872
|
36
|
-
_globals['_CUSTOMTHEMECONFIG']._serialized_end=
|
37
|
-
_globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=
|
38
|
-
_globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=
|
39
|
-
_globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=
|
40
|
-
_globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=
|
41
|
-
_globals['_FONTFACE']._serialized_start=
|
42
|
-
_globals['_FONTFACE']._serialized_end=
|
43
|
-
_globals['_RADII']._serialized_start=
|
44
|
-
_globals['_RADII']._serialized_end=
|
45
|
-
_globals['_FONTSIZES']._serialized_start=
|
46
|
-
_globals['_FONTSIZES']._serialized_end=
|
47
|
-
_globals['_USERINFO']._serialized_start=
|
48
|
-
_globals['_USERINFO']._serialized_end=
|
49
|
-
_globals['_ENVIRONMENTINFO']._serialized_start=
|
50
|
-
_globals['_ENVIRONMENTINFO']._serialized_end=
|
36
|
+
_globals['_CUSTOMTHEMECONFIG']._serialized_end=1636
|
37
|
+
_globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=1453
|
38
|
+
_globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=1485
|
39
|
+
_globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=1487
|
40
|
+
_globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=1541
|
41
|
+
_globals['_FONTFACE']._serialized_start=1638
|
42
|
+
_globals['_FONTFACE']._serialized_end=1708
|
43
|
+
_globals['_RADII']._serialized_start=1710
|
44
|
+
_globals['_RADII']._serialized_end=1770
|
45
|
+
_globals['_FONTSIZES']._serialized_start=1772
|
46
|
+
_globals['_FONTSIZES']._serialized_end=1856
|
47
|
+
_globals['_USERINFO']._serialized_start=1858
|
48
|
+
_globals['_USERINFO']._serialized_end=1927
|
49
|
+
_globals['_ENVIRONMENTINFO']._serialized_start=1929
|
50
|
+
_globals['_ENVIRONMENTINFO']._serialized_end=1997
|
51
51
|
# @@protoc_insertion_point(module_scope)
|
@@ -287,6 +287,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
287
287
|
BORDER_COLOR_FIELD_NUMBER: builtins.int
|
288
288
|
SHOW_BORDER_AROUND_INPUTS_FIELD_NUMBER: builtins.int
|
289
289
|
LINK_COLOR_FIELD_NUMBER: builtins.int
|
290
|
+
BASE_FONT_SIZE_FIELD_NUMBER: builtins.int
|
290
291
|
primary_color: builtins.str
|
291
292
|
secondary_background_color: builtins.str
|
292
293
|
background_color: builtins.str
|
@@ -306,6 +307,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
306
307
|
border_color: builtins.str
|
307
308
|
show_border_around_inputs: builtins.bool
|
308
309
|
link_color: builtins.str
|
310
|
+
base_font_size: builtins.int
|
309
311
|
@property
|
310
312
|
def radii(self) -> global___Radii:
|
311
313
|
"""DEPRECATED: Please use the roundness theme config instead:"""
|
@@ -313,7 +315,9 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
313
315
|
@property
|
314
316
|
def font_faces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FontFace]: ...
|
315
317
|
@property
|
316
|
-
def font_sizes(self) -> global___FontSizes:
|
318
|
+
def font_sizes(self) -> global___FontSizes:
|
319
|
+
"""DEPRECATED: Please use the base_font_size theme config instead:"""
|
320
|
+
|
317
321
|
def __init__(
|
318
322
|
self,
|
319
323
|
*,
|
@@ -335,9 +339,12 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
335
339
|
border_color: builtins.str | None = ...,
|
336
340
|
show_border_around_inputs: builtins.bool | None = ...,
|
337
341
|
link_color: builtins.str | None = ...,
|
342
|
+
base_font_size: builtins.int | None = ...,
|
338
343
|
) -> None: ...
|
339
|
-
def HasField(self, field_name: typing.Literal["_border_color", b"_border_color", "_link_color", b"_link_color", "_roundness", b"_roundness", "_show_border_around_inputs", b"_show_border_around_inputs", "border_color", b"border_color", "font_sizes", b"font_sizes", "link_color", b"link_color", "radii", b"radii", "roundness", b"roundness", "show_border_around_inputs", b"show_border_around_inputs"]) -> builtins.bool: ...
|
340
|
-
def ClearField(self, field_name: typing.Literal["_border_color", b"_border_color", "_link_color", b"_link_color", "_roundness", b"_roundness", "_show_border_around_inputs", b"_show_border_around_inputs", "background_color", b"background_color", "base", b"base", "body_font", b"body_font", "border_color", b"border_color", "code_font", b"code_font", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "link_color", b"link_color", "primary_color", b"primary_color", "radii", b"radii", "roundness", b"roundness", "secondary_background_color", b"secondary_background_color", "show_border_around_inputs", b"show_border_around_inputs", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
|
344
|
+
def HasField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_border_color", b"_border_color", "_link_color", b"_link_color", "_roundness", b"_roundness", "_show_border_around_inputs", b"_show_border_around_inputs", "base_font_size", b"base_font_size", "border_color", b"border_color", "font_sizes", b"font_sizes", "link_color", b"link_color", "radii", b"radii", "roundness", b"roundness", "show_border_around_inputs", b"show_border_around_inputs"]) -> builtins.bool: ...
|
345
|
+
def ClearField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_border_color", b"_border_color", "_link_color", b"_link_color", "_roundness", b"_roundness", "_show_border_around_inputs", b"_show_border_around_inputs", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "body_font", b"body_font", "border_color", b"border_color", "code_font", b"code_font", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "link_color", b"link_color", "primary_color", b"primary_color", "radii", b"radii", "roundness", b"roundness", "secondary_background_color", b"secondary_background_color", "show_border_around_inputs", b"show_border_around_inputs", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
|
346
|
+
@typing.overload
|
347
|
+
def WhichOneof(self, oneof_group: typing.Literal["_base_font_size", b"_base_font_size"]) -> typing.Literal["base_font_size"] | None: ...
|
341
348
|
@typing.overload
|
342
349
|
def WhichOneof(self, oneof_group: typing.Literal["_border_color", b"_border_color"]) -> typing.Literal["border_color"] | None: ...
|
343
350
|
@typing.overload
|
@@ -396,6 +403,8 @@ global___Radii = Radii
|
|
396
403
|
|
397
404
|
@typing.final
|
398
405
|
class FontSizes(google.protobuf.message.Message):
|
406
|
+
"""DEPRECATED: Please use the base_font_size theme config instead:"""
|
407
|
+
|
399
408
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
400
409
|
|
401
410
|
TINY_FONT_SIZE_FIELD_NUMBER: builtins.int
|
streamlit/static/index.html
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
<script>
|
52
52
|
window.prerenderReady = false
|
53
53
|
</script>
|
54
|
-
<script type="module" crossorigin src="./static/js/index.
|
54
|
+
<script type="module" crossorigin src="./static/js/index.BrTAJ7cx.js"></script>
|
55
55
|
<link rel="stylesheet" crossorigin href="./static/css/index.DpJG_94W.css">
|
56
56
|
</head>
|
57
57
|
<body>
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,E as n,_ as a}from"./index.
|
1
|
+
import{r as e,E as n,_ as a}from"./index.BrTAJ7cx.js";var o=e.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return e.createElement(n,a({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),e.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),e.createElement("path",{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}))});o.displayName="Delete";var i=e.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return e.createElement(n,a({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),e.createElement("rect",{width:24,height:24,fill:"none"}),e.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}))});i.displayName="FileDownload";export{o as D,i as F};
|