streamlit-nightly 1.23.2.dev20230614__py2.py3-none-any.whl → 1.23.2.dev20230616__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.
Files changed (48) hide show
  1. streamlit/elements/bokeh_chart.py +1 -1
  2. streamlit/elements/button.py +2 -2
  3. streamlit/elements/checkbox.py +1 -1
  4. streamlit/elements/color_picker.py +1 -1
  5. streamlit/elements/dataframe_selector.py +9 -9
  6. streamlit/elements/deck_gl_json_chart.py +1 -1
  7. streamlit/elements/file_uploader.py +1 -1
  8. streamlit/elements/graphviz_chart.py +1 -1
  9. streamlit/elements/image.py +1 -1
  10. streamlit/elements/json.py +1 -1
  11. streamlit/elements/layouts.py +8 -8
  12. streamlit/elements/map.py +1 -1
  13. streamlit/elements/media.py +2 -2
  14. streamlit/elements/metric.py +3 -3
  15. streamlit/elements/multiselect.py +1 -1
  16. streamlit/elements/number_input.py +1 -1
  17. streamlit/elements/plotly_chart.py +1 -1
  18. streamlit/elements/pyplot.py +1 -1
  19. streamlit/elements/radio.py +1 -1
  20. streamlit/elements/select_slider.py +1 -1
  21. streamlit/elements/selectbox.py +1 -1
  22. streamlit/elements/slider.py +1 -1
  23. streamlit/elements/text_widgets.py +1 -1
  24. streamlit/elements/time_widgets.py +2 -2
  25. streamlit/elements/write.py +4 -4
  26. streamlit/static/asset-manifest.json +12 -12
  27. streamlit/static/index.html +1 -1
  28. streamlit/static/static/js/152.8a8de437.chunk.js +1 -0
  29. streamlit/static/static/js/{193.fadcc261.chunk.js → 193.1c52ebb6.chunk.js} +1 -1
  30. streamlit/static/static/js/{218.0d4d62db.chunk.js → 218.d491cc46.chunk.js} +1 -1
  31. streamlit/static/static/js/{264.7fbcdc79.chunk.js → 264.febae9f9.chunk.js} +1 -1
  32. streamlit/static/static/js/{360.d5702520.chunk.js → 360.c244fd8f.chunk.js} +1 -1
  33. streamlit/static/static/js/{438.0ad5b74e.chunk.js → 438.ee77ce1e.chunk.js} +1 -1
  34. streamlit/static/static/js/{501.b3803aff.chunk.js → 501.4b750516.chunk.js} +1 -1
  35. streamlit/static/static/js/{57.a896f911.chunk.js → 57.5b9abeed.chunk.js} +1 -1
  36. streamlit/static/static/js/669.3c5fb93c.chunk.js +1 -0
  37. streamlit/static/static/js/{812.05251947.chunk.js → 812.d1d7babd.chunk.js} +1 -1
  38. streamlit/static/static/js/main.fb4837b4.js +2 -0
  39. {streamlit_nightly-1.23.2.dev20230614.dist-info → streamlit_nightly-1.23.2.dev20230616.dist-info}/METADATA +1 -1
  40. {streamlit_nightly-1.23.2.dev20230614.dist-info → streamlit_nightly-1.23.2.dev20230616.dist-info}/RECORD +45 -45
  41. streamlit/static/static/js/138.9ade8451.chunk.js +0 -1
  42. streamlit/static/static/js/152.1b2233cc.chunk.js +0 -1
  43. streamlit/static/static/js/main.f179077b.js +0 -2
  44. /streamlit/static/static/js/{main.f179077b.js.LICENSE.txt → main.fb4837b4.js.LICENSE.txt} +0 -0
  45. {streamlit_nightly-1.23.2.dev20230614.data → streamlit_nightly-1.23.2.dev20230616.data}/scripts/streamlit.cmd +0 -0
  46. {streamlit_nightly-1.23.2.dev20230614.dist-info → streamlit_nightly-1.23.2.dev20230616.dist-info}/WHEEL +0 -0
  47. {streamlit_nightly-1.23.2.dev20230614.dist-info → streamlit_nightly-1.23.2.dev20230616.dist-info}/entry_points.txt +0 -0
  48. {streamlit_nightly-1.23.2.dev20230614.dist-info → streamlit_nightly-1.23.2.dev20230616.dist-info}/top_level.txt +0 -0
@@ -75,7 +75,7 @@ class BokehMixin:
75
75
  >>> st.bokeh_chart(p, use_container_width=True)
76
76
 
77
77
  .. output::
78
- https://doc-bokeh-chart.streamlitapp.com/
78
+ https://doc-bokeh-chart.streamlit.app/
79
79
  height: 700px
80
80
 
81
81
  """
@@ -138,7 +138,7 @@ class ButtonMixin:
138
138
  ... st.write('Goodbye')
139
139
 
140
140
  .. output::
141
- https://doc-buton.streamlitapp.com/
141
+ https://doc-buton.streamlit.app/
142
142
  height: 220px
143
143
 
144
144
  """
@@ -303,7 +303,7 @@ class ButtonMixin:
303
303
  ... )
304
304
 
305
305
  .. output::
306
- https://doc-download-buton.streamlitapp.com/
306
+ https://doc-download-buton.streamlit.app/
307
307
  height: 335px
308
308
 
309
309
  """
@@ -129,7 +129,7 @@ class CheckboxMixin:
129
129
  ... st.write('Great!')
130
130
 
131
131
  .. output::
132
- https://doc-checkbox.streamlitapp.com/
132
+ https://doc-checkbox.streamlit.app/
133
133
  height: 220px
134
134
 
135
135
  """
@@ -133,7 +133,7 @@ class ColorPickerMixin:
133
133
  >>> st.write('The current color is', color)
134
134
 
135
135
  .. output::
136
- https://doc-color-picker.streamlitapp.com/
136
+ https://doc-color-picker.streamlit.app/
137
137
  height: 335px
138
138
 
139
139
  """
@@ -120,7 +120,7 @@ class DataFrameSelectorMixin:
120
120
  >>> st.dataframe(df) # Same as st.write(df)
121
121
 
122
122
  .. output::
123
- https://doc-dataframe.streamlitapp.com/
123
+ https://doc-dataframe.streamlit.app/
124
124
  height: 410px
125
125
 
126
126
  You can also pass a Pandas Styler object to change the style of
@@ -137,7 +137,7 @@ class DataFrameSelectorMixin:
137
137
  >>> st.dataframe(df.style.highlight_max(axis=0))
138
138
 
139
139
  .. output::
140
- https://doc-dataframe1.streamlitapp.com/
140
+ https://doc-dataframe1.streamlit.app/
141
141
  height: 410px
142
142
 
143
143
  Or you can customize the dataframe via ``column_config``, ``hide_index``, or ``column_order``:
@@ -172,7 +172,7 @@ class DataFrameSelectorMixin:
172
172
  >>> )
173
173
 
174
174
  .. output::
175
- https://doc-dataframe-config.streamlitapp.com/
175
+ https://doc-dataframe-config.streamlit.app/
176
176
  height: 350px
177
177
 
178
178
  """
@@ -218,7 +218,7 @@ class DataFrameSelectorMixin:
218
218
  >>> st.table(df)
219
219
 
220
220
  .. output::
221
- https://doc-table.streamlitapp.com/
221
+ https://doc-table.streamlit.app/
222
222
  height: 480px
223
223
 
224
224
  """
@@ -293,7 +293,7 @@ class DataFrameSelectorMixin:
293
293
  >>> st.line_chart(chart_data)
294
294
 
295
295
  .. output::
296
- https://doc-line-chart.streamlitapp.com/
296
+ https://doc-line-chart.streamlit.app/
297
297
  height: 400px
298
298
 
299
299
  """
@@ -380,7 +380,7 @@ class DataFrameSelectorMixin:
380
380
  >>> st.area_chart(chart_data)
381
381
 
382
382
  .. output::
383
- https://doc-area-chart.streamlitapp.com/
383
+ https://doc-area-chart.streamlit.app/
384
384
  height: 400px
385
385
 
386
386
  """
@@ -467,7 +467,7 @@ class DataFrameSelectorMixin:
467
467
  >>> st.bar_chart(chart_data)
468
468
 
469
469
  .. output::
470
- https://doc-bar-chart.streamlitapp.com/
470
+ https://doc-bar-chart.streamlit.app/
471
471
  height: 400px
472
472
 
473
473
  """
@@ -532,7 +532,7 @@ class DataFrameSelectorMixin:
532
532
  https://altair-viz.github.io/gallery/.
533
533
 
534
534
  .. output::
535
- https://doc-vega-lite-chart.streamlitapp.com/
535
+ https://doc-vega-lite-chart.streamlit.app/
536
536
  height: 300px
537
537
 
538
538
  """
@@ -600,7 +600,7 @@ class DataFrameSelectorMixin:
600
600
  ... })
601
601
 
602
602
  .. output::
603
- https://doc-vega-lite-chart.streamlitapp.com/
603
+ https://doc-vega-lite-chart.streamlit.app/
604
604
  height: 300px
605
605
 
606
606
  Examples of Vega-Lite usage without Streamlit can be found at
@@ -113,7 +113,7 @@ class PydeckMixin:
113
113
  ... ))
114
114
 
115
115
  .. output::
116
- https://doc-pydeck-chart.streamlitapp.com/
116
+ https://doc-pydeck-chart.streamlit.app/
117
117
  height: 530px
118
118
 
119
119
  .. note::
@@ -349,7 +349,7 @@ class FileUploaderMixin:
349
349
  ... st.write(bytes_data)
350
350
 
351
351
  .. output::
352
- https://doc-file-uploader.streamlitapp.com/
352
+ https://doc-file-uploader.streamlit.app/
353
353
  height: 375px
354
354
 
355
355
  """
@@ -98,7 +98,7 @@ class GraphvizMixin:
98
98
  ''')
99
99
 
100
100
  .. output::
101
- https://doc-graphviz-chart.streamlitapp.com/
101
+ https://doc-graphviz-chart.streamlit.app/
102
102
  height: 600px
103
103
 
104
104
  """
@@ -151,7 +151,7 @@ class ImageMixin:
151
151
  >>> st.image(image, caption='Sunrise by the mountains')
152
152
 
153
153
  .. output::
154
- https://doc-image.streamlitapp.com/
154
+ https://doc-image.streamlit.app/
155
155
  height: 710px
156
156
 
157
157
  """
@@ -69,7 +69,7 @@ class JsonMixin:
69
69
  ... })
70
70
 
71
71
  .. output::
72
- https://doc-json.streamlitapp.com/
72
+ https://doc-json.streamlit.app/
73
73
  height: 385px
74
74
 
75
75
  """
@@ -53,7 +53,7 @@ class LayoutsMixin:
53
53
  >>> st.write("This is outside the container")
54
54
 
55
55
  .. output ::
56
- https://doc-container1.streamlitapp.com/
56
+ https://doc-container1.streamlit.app/
57
57
  height: 520px
58
58
 
59
59
  Inserting elements out of order:
@@ -68,7 +68,7 @@ class LayoutsMixin:
68
68
  >>> container.write("This is inside too")
69
69
 
70
70
  .. output ::
71
- https://doc-container2.streamlitapp.com/
71
+ https://doc-container2.streamlit.app/
72
72
  height: 480px
73
73
  """
74
74
  return self.dg._block()
@@ -135,7 +135,7 @@ class LayoutsMixin:
135
135
  ... st.image("https://static.streamlit.io/examples/owl.jpg")
136
136
 
137
137
  .. output ::
138
- https://doc-columns1.streamlitapp.com/
138
+ https://doc-columns1.streamlit.app/
139
139
  height: 620px
140
140
 
141
141
  Or you can just call methods directly in the returned objects:
@@ -153,7 +153,7 @@ class LayoutsMixin:
153
153
  >>> col2.write(data)
154
154
 
155
155
  .. output ::
156
- https://doc-columns2.streamlitapp.com/
156
+ https://doc-columns2.streamlit.app/
157
157
  height: 550px
158
158
 
159
159
  """
@@ -270,7 +270,7 @@ class LayoutsMixin:
270
270
  ... st.image("https://static.streamlit.io/examples/owl.jpg", width=200)
271
271
 
272
272
  .. output ::
273
- https://doc-tabs1.streamlitapp.com/
273
+ https://doc-tabs1.streamlit.app/
274
274
  height: 620px
275
275
 
276
276
  Or you can just call methods directly in the returned objects:
@@ -289,7 +289,7 @@ class LayoutsMixin:
289
289
 
290
290
 
291
291
  .. output ::
292
- https://doc-tabs2.streamlitapp.com/
292
+ https://doc-tabs2.streamlit.app/
293
293
  height: 700px
294
294
 
295
295
  """
@@ -374,7 +374,7 @@ class LayoutsMixin:
374
374
  ... st.image("https://static.streamlit.io/examples/dice.jpg")
375
375
 
376
376
  .. output ::
377
- https://doc-expander.streamlitapp.com/
377
+ https://doc-expander.streamlit.app/
378
378
  height: 750px
379
379
 
380
380
  Or you can just call methods directly in the returned objects:
@@ -392,7 +392,7 @@ class LayoutsMixin:
392
392
  >>> expander.image("https://static.streamlit.io/examples/dice.jpg")
393
393
 
394
394
  .. output ::
395
- https://doc-expander.streamlitapp.com/
395
+ https://doc-expander.streamlit.app/
396
396
  height: 750px
397
397
 
398
398
  """
streamlit/elements/map.py CHANGED
@@ -125,7 +125,7 @@ class MapMixin:
125
125
  >>> st.map(df)
126
126
 
127
127
  .. output::
128
- https://doc-map.streamlitapp.com/
128
+ https://doc-map.streamlit.app/
129
129
  height: 650px
130
130
 
131
131
  """
@@ -91,7 +91,7 @@ class MediaMixin:
91
91
  >>> st.audio(note_la, sample_rate=sample_rate)
92
92
 
93
93
  .. output::
94
- https://doc-audio.streamlitapp.com/
94
+ https://doc-audio.streamlit.app/
95
95
  height: 865px
96
96
 
97
97
  """
@@ -146,7 +146,7 @@ class MediaMixin:
146
146
  >>> st.video(video_bytes)
147
147
 
148
148
  .. output::
149
- https://doc-video.streamlitapp.com/
149
+ https://doc-video.streamlit.app/
150
150
  height: 700px
151
151
 
152
152
  .. note::
@@ -113,7 +113,7 @@ class MetricMixin:
113
113
  >>> st.metric(label="Temperature", value="70 °F", delta="1.2 °F")
114
114
 
115
115
  .. output::
116
- https://doc-metric-example1.streamlitapp.com/
116
+ https://doc-metric-example1.streamlit.app/
117
117
  height: 210px
118
118
 
119
119
  ``st.metric`` looks especially nice in combination with ``st.columns``:
@@ -126,7 +126,7 @@ class MetricMixin:
126
126
  >>> col3.metric("Humidity", "86%", "4%")
127
127
 
128
128
  .. output::
129
- https://doc-metric-example2.streamlitapp.com/
129
+ https://doc-metric-example2.streamlit.app/
130
130
  height: 210px
131
131
 
132
132
  The delta indicator color can also be inverted or turned off:
@@ -140,7 +140,7 @@ class MetricMixin:
140
140
  ... delta_color="off")
141
141
 
142
142
  .. output::
143
- https://doc-metric-example3.streamlitapp.com/
143
+ https://doc-metric-example3.streamlit.app/
144
144
  height: 320px
145
145
 
146
146
  """
@@ -243,7 +243,7 @@ class MultiSelectMixin:
243
243
  >>> st.write('You selected:', options)
244
244
 
245
245
  .. output::
246
- https://doc-multiselect.streamlitapp.com/
246
+ https://doc-multiselect.streamlit.app/
247
247
  height: 420px
248
248
 
249
249
  """
@@ -171,7 +171,7 @@ class NumberInputMixin:
171
171
  >>> st.write('The current number is ', number)
172
172
 
173
173
  .. output::
174
- https://doc-number-input.streamlitapp.com/
174
+ https://doc-number-input.streamlit.app/
175
175
  height: 260px
176
176
 
177
177
  """
@@ -147,7 +147,7 @@ class PlotlyMixin:
147
147
  >>> st.plotly_chart(fig, use_container_width=True)
148
148
 
149
149
  .. output::
150
- https://doc-plotly-chart.streamlitapp.com/
150
+ https://doc-plotly-chart.streamlit.app/
151
151
  height: 400px
152
152
 
153
153
  """
@@ -81,7 +81,7 @@ class PyplotMixin:
81
81
  >>> st.pyplot(fig)
82
82
 
83
83
  .. output::
84
- https://doc-pyplot.streamlitapp.com/
84
+ https://doc-pyplot.streamlit.app/
85
85
  height: 630px
86
86
 
87
87
  Notes
@@ -176,7 +176,7 @@ class RadioMixin:
176
176
  ... st.write("You didn\'t select comedy.")
177
177
 
178
178
  .. output::
179
- https://doc-radio.streamlitapp.com/
179
+ https://doc-radio.streamlit.app/
180
180
  height: 260px
181
181
 
182
182
  """
@@ -220,7 +220,7 @@ class SelectSliderMixin:
220
220
  >>> st.write('You selected wavelengths between', start_color, 'and', end_color)
221
221
 
222
222
  .. output::
223
- https://doc-select-slider.streamlitapp.com/
223
+ https://doc-select-slider.streamlit.app/
224
224
  height: 450px
225
225
 
226
226
  """
@@ -160,7 +160,7 @@ class SelectboxMixin:
160
160
  >>> st.write('You selected:', option)
161
161
 
162
162
  .. output::
163
- https://doc-selectbox.streamlitapp.com/
163
+ https://doc-selectbox.streamlit.app/
164
164
  height: 320px
165
165
 
166
166
  """
@@ -329,7 +329,7 @@ class SliderMixin:
329
329
  >>> st.write("Start time:", start_time)
330
330
 
331
331
  .. output::
332
- https://doc-slider.streamlitapp.com/
332
+ https://doc-slider.streamlit.app/
333
333
  height: 300px
334
334
 
335
335
  """
@@ -168,7 +168,7 @@ class TextWidgetsMixin:
168
168
  >>> st.write('The current movie title is', title)
169
169
 
170
170
  .. output::
171
- https://doc-text-input.streamlitapp.com/
171
+ https://doc-text-input.streamlit.app/
172
172
  height: 260px
173
173
 
174
174
  """
@@ -297,7 +297,7 @@ class TimeWidgetsMixin:
297
297
  >>> st.write('Alarm is set for', t)
298
298
 
299
299
  .. output::
300
- https://doc-time-input.streamlitapp.com/
300
+ https://doc-time-input.streamlit.app/
301
301
  height: 260px
302
302
 
303
303
  """
@@ -489,7 +489,7 @@ class TimeWidgetsMixin:
489
489
  >>> st.write('Your birthday is:', d)
490
490
 
491
491
  .. output::
492
- https://doc-date-input.streamlitapp.com/
492
+ https://doc-date-input.streamlit.app/
493
493
  height: 260px
494
494
 
495
495
  """
@@ -108,7 +108,7 @@ class WriteMixin:
108
108
  >>> st.write('Hello, *World!* :sunglasses:')
109
109
 
110
110
  .. output::
111
- https://doc-write1.streamlitapp.com/
111
+ https://doc-write1.streamlit.app/
112
112
  height: 150px
113
113
 
114
114
  As mentioned earlier, ``st.write()`` also accepts other data formats, such as
@@ -124,7 +124,7 @@ class WriteMixin:
124
124
  ... }))
125
125
 
126
126
  .. output::
127
- https://doc-write2.streamlitapp.com/
127
+ https://doc-write2.streamlit.app/
128
128
  height: 350px
129
129
 
130
130
  Finally, you can pass in multiple arguments to do things like:
@@ -135,7 +135,7 @@ class WriteMixin:
135
135
  >>> st.write('Below is a DataFrame:', data_frame, 'Above is a dataframe.')
136
136
 
137
137
  .. output::
138
- https://doc-write3.streamlitapp.com/
138
+ https://doc-write3.streamlit.app/
139
139
  height: 410px
140
140
 
141
141
  Oh, one more thing: ``st.write`` accepts chart objects too! For example:
@@ -155,7 +155,7 @@ class WriteMixin:
155
155
  >>> st.write(c)
156
156
 
157
157
  .. output::
158
- https://doc-vega-lite-chart.streamlitapp.com/
158
+ https://doc-vega-lite-chart.streamlit.app/
159
159
  height: 300px
160
160
 
161
161
  """
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.f4a8738f.css",
4
- "main.js": "./static/js/main.f179077b.js",
4
+ "main.js": "./static/js/main.fb4837b4.js",
5
5
  "static/js/464.53a4cca5.chunk.js": "./static/js/464.53a4cca5.chunk.js",
6
6
  "static/js/480.ace5e591.chunk.js": "./static/js/480.ace5e591.chunk.js",
7
7
  "static/js/441.18a5aa7a.chunk.js": "./static/js/441.18a5aa7a.chunk.js",
8
8
  "static/js/329.8b7f8f94.chunk.js": "./static/js/329.8b7f8f94.chunk.js",
9
9
  "static/css/57.23fa976d.chunk.css": "./static/css/57.23fa976d.chunk.css",
10
- "static/js/57.a896f911.chunk.js": "./static/js/57.a896f911.chunk.js",
11
- "static/js/218.0d4d62db.chunk.js": "./static/js/218.0d4d62db.chunk.js",
10
+ "static/js/57.5b9abeed.chunk.js": "./static/js/57.5b9abeed.chunk.js",
11
+ "static/js/218.d491cc46.chunk.js": "./static/js/218.d491cc46.chunk.js",
12
12
  "static/js/695.1b40a7eb.chunk.js": "./static/js/695.1b40a7eb.chunk.js",
13
13
  "static/js/320.7596e629.chunk.js": "./static/js/320.7596e629.chunk.js",
14
14
  "static/js/376.14adb166.chunk.js": "./static/js/376.14adb166.chunk.js",
@@ -20,21 +20,21 @@
20
20
  "static/js/47.4acdcfba.chunk.js": "./static/js/47.4acdcfba.chunk.js",
21
21
  "static/js/274.32c3b5b8.chunk.js": "./static/js/274.32c3b5b8.chunk.js",
22
22
  "static/js/633.a03f170b.chunk.js": "./static/js/633.a03f170b.chunk.js",
23
- "static/js/438.0ad5b74e.chunk.js": "./static/js/438.0ad5b74e.chunk.js",
24
- "static/js/264.7fbcdc79.chunk.js": "./static/js/264.7fbcdc79.chunk.js",
23
+ "static/js/438.ee77ce1e.chunk.js": "./static/js/438.ee77ce1e.chunk.js",
24
+ "static/js/264.febae9f9.chunk.js": "./static/js/264.febae9f9.chunk.js",
25
25
  "static/js/297.028543f3.chunk.js": "./static/js/297.028543f3.chunk.js",
26
- "static/js/360.d5702520.chunk.js": "./static/js/360.d5702520.chunk.js",
27
- "static/js/152.1b2233cc.chunk.js": "./static/js/152.1b2233cc.chunk.js",
26
+ "static/js/360.c244fd8f.chunk.js": "./static/js/360.c244fd8f.chunk.js",
27
+ "static/js/152.8a8de437.chunk.js": "./static/js/152.8a8de437.chunk.js",
28
28
  "static/js/188.33be9bc1.chunk.js": "./static/js/188.33be9bc1.chunk.js",
29
29
  "static/js/513.8d7143d4.chunk.js": "./static/js/513.8d7143d4.chunk.js",
30
- "static/js/193.fadcc261.chunk.js": "./static/js/193.fadcc261.chunk.js",
30
+ "static/js/193.1c52ebb6.chunk.js": "./static/js/193.1c52ebb6.chunk.js",
31
31
  "static/js/645.468e4126.chunk.js": "./static/js/645.468e4126.chunk.js",
32
32
  "static/js/533.c7cafb3e.chunk.js": "./static/js/533.c7cafb3e.chunk.js",
33
- "static/js/501.b3803aff.chunk.js": "./static/js/501.b3803aff.chunk.js",
33
+ "static/js/501.4b750516.chunk.js": "./static/js/501.4b750516.chunk.js",
34
34
  "static/js/788.36626b66.chunk.js": "./static/js/788.36626b66.chunk.js",
35
35
  "static/js/857.de8a66f9.chunk.js": "./static/js/857.de8a66f9.chunk.js",
36
36
  "static/js/211.ae08149e.chunk.js": "./static/js/211.ae08149e.chunk.js",
37
- "static/js/812.05251947.chunk.js": "./static/js/812.05251947.chunk.js",
37
+ "static/js/812.d1d7babd.chunk.js": "./static/js/812.d1d7babd.chunk.js",
38
38
  "static/js/505.b1b0aa9e.chunk.js": "./static/js/505.b1b0aa9e.chunk.js",
39
39
  "static/js/432.fd437391.chunk.js": "./static/js/432.fd437391.chunk.js",
40
40
  "static/js/998.983f28f4.chunk.js": "./static/js/998.983f28f4.chunk.js",
@@ -47,7 +47,7 @@
47
47
  "static/js/217.053016d7.chunk.js": "./static/js/217.053016d7.chunk.js",
48
48
  "static/js/390.6e5c8cf7.chunk.js": "./static/js/390.6e5c8cf7.chunk.js",
49
49
  "static/js/425.b72a500c.chunk.js": "./static/js/425.b72a500c.chunk.js",
50
- "static/js/138.9ade8451.chunk.js": "./static/js/138.9ade8451.chunk.js",
50
+ "static/js/669.3c5fb93c.chunk.js": "./static/js/669.3c5fb93c.chunk.js",
51
51
  "static/js/800.6fb0fba3.chunk.js": "./static/js/800.6fb0fba3.chunk.js",
52
52
  "static/js/292.90b945e6.chunk.js": "./static/js/292.90b945e6.chunk.js",
53
53
  "static/js/713.a6d5d9bb.chunk.js": "./static/js/713.a6d5d9bb.chunk.js",
@@ -143,6 +143,6 @@
143
143
  },
144
144
  "entrypoints": [
145
145
  "static/css/main.f4a8738f.css",
146
- "static/js/main.f179077b.js"
146
+ "static/js/main.fb4837b4.js"
147
147
  ]
148
148
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.f179077b.js"></script><link href="./static/css/main.f4a8738f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.fb4837b4.js"></script><link href="./static/css/main.f4a8738f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -0,0 +1 @@
1
+ (self.webpackChunkstreamlit_browser=self.webpackChunkstreamlit_browser||[]).push([[152],{68152:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=n(15671),o=n(43144),i=n(60136),a=n(29388),l=n(47313),s=n(34862),u=n(38587),c=n.n(u),p=n(83985),d=n(55982),f=n(77843),m=n(85540),h=n(58325),v=n(72708),g=(0,n(47167).Z)("div",{target:"e10apx9u0"})((function(e){return{"span[aria-disabled='true']":{background:e.theme.colors.fadedText05}}}),""),y=n(20300),b=n(23970),x=n(6335),S=n(2464),w=n(17453),k=n(46417),C=function(e){(0,i.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).formClearHelper=new d.Kz,e.state={value:e.initialValue},e.commitWidgetValue=function(t){e.props.widgetMgr.setIntArrayValue(e.props.element,e.state.value,t)},e.onFormCleared=function(){e.setState((function(e,t){return{value:t.element.default}}),(function(){return e.commitWidgetValue({fromUi:!0})}))},e.onChange=function(t){e.props.element.maxSelections&&"select"===t.type&&e.state.value.length>=e.props.element.maxSelections||e.setState(e.generateNewState(t),(function(){e.commitWidgetValue({fromUi:!0})}))},e.filterOptions=function(t,n){if(e.overMaxSelections())return[];var r=t.filter((function(t){return!e.state.value.includes(Number(t.value))}));return(0,S.H)(r,n)},e}return(0,o.Z)(n,[{key:"overMaxSelections",value:function(){return this.props.element.maxSelections>0&&this.state.value.length>=this.props.element.maxSelections}},{key:"getNoResultsMsg",value:function(){if(0===this.props.element.maxSelections)return"No results";var e=1!==this.props.element.maxSelections?"options":"option";return"You can only select up to ".concat(this.props.element.maxSelections," ").concat(e,". Remove an option first.")}},{key:"initialValue",get:function(){var e=this.props.widgetMgr.getIntArrayValue(this.props.element);return void 0!==e?e:this.props.element.default}},{key:"componentDidMount",value:function(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}},{key:"componentDidUpdate",value:function(){this.maybeUpdateFromProtobuf()}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maybeUpdateFromProtobuf",value:function(){this.props.element.setValue&&this.updateFromProtobuf()}},{key:"updateFromProtobuf",value:function(){var e=this,t=this.props.element.value;this.props.element.setValue=!1,this.setState({value:t},(function(){e.commitWidgetValue({fromUi:!1})}))}},{key:"valueFromState",get:function(){var e=this;return this.state.value.map((function(t){var n=e.props.element.options[t];return{value:t.toString(),label:n}}))}},{key:"generateNewState",value:function(e){var t=function(){var t,n=null===(t=e.option)||void 0===t?void 0:t.value;return parseInt(n,10)};switch(e.type){case"remove":return{value:c()(this.state.value,t())};case"clear":return{value:[]};case"select":return{value:this.state.value.concat([t()])};default:throw new Error("State transition is unknown: ".concat(e.type))}}},{key:"render",value:function(){var e,t=this.props,n=t.element,r=t.theme,o=t.width,i=t.widgetMgr,a={width:o},l=n.options,u=0===l.length||this.props.disabled,c=0===l.length?"No options to select.":"Choose an option",p=l.map((function(e,t){return{label:e,value:t.toString()}}));this.formClearHelper.manageFormClearListener(i,n.formId,this.onFormCleared);var d=l.length>10;return(0,k.jsxs)("div",{className:"row-widget stMultiSelect",style:a,children:[(0,k.jsx)(v.ON,{label:n.label,disabled:u,labelVisibility:(0,w.iF)(null===(e=n.labelVisibility)||void 0===e?void 0:e.value),children:n.help&&(0,k.jsx)(v.dT,{children:(0,k.jsx)(y.ZP,{content:n.help,placement:b.ug.TOP_RIGHT})})}),(0,k.jsx)(g,{children:(0,k.jsx)(m.Z,{options:p,labelKey:"label",valueKey:"value","aria-label":n.label,placeholder:c,type:h.wD.select,multi:!0,onChange:this.onChange,value:this.valueFromState,disabled:u,size:"compact",noResultsMsg:this.getNoResultsMsg(),filterOptions:this.filterOptions,closeOnSelect:!1,overrides:{SelectArrow:{component:f.Z,props:{overrides:{Svg:{style:function(){return{width:r.iconSizes.xl,height:r.iconSizes.xl}}}}}},IconsContainer:{style:function(){return{paddingRight:r.spacing.sm}}},ControlContainer:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},Placeholder:{style:function(){return{flex:"inherit"}}},ValueContainer:{style:function(){return{minHeight:"38.4px",paddingLeft:r.spacing.sm,paddingTop:0,paddingBottom:0,paddingRight:0}}},ClearIcon:{props:{overrides:{Svg:{style:{color:r.colors.darkGray,transform:"scale(1.5)",width:r.spacing.twoXL,":hover":{fill:r.colors.bodyText}}}}}},SearchIcon:{style:{color:r.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:r.radii.md,borderTopRightRadius:r.radii.md,borderBottomRightRadius:r.radii.md,borderBottomLeftRadius:r.radii.md,fontSize:r.fontSizes.sm,paddingLeft:r.spacing.sm,marginLeft:0,marginRight:r.spacing.sm,height:"28px"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"10px",height:"10px"}}}}},Text:{style:{fontSize:r.fontSizes.md}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:r.fontSizes.sm}}}}},Input:{props:{readOnly:s.tq&&!1===d?"readonly":null}},Dropdown:{component:x.s}}})})]})}}]),n}(l.PureComponent),R=(0,p.b)(C)},34405:function(e,t,n){var r=n(99038);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},86722:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},29131:function(e,t,n){var r=n(44526),o=n(34405),i=n(86722),a=n(95434),l=n(36902),s=n(88905);e.exports=function(e,t,n,u){var c=-1,p=o,d=!0,f=e.length,m=[],h=t.length;if(!f)return m;n&&(t=a(t,l(n))),u?(p=i,d=!1):t.length>=200&&(p=s,d=!1,t=new r(t));e:for(;++c<f;){var v=e[c],g=null==n?v:n(v);if(v=u||0!==v?v:0,d&&g===g){for(var y=h;y--;)if(t[y]===g)continue e;m.push(v)}else p(t,g,u)||m.push(v)}return m}},93527:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},99038:function(e,t,n){var r=n(93527),o=n(57700),i=n(13245);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},57700:function(e){e.exports=function(e){return e!==e}},13245:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},38587:function(e,t,n){var r=n(29131),o=n(44409),i=n(79312),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a}}]);