streamlit-nightly 1.45.1.dev20250501__py3-none-any.whl → 1.45.1.dev20250502__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/elements/widgets/select_slider.py +23 -0
- streamlit/elements/widgets/slider.py +17 -0
- streamlit/proto/Slider_pb2.py +8 -7
- streamlit/proto/Slider_pb2.pyi +8 -2
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.JdVs1Qkg.js → ErrorOutline.esm.Cyo2PQmw.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.BlQJ4vNG.js → FileDownload.esm.BzWzjfn-.js} +1 -1
- streamlit/static/static/js/{FileHelper.V4GYCyDu.js → FileHelper.Bq0bHIQU.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.CyxVAl63.js → FormClearHelper.ChH2zw9r.js} +1 -1
- streamlit/static/static/js/{Hooks.CwzpXjfg.js → Hooks.BX4S_9SH.js} +1 -1
- streamlit/static/static/js/{InputInstructions.DLh-ti71.js → InputInstructions.gIgCn0KU.js} +1 -1
- streamlit/static/static/js/{ProgressBar.C7bBETsY.js → ProgressBar.CfPAxQrK.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BMvxq2hn.js → RenderInPortalIfExists.2PFuDBNw.js} +1 -1
- streamlit/static/static/js/{Toolbar.CotfqUm6.js → Toolbar.Buf9GIBa.js} +1 -1
- streamlit/static/static/js/{base-input.BxaSmpU7.js → base-input.Bm9shgk4.js} +1 -1
- streamlit/static/static/js/{checkbox.CrglCerk.js → checkbox.a7k2DcAP.js} +1 -1
- streamlit/static/static/js/{createSuper.Bs0C396a.js → createSuper.DCriRkdS.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.D0k84F-1.js → data-grid-overlay-editor.DILbTvay.js} +1 -1
- streamlit/static/static/js/{downloader.BpZrmdUi.js → downloader.HVIUsQvS.js} +1 -1
- streamlit/static/static/js/{es6.DD8ccAPk.js → es6.20UTkPH7.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.7G5YE4ki.js → iframeResizer.contentWindow.DysIhKUL.js} +1 -1
- streamlit/static/static/js/{index.65FBensJ.js → index.B3bE5uB1.js} +1 -1
- streamlit/static/static/js/{index.rHb0nIsm.js → index.B60sXnAm.js} +1 -1
- streamlit/static/static/js/{index.DO535td0.js → index.BFBmymos.js} +1 -1
- streamlit/static/static/js/{index.DX2vW3qb.js → index.BGeguImE.js} +1 -1
- streamlit/static/static/js/{index.D1wWsFMc.js → index.BcjACxDW.js} +1 -1
- streamlit/static/static/js/{index.BQqNcnRp.js → index.BoUSwThS.js} +5 -5
- streamlit/static/static/js/{index.DM4oCpFy.js → index.C-XV9rWR.js} +1 -1
- streamlit/static/static/js/{index.BNm3tuep.js → index.C8opbOI3.js} +1 -1
- streamlit/static/static/js/{index.COpV4IZK.js → index.C9zP89H9.js} +1 -1
- streamlit/static/static/js/{index.D5GLQoRz.js → index.CQxpOqNH.js} +1 -1
- streamlit/static/static/js/{index.CveEeb4Q.js → index.CSU4ypQb.js} +1 -1
- streamlit/static/static/js/{index.DICnhvRg.js → index.CWQZ6fj2.js} +1 -1
- streamlit/static/static/js/{index.80LGX7Ne.js → index.Casjy0w3.js} +1 -1
- streamlit/static/static/js/{index.DW80zFo4.js → index.Cbix_1J1.js} +1 -1
- streamlit/static/static/js/{index.COBwb1mq.js → index.CcMkhkWk.js} +1 -1
- streamlit/static/static/js/{index.Czzj5-re.js → index.Co9rIAmf.js} +1 -1
- streamlit/static/static/js/{index.B2lDS5vI.js → index.Cufx1YWe.js} +1 -1
- streamlit/static/static/js/{index.BI5f0VII.js → index.Cx1FqRGB.js} +1 -1
- streamlit/static/static/js/{index.DfgXsqtW.js → index.D0zXTb0m.js} +1 -1
- streamlit/static/static/js/{index.DK_eUkea.js → index.D4a4MQfL.js} +1 -1
- streamlit/static/static/js/{index.BF0CTyRa.js → index.DTDSrcrv.js} +1 -1
- streamlit/static/static/js/{index.5p5xlu27.js → index.DYEXGytC.js} +1 -1
- streamlit/static/static/js/{index.Cgzj9ewR.js → index.DZYKdc2u.js} +1 -1
- streamlit/static/static/js/{index.Co5UsG7W.js → index.D_JOW5L_.js} +1 -1
- streamlit/static/static/js/{index.Dz4o-tqP.js → index.Dh2hRWUh.js} +5 -5
- streamlit/static/static/js/{index.B3VXbj_b.js → index.DtUymdq4.js} +1 -1
- streamlit/static/static/js/{index.BjKCKyJI.js → index.DuuM3erk.js} +1 -1
- streamlit/static/static/js/{index.BNhdn2vD.js → index.DyoIc8Zs.js} +1 -1
- streamlit/static/static/js/{index.Olz7Xaf0.js → index.FrboqWsl.js} +1 -1
- streamlit/static/static/js/{index.SARy_Med.js → index.MS-4hkiz.js} +1 -1
- streamlit/static/static/js/{index.BDLXYKTS.js → index.MnEfEagX.js} +1 -1
- streamlit/static/static/js/{index.CkutRj8u.js → index.PpH65WhH.js} +1 -1
- streamlit/static/static/js/{index.Dq6k7Ztd.js → index._MzojgSv.js} +1 -1
- streamlit/static/static/js/{index.DUF1Zxw6.js → index.aNlXA-L0.js} +1 -1
- streamlit/static/static/js/{index.C2kSDT38.js → index.hPo8pssx.js} +1 -1
- streamlit/static/static/js/{index.9sjzZWLH.js → index.nfYF_n-U.js} +1 -1
- streamlit/static/static/js/{index.CMjYL7Ho.js → index.wrZNg1iJ.js} +1 -1
- streamlit/static/static/js/{input.ChMez782.js → input.Cb_tvJ_5.js} +1 -1
- streamlit/static/static/js/{memory.DEIZt-uk.js → memory.gWLPmyVz.js} +1 -1
- streamlit/static/static/js/{mergeWith.DV3wfmZj.js → mergeWith.DyYsO7xJ.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.CVWV51LZ.js → number-overlay-editor.atsI6tTt.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.D8SHK4fu.js → possibleConstructorReturn.k2Tjz93L.js} +1 -1
- streamlit/static/static/js/{sandbox.2Y0eB1Fb.js → sandbox.DZ5kjuSJ.js} +1 -1
- streamlit/static/static/js/{textarea.CfOMMQUp.js → textarea.Bd_m3MJ1.js} +1 -1
- streamlit/static/static/js/{timepicker.BCEVqM6L.js → timepicker.CrYAvpIP.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.CgIgbjyR.js → toConsumableArray.DTRRsITN.js} +1 -1
- streamlit/static/static/js/{uniqueId.CasOW7eQ.js → uniqueId.Cp20OGew.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.DM0uW3hG.js → useBasicWidgetState.CkEGHpKC.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.C9p9DssL.js → useOnInputChange.Dnb1JE6q.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.Du9h1SFo.js → withFullScreenWrapper.C60s7JiX.js} +1 -1
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250502.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250502.dist-info}/RECORD +77 -77
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250502.dist-info}/WHEEL +1 -1
- {streamlit_nightly-1.45.1.dev20250501.data → streamlit_nightly-1.45.1.dev20250502.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250502.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250502.dist-info}/top_level.txt +0 -0
@@ -29,6 +29,7 @@ from typing_extensions import TypeGuard
|
|
29
29
|
|
30
30
|
from streamlit.dataframe_util import OptionSequence, convert_anything_to_list
|
31
31
|
from streamlit.elements.lib.form_utils import current_form_id
|
32
|
+
from streamlit.elements.lib.layout_utils import validate_width
|
32
33
|
from streamlit.elements.lib.options_selector_utils import (
|
33
34
|
index_,
|
34
35
|
maybe_coerce_enum,
|
@@ -48,6 +49,7 @@ from streamlit.elements.lib.utils import (
|
|
48
49
|
)
|
49
50
|
from streamlit.errors import StreamlitAPIException
|
50
51
|
from streamlit.proto.Slider_pb2 import Slider as SliderProto
|
52
|
+
from streamlit.proto.WidthConfig_pb2 import WidthConfig
|
51
53
|
from streamlit.runtime.metrics_util import gather_metrics
|
52
54
|
from streamlit.runtime.scriptrunner import ScriptRunContext, get_script_run_ctx
|
53
55
|
from streamlit.runtime.state import (
|
@@ -62,6 +64,7 @@ if TYPE_CHECKING:
|
|
62
64
|
from collections.abc import Sequence
|
63
65
|
|
64
66
|
from streamlit.delta_generator import DeltaGenerator
|
67
|
+
from streamlit.elements.lib.layout_utils import WidthWithoutContent
|
65
68
|
from streamlit.runtime.state.common import RegisterWidgetResult
|
66
69
|
|
67
70
|
|
@@ -119,6 +122,7 @@ class SelectSliderMixin:
|
|
119
122
|
*, # keyword-only arguments:
|
120
123
|
disabled: bool = False,
|
121
124
|
label_visibility: LabelVisibility = "visible",
|
125
|
+
width: WidthWithoutContent = "stretch",
|
122
126
|
) -> tuple[T, T]: ...
|
123
127
|
|
124
128
|
# The overload-overlap error given by mypy here stems from
|
@@ -148,6 +152,7 @@ class SelectSliderMixin:
|
|
148
152
|
*, # keyword-only arguments:
|
149
153
|
disabled: bool = False,
|
150
154
|
label_visibility: LabelVisibility = "visible",
|
155
|
+
width: WidthWithoutContent = "stretch",
|
151
156
|
) -> T: ...
|
152
157
|
|
153
158
|
@gather_metrics("select_slider")
|
@@ -165,6 +170,7 @@ class SelectSliderMixin:
|
|
165
170
|
*, # keyword-only arguments:
|
166
171
|
disabled: bool = False,
|
167
172
|
label_visibility: LabelVisibility = "visible",
|
173
|
+
width: WidthWithoutContent = "stretch",
|
168
174
|
) -> T | tuple[T, T]:
|
169
175
|
r"""
|
170
176
|
Display a slider widget to select items from a list.
|
@@ -252,6 +258,11 @@ class SelectSliderMixin:
|
|
252
258
|
label, which can help keep the widget alligned with other widgets.
|
253
259
|
If this is ``"collapsed"``, Streamlit displays no label or spacer.
|
254
260
|
|
261
|
+
width : "stretch" or int
|
262
|
+
The width of the slider. If "stretch", the slider will stretch to
|
263
|
+
fill the available space. If an integer, the slider will have a fixed
|
264
|
+
width in pixels.
|
265
|
+
|
255
266
|
Returns
|
256
267
|
-------
|
257
268
|
any value or tuple of any value
|
@@ -314,6 +325,7 @@ class SelectSliderMixin:
|
|
314
325
|
disabled=disabled,
|
315
326
|
label_visibility=label_visibility,
|
316
327
|
ctx=ctx,
|
328
|
+
width=width,
|
317
329
|
)
|
318
330
|
|
319
331
|
def _select_slider(
|
@@ -330,6 +342,7 @@ class SelectSliderMixin:
|
|
330
342
|
disabled: bool = False,
|
331
343
|
label_visibility: LabelVisibility = "visible",
|
332
344
|
ctx: ScriptRunContext | None = None,
|
345
|
+
width: WidthWithoutContent = "stretch",
|
333
346
|
) -> T | tuple[T, T]:
|
334
347
|
key = to_key(key)
|
335
348
|
|
@@ -375,6 +388,7 @@ class SelectSliderMixin:
|
|
375
388
|
options=[str(format_func(option)) for option in opt],
|
376
389
|
value=slider_value,
|
377
390
|
help=help,
|
391
|
+
width=width,
|
378
392
|
)
|
379
393
|
|
380
394
|
slider_proto = SliderProto()
|
@@ -396,6 +410,15 @@ class SelectSliderMixin:
|
|
396
410
|
if help is not None:
|
397
411
|
slider_proto.help = dedent(help)
|
398
412
|
|
413
|
+
# Set width config
|
414
|
+
validate_width(width)
|
415
|
+
width_config = WidthConfig()
|
416
|
+
if isinstance(width, int):
|
417
|
+
width_config.pixel_width = width
|
418
|
+
else:
|
419
|
+
width_config.use_stretch = True
|
420
|
+
slider_proto.width_config.CopyFrom(width_config)
|
421
|
+
|
399
422
|
serde = SelectSliderSerde(opt, slider_value, _is_range_value(value))
|
400
423
|
|
401
424
|
widget_state = register_widget(
|
@@ -33,6 +33,7 @@ from typing_extensions import TypeAlias
|
|
33
33
|
|
34
34
|
from streamlit.elements.lib.form_utils import current_form_id
|
35
35
|
from streamlit.elements.lib.js_number import JSNumber, JSNumberBoundsException
|
36
|
+
from streamlit.elements.lib.layout_utils import validate_width
|
36
37
|
from streamlit.elements.lib.policies import (
|
37
38
|
check_widget_policies,
|
38
39
|
maybe_raise_label_warnings,
|
@@ -50,6 +51,7 @@ from streamlit.errors import (
|
|
50
51
|
StreamlitValueBelowMinError,
|
51
52
|
)
|
52
53
|
from streamlit.proto.Slider_pb2 import Slider as SliderProto
|
54
|
+
from streamlit.proto.WidthConfig_pb2 import WidthConfig
|
53
55
|
from streamlit.runtime.metrics_util import gather_metrics
|
54
56
|
from streamlit.runtime.scriptrunner import ScriptRunContext, get_script_run_ctx
|
55
57
|
from streamlit.runtime.state import (
|
@@ -62,6 +64,7 @@ from streamlit.runtime.state import (
|
|
62
64
|
|
63
65
|
if TYPE_CHECKING:
|
64
66
|
from streamlit.delta_generator import DeltaGenerator
|
67
|
+
from streamlit.elements.lib.layout_utils import WidthWithoutContent
|
65
68
|
|
66
69
|
SliderNumericT = TypeVar("SliderNumericT", int, float)
|
67
70
|
SliderDatelikeT = TypeVar("SliderDatelikeT", date, time, datetime)
|
@@ -353,6 +356,7 @@ class SliderMixin:
|
|
353
356
|
*, # keyword-only arguments:
|
354
357
|
disabled: bool = False,
|
355
358
|
label_visibility: LabelVisibility = "visible",
|
359
|
+
width: WidthWithoutContent = "stretch",
|
356
360
|
) -> Any:
|
357
361
|
r"""Display a slider widget.
|
358
362
|
|
@@ -479,6 +483,8 @@ class SliderMixin:
|
|
479
483
|
label, which can help keep the widget alligned with other widgets.
|
480
484
|
If this is ``"collapsed"``, Streamlit displays no label or spacer.
|
481
485
|
|
486
|
+
width : "stretch" or pixel width
|
487
|
+
The width of the slider. The default is "stretch".
|
482
488
|
|
483
489
|
Returns
|
484
490
|
-------
|
@@ -542,6 +548,7 @@ class SliderMixin:
|
|
542
548
|
kwargs=kwargs,
|
543
549
|
disabled=disabled,
|
544
550
|
label_visibility=label_visibility,
|
551
|
+
width=width,
|
545
552
|
ctx=ctx,
|
546
553
|
)
|
547
554
|
|
@@ -561,6 +568,7 @@ class SliderMixin:
|
|
561
568
|
*, # keyword-only arguments:
|
562
569
|
disabled: bool = False,
|
563
570
|
label_visibility: LabelVisibility = "visible",
|
571
|
+
width: WidthWithoutContent = "stretch",
|
564
572
|
ctx: ScriptRunContext | None = None,
|
565
573
|
) -> SliderReturn:
|
566
574
|
key = to_key(key)
|
@@ -584,6 +592,7 @@ class SliderMixin:
|
|
584
592
|
step=step,
|
585
593
|
format=format,
|
586
594
|
help=help,
|
595
|
+
width=width,
|
587
596
|
)
|
588
597
|
|
589
598
|
SUPPORTED_TYPES = {
|
@@ -883,6 +892,14 @@ class SliderMixin:
|
|
883
892
|
slider_proto.value[:] = serialized_values
|
884
893
|
slider_proto.set_value = True
|
885
894
|
|
895
|
+
validate_width(width)
|
896
|
+
width_config = WidthConfig()
|
897
|
+
if isinstance(width, int):
|
898
|
+
width_config.pixel_width = width
|
899
|
+
else:
|
900
|
+
width_config.use_stretch = True
|
901
|
+
slider_proto.width_config.CopyFrom(width_config)
|
902
|
+
|
886
903
|
self.dg._enqueue("slider", slider_proto)
|
887
904
|
return cast("SliderReturn", widget_state.value)
|
888
905
|
|
streamlit/proto/Slider_pb2.py
CHANGED
@@ -13,9 +13,10 @@ _sym_db = _symbol_database.Default()
|
|
13
13
|
|
14
14
|
|
15
15
|
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
|
16
|
+
from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
|
16
17
|
|
17
18
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/Slider.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/Slider.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\x1a!streamlit/proto/WidthConfig.proto\"\x82\x04\n\x06Slider\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x04 \x01(\t\x12#\n\tdata_type\x18\x05 \x01(\x0e\x32\x10.Slider.DataType\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x06 \x03(\x01\x12\x0b\n\x03min\x18\x07 \x01(\x01\x12\x0b\n\x03max\x18\x08 \x01(\x01\x12\x0c\n\x04step\x18\t \x01(\x01\x12\r\n\x05value\x18\n \x03(\x01\x12\x11\n\tset_value\x18\x0b \x01(\x08\x12\x0f\n\x07options\x18\r \x03(\t\x12\x0c\n\x04help\x18\x0e \x01(\t\x12\x10\n\x08\x64isabled\x18\x0f \x01(\x08\x12\x31\n\x10label_visibility\x18\x10 \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x1a\n\x04type\x18\x11 \x01(\x0e\x32\x0c.Slider.Type\x12\x31\n\x0cwidth_config\x18\x12 \x01(\x0b\x32\x16.streamlit.WidthConfigH\x00\x88\x01\x01\"@\n\x08\x44\x61taType\x12\x07\n\x03INT\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x12\x0c\n\x08\x44\x41TETIME\x10\x02\x12\x08\n\x04\x44\x41TE\x10\x03\x12\x08\n\x04TIME\x10\x04\"6\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06SLIDER\x10\x01\x12\x11\n\rSELECT_SLIDER\x10\x02\x42\x0f\n\r_width_configB+\n\x1c\x63om.snowflake.apps.streamlitB\x0bSliderProtob\x06proto3')
|
19
20
|
|
20
21
|
_globals = globals()
|
21
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -23,10 +24,10 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Slider_pb2'
|
|
23
24
|
if not _descriptor._USE_C_DESCRIPTORS:
|
24
25
|
_globals['DESCRIPTOR']._loaded_options = None
|
25
26
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013SliderProto'
|
26
|
-
_globals['_SLIDER']._serialized_start=
|
27
|
-
_globals['_SLIDER']._serialized_end=
|
28
|
-
_globals['_SLIDER_DATATYPE']._serialized_start=
|
29
|
-
_globals['_SLIDER_DATATYPE']._serialized_end=
|
30
|
-
_globals['_SLIDER_TYPE']._serialized_start=
|
31
|
-
_globals['_SLIDER_TYPE']._serialized_end=
|
27
|
+
_globals['_SLIDER']._serialized_start=114
|
28
|
+
_globals['_SLIDER']._serialized_end=628
|
29
|
+
_globals['_SLIDER_DATATYPE']._serialized_start=491
|
30
|
+
_globals['_SLIDER_DATATYPE']._serialized_end=555
|
31
|
+
_globals['_SLIDER_TYPE']._serialized_start=557
|
32
|
+
_globals['_SLIDER_TYPE']._serialized_end=611
|
32
33
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Slider_pb2.pyi
CHANGED
@@ -24,6 +24,7 @@ import google.protobuf.internal.containers
|
|
24
24
|
import google.protobuf.internal.enum_type_wrapper
|
25
25
|
import google.protobuf.message
|
26
26
|
import streamlit.proto.LabelVisibilityMessage_pb2
|
27
|
+
import streamlit.proto.WidthConfig_pb2
|
27
28
|
import sys
|
28
29
|
import typing
|
29
30
|
|
@@ -96,6 +97,7 @@ class Slider(google.protobuf.message.Message):
|
|
96
97
|
DISABLED_FIELD_NUMBER: builtins.int
|
97
98
|
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
|
98
99
|
TYPE_FIELD_NUMBER: builtins.int
|
100
|
+
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
99
101
|
id: builtins.str
|
100
102
|
form_id: builtins.str
|
101
103
|
label: builtins.str
|
@@ -116,6 +118,8 @@ class Slider(google.protobuf.message.Message):
|
|
116
118
|
def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
117
119
|
@property
|
118
120
|
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
121
|
+
@property
|
122
|
+
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
|
119
123
|
def __init__(
|
120
124
|
self,
|
121
125
|
*,
|
@@ -135,8 +139,10 @@ class Slider(google.protobuf.message.Message):
|
|
135
139
|
disabled: builtins.bool = ...,
|
136
140
|
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
137
141
|
type: global___Slider.Type.ValueType = ...,
|
142
|
+
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
138
143
|
) -> None: ...
|
139
|
-
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
|
140
|
-
def ClearField(self, field_name: typing.Literal["data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "options", b"options", "set_value", b"set_value", "step", b"step", "type", b"type", "value", b"value"]) -> None: ...
|
144
|
+
def HasField(self, field_name: typing.Literal["_width_config", b"_width_config", "label_visibility", b"label_visibility", "width_config", b"width_config"]) -> builtins.bool: ...
|
145
|
+
def ClearField(self, field_name: typing.Literal["_width_config", b"_width_config", "data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "options", b"options", "set_value", b"set_value", "step", b"step", "type", b"type", "value", b"value", "width_config", b"width_config"]) -> None: ...
|
146
|
+
def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
|
141
147
|
|
142
148
|
global___Slider = Slider
|
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.BoUSwThS.js"></script>
|
55
55
|
<link rel="stylesheet" crossorigin href="./static/css/index.C6rq3aMZ.css">
|
56
56
|
</head>
|
57
57
|
<body>
|
@@ -1 +1 @@
|
|
1
|
-
import{r,E as a,_ as n}from"./index.
|
1
|
+
import{r,E as a,_ as n}from"./index.BoUSwThS.js";var i=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(a,n({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))});i.displayName="ErrorOutline";export{i as E};
|
@@ -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.BoUSwThS.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};
|