streamlit-nightly 1.43.3.dev20250319__py3-none-any.whl → 1.43.3.dev20250321__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 +4 -0
- streamlit/elements/widgets/text_widgets.py +28 -4
- streamlit/proto/ClientState_pb2.py +4 -4
- streamlit/proto/ClientState_pb2.pyi +7 -2
- streamlit/proto/TextInput_pb2.py +4 -4
- streamlit/proto/TextInput_pb2.pyi +4 -1
- streamlit/runtime/context.py +9 -0
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{FileDownload.esm.Dz4lqu2t.js → FileDownload.esm.BQODA0kT.js} +1 -1
- streamlit/static/static/js/{FileHelper.B_o0E5mY.js → FileHelper.Cd1NC1sj.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.B5ARMjis.js → FormClearHelper.t3Y3brxz.js} +1 -1
- streamlit/static/static/js/{Hooks.gYcZ3nte.js → Hooks.CVhAgsX9.js} +1 -1
- streamlit/static/static/js/{InputInstructions.K_vAW_MG.js → InputInstructions.CY0iaCAH.js} +1 -1
- streamlit/static/static/js/{ProgressBar.DOjGuUdH.js → ProgressBar.BsUYMROy.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.C4HdMGrO.js → RenderInPortalIfExists.DY-eA855.js} +1 -1
- streamlit/static/static/js/{Toolbar.BZqFuVCo.js → Toolbar.B4w5KGXT.js} +1 -1
- streamlit/static/static/js/{base-input.DtNLPEYc.js → base-input.DBVZTUu3.js} +1 -1
- streamlit/static/static/js/{checkbox.De5lDKlG.js → checkbox.JQMF-1O8.js} +1 -1
- streamlit/static/static/js/{createSuper.DUfdjejQ.js → createSuper.D9POSiaD.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.ByFOuSZw.js → data-grid-overlay-editor.DtRjA_2u.js} +1 -1
- streamlit/static/static/js/{downloader.Bndt7ayy.js → downloader.DoWSr1Wv.js} +1 -1
- streamlit/static/static/js/{es6.B9axslaM.js → es6.1WEohfAS.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.C19fTVqS.js → iframeResizer.contentWindow.Cvg5l91o.js} +1 -1
- streamlit/static/static/js/{index.KmpTf7BC.js → index.B3VEOweF.js} +5 -5
- streamlit/static/static/js/{index.BVKRKiWg.js → index.BEsq7fPh.js} +1 -1
- streamlit/static/static/js/{index.3vPW8lC3.js → index.BGnNI-8W.js} +1 -1
- streamlit/static/static/js/{index.CGzFdF4L.js → index.BLrbLqQH.js} +1 -1
- streamlit/static/static/js/{index.CYG25qUi.js → index.BZkaPg7D.js} +1 -1
- streamlit/static/static/js/index.C2tYobH0.js +1 -0
- streamlit/static/static/js/{index.CBtAFng_.js → index.C6kAgSN4.js} +1 -1
- streamlit/static/static/js/index.C7mtJOo5.js +1 -0
- streamlit/static/static/js/{index.BBkaxxeO.js → index.CM19fnJb.js} +1 -1
- streamlit/static/static/js/{index.BKhwcUMH.js → index.CSu8uGcy.js} +8 -8
- streamlit/static/static/js/{index.BrZWnIcP.js → index.CTYaWMIL.js} +1 -1
- streamlit/static/static/js/{index.bco4avsR.js → index.CVHkuXW-.js} +1 -1
- streamlit/static/static/js/{index.cHVEPjHw.js → index.CWCekiqc.js} +1 -1
- streamlit/static/static/js/{index.BOsCHoek.js → index.CXWWimKv.js} +1 -1
- streamlit/static/static/js/{index.BQkmoKYZ.js → index.CbsyIVuK.js} +1 -1
- streamlit/static/static/js/{index.CVbLNEv4.js → index.Cgs75YoN.js} +1 -1
- streamlit/static/static/js/{index.DxsZ6SOh.js → index.CqFs_RV7.js} +1 -1
- streamlit/static/static/js/{index.Bu7fiR4T.js → index.Czpau2RI.js} +1 -1
- streamlit/static/static/js/{index.Bbd47eDn.js → index.D4xt261U.js} +1 -1
- streamlit/static/static/js/{index.8fEQ0naY.js → index.DBtMVdzG.js} +1 -1
- streamlit/static/static/js/{index.BKE695Zg.js → index.DCnMWZnR.js} +1 -1
- streamlit/static/static/js/{index.BDWxQ6IH.js → index.DelVBbuJ.js} +1 -1
- streamlit/static/static/js/{index.Bk2R3MJ7.js → index.Dln3BV86.js} +1 -1
- streamlit/static/static/js/{index.DCgNoHge.js → index.Dm7Igyrl.js} +1 -1
- streamlit/static/static/js/{index.TIHw6394.js → index.Du3BwWO7.js} +1 -1
- streamlit/static/static/js/{index.BRjv0YAi.js → index.DxnPo6ts.js} +1 -1
- streamlit/static/static/js/{index.DWQ-qPH7.js → index.GXpLCsb-.js} +1 -1
- streamlit/static/static/js/{index.DQ8O6p2Z.js → index.KS80Jqcr.js} +1 -1
- streamlit/static/static/js/{index.K2n8XAB3.js → index.QthdDCoR.js} +1 -1
- streamlit/static/static/js/{index.C4zUVQy-.js → index.TDz7M2Mf.js} +1 -1
- streamlit/static/static/js/index.TIhv6y57.js +73 -0
- streamlit/static/static/js/{index.BELm1MW6.js → index.XgC4xRfH.js} +1 -1
- streamlit/static/static/js/{index.B9N7bKyh.js → index.ZPl-HR8t.js} +1 -1
- streamlit/static/static/js/{index.BpkIFU8i.js → index.aC7qpPWU.js} +1 -1
- streamlit/static/static/js/{index.D8rVyQy1.js → index.t--hEgTQ.js} +2 -2
- streamlit/static/static/js/{index.DJzV_Hd9.js → index.tob7mjfs.js} +1006 -205
- streamlit/static/static/js/{index.xvt4PCc-.js → index.u6AcjnZ7.js} +1 -1
- streamlit/static/static/js/{index.TXEfAqTZ.js → index.yDsW8OSl.js} +1 -1
- streamlit/static/static/js/{input.5dHsg5IP.js → input.CO7BKD8r.js} +1 -1
- streamlit/static/static/js/{memory.7AvKwFql.js → memory.BemPMzyI.js} +1 -1
- streamlit/static/static/js/{mergeWith.Bz2fCjZ-.js → mergeWith.DP8mfmL6.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.BzFQCoPo.js → number-overlay-editor.ginZOZcu.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.BWYpSIhJ.js → possibleConstructorReturn.DBNJUrmv.js} +1 -1
- streamlit/static/static/js/{sandbox.DDDzfccc.js → sandbox.jDcIxry_.js} +1 -1
- streamlit/static/static/js/{textarea.UlZOYsGE.js → textarea.BtBLwbqz.js} +1 -1
- streamlit/static/static/js/{timepicker.C8uTDs22.js → timepicker.qTjYkAuk.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.CdG0Nv6r.js → toConsumableArray.CAEOgwcy.js} +1 -1
- streamlit/static/static/js/{uniqueId.hWzaDSRc.js → uniqueId.BR7o9Ap9.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.CtYBARrn.js → useBasicWidgetState.Dl0fFJUN.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.Cpz9bdhf.js → useOnInputChange.B20T1pKy.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.BcDfXDtz.js → withFullScreenWrapper.DI_yRwBc.js} +1 -1
- {streamlit_nightly-1.43.3.dev20250319.dist-info → streamlit_nightly-1.43.3.dev20250321.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.43.3.dev20250319.dist-info → streamlit_nightly-1.43.3.dev20250321.dist-info}/RECORD +80 -80
- {streamlit_nightly-1.43.3.dev20250319.dist-info → streamlit_nightly-1.43.3.dev20250321.dist-info}/WHEEL +1 -1
- streamlit/static/static/js/index.BTbDncVq.js +0 -1
- streamlit/static/static/js/index.BoIgF6Mf.js +0 -73
- streamlit/static/static/js/index.CKmyhCjm.js +0 -1
- {streamlit_nightly-1.43.3.dev20250319.data → streamlit_nightly-1.43.3.dev20250321.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.43.3.dev20250319.dist-info → streamlit_nightly-1.43.3.dev20250321.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.43.3.dev20250319.dist-info → streamlit_nightly-1.43.3.dev20250321.dist-info}/top_level.txt +0 -0
streamlit/delta_generator.py
CHANGED
@@ -487,6 +487,10 @@ class DeltaGenerator(
|
|
487
487
|
cursor=new_cursor,
|
488
488
|
parent=dg,
|
489
489
|
)
|
490
|
+
|
491
|
+
# Elements inherit their parent form ids.
|
492
|
+
# NOTE: Form ids aren't set in dg constructor.
|
493
|
+
output_dg._form_data = FormData(current_form_id(dg))
|
490
494
|
else:
|
491
495
|
# If the message was not enqueued, just return self since it's a
|
492
496
|
# no-op from the point of view of the app.
|
@@ -42,9 +42,8 @@ from streamlit.runtime.state import (
|
|
42
42
|
get_session_state,
|
43
43
|
register_widget,
|
44
44
|
)
|
45
|
-
from streamlit.
|
46
|
-
|
47
|
-
)
|
45
|
+
from streamlit.string_util import validate_icon_or_emoji
|
46
|
+
from streamlit.type_util import SupportsStr
|
48
47
|
|
49
48
|
if TYPE_CHECKING:
|
50
49
|
from streamlit.delta_generator import DeltaGenerator
|
@@ -91,6 +90,7 @@ class TextWidgetsMixin:
|
|
91
90
|
placeholder: str | None = None,
|
92
91
|
disabled: bool = False,
|
93
92
|
label_visibility: LabelVisibility = "visible",
|
93
|
+
icon: str | None = None,
|
94
94
|
) -> str:
|
95
95
|
pass
|
96
96
|
|
@@ -111,6 +111,7 @@ class TextWidgetsMixin:
|
|
111
111
|
placeholder: str | None = None,
|
112
112
|
disabled: bool = False,
|
113
113
|
label_visibility: LabelVisibility = "visible",
|
114
|
+
icon: str | None = None,
|
114
115
|
) -> str | None:
|
115
116
|
pass
|
116
117
|
|
@@ -131,6 +132,7 @@ class TextWidgetsMixin:
|
|
131
132
|
placeholder: str | None = None,
|
132
133
|
disabled: bool = False,
|
133
134
|
label_visibility: LabelVisibility = "visible",
|
135
|
+
icon: str | None = None,
|
134
136
|
) -> str | None:
|
135
137
|
r"""Display a single-line text input widget.
|
136
138
|
|
@@ -212,7 +214,23 @@ class TextWidgetsMixin:
|
|
212
214
|
The visibility of the label. The default is ``"visible"``. If this
|
213
215
|
is ``"hidden"``, Streamlit displays an empty spacer instead of the
|
214
216
|
label, which can help keep the widget alligned with other widgets.
|
215
|
-
|
217
|
+
|
218
|
+
icon : str, None
|
219
|
+
An optional emoji or icon to display next to the alert. If ``icon``
|
220
|
+
is ``None`` (default), no icon is displayed. If ``icon`` is a
|
221
|
+
string, the following options are valid:
|
222
|
+
|
223
|
+
- A single-character emoji. For example, you can set ``icon="🚨"``
|
224
|
+
or ``icon="🔥"``. Emoji short codes are not supported.
|
225
|
+
|
226
|
+
- An icon from the Material Symbols library (rounded style) in the
|
227
|
+
format ``":material/icon_name:"`` where "icon_name" is the name
|
228
|
+
of the icon in snake case.
|
229
|
+
|
230
|
+
For example, ``icon=":material/thumb_up:"`` will display the
|
231
|
+
Thumb Up icon. Find additional icons in the `Material Symbols \
|
232
|
+
<https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
|
233
|
+
font library.
|
216
234
|
|
217
235
|
Returns
|
218
236
|
-------
|
@@ -247,6 +265,7 @@ class TextWidgetsMixin:
|
|
247
265
|
placeholder=placeholder,
|
248
266
|
disabled=disabled,
|
249
267
|
label_visibility=label_visibility,
|
268
|
+
icon=icon,
|
250
269
|
ctx=ctx,
|
251
270
|
)
|
252
271
|
|
@@ -266,6 +285,7 @@ class TextWidgetsMixin:
|
|
266
285
|
placeholder: str | None = None,
|
267
286
|
disabled: bool = False,
|
268
287
|
label_visibility: LabelVisibility = "visible",
|
288
|
+
icon: str | None = None,
|
269
289
|
ctx: ScriptRunContext | None = None,
|
270
290
|
) -> str | None:
|
271
291
|
key = to_key(key)
|
@@ -292,6 +312,7 @@ class TextWidgetsMixin:
|
|
292
312
|
help=help,
|
293
313
|
autocomplete=autocomplete,
|
294
314
|
placeholder=str(placeholder),
|
315
|
+
icon=icon,
|
295
316
|
)
|
296
317
|
|
297
318
|
session_state = get_session_state().filtered_state
|
@@ -318,6 +339,9 @@ class TextWidgetsMixin:
|
|
318
339
|
if placeholder is not None:
|
319
340
|
text_input_proto.placeholder = str(placeholder)
|
320
341
|
|
342
|
+
if icon is not None:
|
343
|
+
text_input_proto.icon = validate_icon_or_emoji(icon)
|
344
|
+
|
321
345
|
if type == "default":
|
322
346
|
text_input_proto.type = TextInputProto.DEFAULT
|
323
347
|
elif type == "password":
|
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
|
|
15
15
|
from streamlit.proto import WidgetStates_pb2 as streamlit_dot_proto_dot_WidgetStates__pb2
|
16
16
|
|
17
17
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ClientState.proto\x1a\"streamlit/proto/WidgetStates.proto\"\
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ClientState.proto\x1a\"streamlit/proto/WidgetStates.proto\"\x9d\x01\n\x0b\x43ontextInfo\x12\x15\n\x08timezone\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0ftimezone_offset\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x13\n\x06locale\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03url\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x0b\n\t_timezoneB\x12\n\x10_timezone_offsetB\t\n\x07_localeB\x06\n\x04_url\"\xc6\x01\n\x0b\x43lientState\x12\x14\n\x0cquery_string\x18\x01 \x01(\t\x12$\n\rwidget_states\x18\x02 \x01(\x0b\x32\r.WidgetStates\x12\x18\n\x10page_script_hash\x18\x03 \x01(\t\x12\x11\n\tpage_name\x18\x04 \x01(\t\x12\x13\n\x0b\x66ragment_id\x18\x05 \x01(\t\x12\x15\n\ris_auto_rerun\x18\x06 \x01(\x08\x12\"\n\x0c\x63ontext_info\x18\x08 \x01(\x0b\x32\x0c.ContextInfoB0\n\x1c\x63om.snowflake.apps.streamlitB\x10\x43lientStateProtob\x06proto3')
|
19
19
|
|
20
20
|
_globals = globals()
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -24,7 +24,7 @@ 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\020ClientStateProto'
|
26
26
|
_globals['_CONTEXTINFO']._serialized_start=74
|
27
|
-
_globals['_CONTEXTINFO']._serialized_end=
|
28
|
-
_globals['_CLIENTSTATE']._serialized_start=
|
29
|
-
_globals['_CLIENTSTATE']._serialized_end=
|
27
|
+
_globals['_CONTEXTINFO']._serialized_end=231
|
28
|
+
_globals['_CLIENTSTATE']._serialized_start=234
|
29
|
+
_globals['_CLIENTSTATE']._serialized_end=432
|
30
30
|
# @@protoc_insertion_point(module_scope)
|
@@ -32,24 +32,29 @@ class ContextInfo(google.protobuf.message.Message):
|
|
32
32
|
TIMEZONE_FIELD_NUMBER: builtins.int
|
33
33
|
TIMEZONE_OFFSET_FIELD_NUMBER: builtins.int
|
34
34
|
LOCALE_FIELD_NUMBER: builtins.int
|
35
|
+
URL_FIELD_NUMBER: builtins.int
|
35
36
|
timezone: builtins.str
|
36
37
|
timezone_offset: builtins.int
|
37
38
|
locale: builtins.str
|
39
|
+
url: builtins.str
|
38
40
|
def __init__(
|
39
41
|
self,
|
40
42
|
*,
|
41
43
|
timezone: builtins.str | None = ...,
|
42
44
|
timezone_offset: builtins.int | None = ...,
|
43
45
|
locale: builtins.str | None = ...,
|
46
|
+
url: builtins.str | None = ...,
|
44
47
|
) -> None: ...
|
45
|
-
def HasField(self, field_name: typing.Literal["_locale", b"_locale", "_timezone", b"_timezone", "_timezone_offset", b"_timezone_offset", "locale", b"locale", "timezone", b"timezone", "timezone_offset", b"timezone_offset"]) -> builtins.bool: ...
|
46
|
-
def ClearField(self, field_name: typing.Literal["_locale", b"_locale", "_timezone", b"_timezone", "_timezone_offset", b"_timezone_offset", "locale", b"locale", "timezone", b"timezone", "timezone_offset", b"timezone_offset"]) -> None: ...
|
48
|
+
def HasField(self, field_name: typing.Literal["_locale", b"_locale", "_timezone", b"_timezone", "_timezone_offset", b"_timezone_offset", "_url", b"_url", "locale", b"locale", "timezone", b"timezone", "timezone_offset", b"timezone_offset", "url", b"url"]) -> builtins.bool: ...
|
49
|
+
def ClearField(self, field_name: typing.Literal["_locale", b"_locale", "_timezone", b"_timezone", "_timezone_offset", b"_timezone_offset", "_url", b"_url", "locale", b"locale", "timezone", b"timezone", "timezone_offset", b"timezone_offset", "url", b"url"]) -> None: ...
|
47
50
|
@typing.overload
|
48
51
|
def WhichOneof(self, oneof_group: typing.Literal["_locale", b"_locale"]) -> typing.Literal["locale"] | None: ...
|
49
52
|
@typing.overload
|
50
53
|
def WhichOneof(self, oneof_group: typing.Literal["_timezone", b"_timezone"]) -> typing.Literal["timezone"] | None: ...
|
51
54
|
@typing.overload
|
52
55
|
def WhichOneof(self, oneof_group: typing.Literal["_timezone_offset", b"_timezone_offset"]) -> typing.Literal["timezone_offset"] | None: ...
|
56
|
+
@typing.overload
|
57
|
+
def WhichOneof(self, oneof_group: typing.Literal["_url", b"_url"]) -> typing.Literal["url"] | None: ...
|
53
58
|
|
54
59
|
global___ContextInfo = ContextInfo
|
55
60
|
|
streamlit/proto/TextInput_pb2.py
CHANGED
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
|
|
15
15
|
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
|
16
16
|
|
17
17
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/TextInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/TextInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xeb\x02\n\tTextInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x04type\x18\x04 \x01(\x0e\x32\x0f.TextInput.Type\x12\x11\n\tmax_chars\x18\x05 \x01(\r\x12\x0c\n\x04help\x18\x06 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x07 \x01(\t\x12\x12\n\x05value\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\tset_value\x18\t \x01(\x08\x12\x14\n\x0c\x61utocomplete\x18\n \x01(\t\x12\x13\n\x0bplaceholder\x18\x0b \x01(\t\x12\x10\n\x08\x64isabled\x18\x0c \x01(\x08\x12\x31\n\x10label_visibility\x18\r \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x0c\n\x04icon\x18\x0e \x01(\t\"!\n\x04Type\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0c\n\x08PASSWORD\x10\x01\x42\n\n\x08_defaultB\x08\n\x06_valueB.\n\x1c\x63om.snowflake.apps.streamlitB\x0eTextInputProtob\x06proto3')
|
19
19
|
|
20
20
|
_globals = globals()
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -24,7 +24,7 @@ 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\016TextInputProto'
|
26
26
|
_globals['_TEXTINPUT']._serialized_start=82
|
27
|
-
_globals['_TEXTINPUT']._serialized_end=
|
28
|
-
_globals['_TEXTINPUT_TYPE']._serialized_start=
|
29
|
-
_globals['_TEXTINPUT_TYPE']._serialized_end=
|
27
|
+
_globals['_TEXTINPUT']._serialized_end=445
|
28
|
+
_globals['_TEXTINPUT_TYPE']._serialized_start=390
|
29
|
+
_globals['_TEXTINPUT_TYPE']._serialized_end=423
|
30
30
|
# @@protoc_insertion_point(module_scope)
|
@@ -66,6 +66,7 @@ class TextInput(google.protobuf.message.Message):
|
|
66
66
|
PLACEHOLDER_FIELD_NUMBER: builtins.int
|
67
67
|
DISABLED_FIELD_NUMBER: builtins.int
|
68
68
|
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
|
69
|
+
ICON_FIELD_NUMBER: builtins.int
|
69
70
|
id: builtins.str
|
70
71
|
label: builtins.str
|
71
72
|
default: builtins.str
|
@@ -78,6 +79,7 @@ class TextInput(google.protobuf.message.Message):
|
|
78
79
|
autocomplete: builtins.str
|
79
80
|
placeholder: builtins.str
|
80
81
|
disabled: builtins.bool
|
82
|
+
icon: builtins.str
|
81
83
|
@property
|
82
84
|
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
83
85
|
def __init__(
|
@@ -96,9 +98,10 @@ class TextInput(google.protobuf.message.Message):
|
|
96
98
|
placeholder: builtins.str = ...,
|
97
99
|
disabled: builtins.bool = ...,
|
98
100
|
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
101
|
+
icon: builtins.str = ...,
|
99
102
|
) -> None: ...
|
100
103
|
def HasField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"]) -> builtins.bool: ...
|
101
|
-
def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "autocomplete", b"autocomplete", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max_chars", b"max_chars", "placeholder", b"placeholder", "set_value", b"set_value", "type", b"type", "value", b"value"]) -> None: ...
|
104
|
+
def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "autocomplete", b"autocomplete", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "icon", b"icon", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max_chars", b"max_chars", "placeholder", b"placeholder", "set_value", b"set_value", "type", b"type", "value", b"value"]) -> None: ...
|
102
105
|
@typing.overload
|
103
106
|
def WhichOneof(self, oneof_group: typing.Literal["_default", b"_default"]) -> typing.Literal["default"] | None: ...
|
104
107
|
@typing.overload
|
streamlit/runtime/context.py
CHANGED
@@ -278,3 +278,12 @@ class ContextProxy:
|
|
278
278
|
if ctx is None or ctx.context_info is None:
|
279
279
|
return None
|
280
280
|
return ctx.context_info.locale
|
281
|
+
|
282
|
+
@property
|
283
|
+
@gather_metrics("context.url")
|
284
|
+
def url(self) -> str | None:
|
285
|
+
"""The URL of the user browser, read-only."""
|
286
|
+
ctx = get_script_run_ctx()
|
287
|
+
if ctx is None or ctx.context_info is None:
|
288
|
+
return None
|
289
|
+
return ctx.context_info.url
|
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.CSu8uGcy.js"></script>
|
55
55
|
<link rel="stylesheet" crossorigin href="./static/css/index.BOl9eq08.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.CSu8uGcy.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};
|