streamlit-nightly 1.26.1.dev20230913__py2.py3-none-any.whl → 1.26.1.dev20230915__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/elements/dataframe_selector.py +139 -158
- streamlit/elements/pyplot.py +1 -1
- streamlit/elements/widgets/button.py +14 -0
- streamlit/elements/widgets/number_input.py +25 -18
- streamlit/elements/widgets/selectbox.py +4 -3
- streamlit/elements/widgets/text_widgets.py +14 -8
- streamlit/proto/NumberInput_pb2.py +4 -4
- streamlit/runtime/metrics_util.py +9 -0
- streamlit/runtime/state/__init__.py +0 -1
- streamlit/runtime/state/widgets.py +0 -4
- streamlit/static/asset-manifest.json +6 -6
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/1451.76174eea.chunk.js +1 -0
- streamlit/static/static/js/{4436.0d12b4f4.chunk.js → 4436.9b8d7cb9.chunk.js} +1 -1
- streamlit/static/static/js/4666.29813cd1.chunk.js +1 -0
- streamlit/static/static/js/7175.1af60fa9.chunk.js +1 -0
- streamlit/static/static/js/main.2ba402e0.js +2 -0
- {streamlit_nightly-1.26.1.dev20230913.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.26.1.dev20230913.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/RECORD +24 -24
- streamlit/static/static/js/1451.20b10c89.chunk.js +0 -1
- streamlit/static/static/js/4666.fe4ef587.chunk.js +0 -1
- streamlit/static/static/js/7175.2ddee0f1.chunk.js +0 -1
- streamlit/static/static/js/main.09593ed4.js +0 -2
- /streamlit/static/static/js/{main.09593ed4.js.LICENSE.txt → main.2ba402e0.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.26.1.dev20230913.data → streamlit_nightly-1.26.1.dev20230915.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.26.1.dev20230913.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.26.1.dev20230913.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.26.1.dev20230913.dist-info → streamlit_nightly-1.26.1.dev20230915.dist-info}/top_level.txt +0 -0
@@ -53,7 +53,7 @@ streamlit/elements/arrow_vega_lite.py,sha256=-mFJd6neq6okPDvX7Mj6JvH_pVatk2IIHZD
|
|
53
53
|
streamlit/elements/balloons.py,sha256=ivpqNv0PLw6wJDz9Fl1T0zC3r-QLpL0BYMPvs0S2gFg,1445
|
54
54
|
streamlit/elements/bokeh_chart.py,sha256=q0oDLsMwdHjkTAyGMaSXH6BvoeglwfofT8q5fRQ2DKY,3853
|
55
55
|
streamlit/elements/code.py,sha256=MWmsSNPtYtVuaqD-GJFIeoc8GETXyz6Xgu5AiBFlqYo,2452
|
56
|
-
streamlit/elements/dataframe_selector.py,sha256=
|
56
|
+
streamlit/elements/dataframe_selector.py,sha256=qvDkE52aakUxsvqEpVg-7X5nJFssfoAD8DOS_HS4pjs,44403
|
57
57
|
streamlit/elements/deck_gl_json_chart.py,sha256=BiigenZVcOvLYxUPAHDPCiM5BzLrgWdrjT_bp_6jgjo,6091
|
58
58
|
streamlit/elements/doc_string.py,sha256=0cyfzrAAq6Jj4suq-1ROMVNSmNhOT02C7RWfMeczth0,15922
|
59
59
|
streamlit/elements/empty.py,sha256=Uq8i2Lr_PPa2As97dQFaHvmsp4sFQnkxl940rHY9pDo,2598
|
@@ -74,7 +74,7 @@ streamlit/elements/media.py,sha256=O66DMCzdoOTfEACPjUlxy5CNZ_BqFVQGlzcsbxCKp8I,1
|
|
74
74
|
streamlit/elements/metric.py,sha256=qUM_FTHT2hqeQeaab_I0di5sjKfL_Mh6nMmbAmov0rA,9924
|
75
75
|
streamlit/elements/plotly_chart.py,sha256=OxzKdlLpM5URPDy7RMpRvLobwPX9VWhUEyfKF3JpQi4,8820
|
76
76
|
streamlit/elements/progress.py,sha256=xTfe-a-Z-FOVCWyFbGDflxgj_HcTLOcJgbldrbjZzwc,4753
|
77
|
-
streamlit/elements/pyplot.py,sha256=
|
77
|
+
streamlit/elements/pyplot.py,sha256=MemqmlKfuzASt7BV7RuvX9rD9Xftosmde42w9M6hjGo,6573
|
78
78
|
streamlit/elements/snow.py,sha256=HM26jOst6tTMVkVhHD_KiED34o_mT6yyj8hBW923hwI,1402
|
79
79
|
streamlit/elements/spinner.py,sha256=Ybhx_KXvImj3EXwgRoeZtE5yil_G_iN6hq-Xn1qUhbg,3789
|
80
80
|
streamlit/elements/text.py,sha256=2lKwoOX07RoCxxf6tytLgyowCmyiSy-R1Y1N7aAlqd4,1834
|
@@ -89,7 +89,7 @@ streamlit/elements/lib/mutable_status_container.py,sha256=fDUy2pVmE6Q0FLMEmAdZ0l
|
|
89
89
|
streamlit/elements/lib/pandas_styler_utils.py,sha256=50xFrj1ekuyy3v2otyzPXVWagwMKSYFzPdxlyUws45g,8010
|
90
90
|
streamlit/elements/lib/streamlit_plotly_theme.py,sha256=41om2HXfsORlLqHjBDamr8dkKyrBm2ZixnR1NRcck3Q,6407
|
91
91
|
streamlit/elements/widgets/__init__.py,sha256=LTDGDB-ahkVmBP0P6YP2tyR5e1QTnVTSb1f3yZWi7go,611
|
92
|
-
streamlit/elements/widgets/button.py,sha256=
|
92
|
+
streamlit/elements/widgets/button.py,sha256=fL-zWqoi63uBqCyqh10Dnx9SIhtzZTyWJAYrFrtfHa8,23803
|
93
93
|
streamlit/elements/widgets/camera_input.py,sha256=Qf7RS5lNnwP_ljEbhw4Uc2thphdLqca8f0ExHXLFg6A,8929
|
94
94
|
streamlit/elements/widgets/chat.py,sha256=IMT092F6MTFzNnipoqNePF-iQ8Bah_I375ypcYirqEA,12381
|
95
95
|
streamlit/elements/widgets/checkbox.py,sha256=oLGbiOdYA4x4rK-qIaCfxvSQVIujZeY_zfjmWRGd39k,12284
|
@@ -97,12 +97,12 @@ streamlit/elements/widgets/color_picker.py,sha256=OlGgngEU_MbYzRvVOArGiLPlqiJvFq
|
|
97
97
|
streamlit/elements/widgets/data_editor.py,sha256=sgsFliLfPoEwz7HehQu58V5yoXzCVhMxwRRoNOFcelM,33607
|
98
98
|
streamlit/elements/widgets/file_uploader.py,sha256=xO2LfOPjrOTtuDwAvoNvV4b31TW6h4BaOP-8vll6phI,17577
|
99
99
|
streamlit/elements/widgets/multiselect.py,sha256=prFJ_bobgJ5ucOLDZyCqKIv74CHMSh4SjdyZLB3_jW0,13145
|
100
|
-
streamlit/elements/widgets/number_input.py,sha256=
|
100
|
+
streamlit/elements/widgets/number_input.py,sha256=CunxIjd1Xu0zoGgxDyu05Oy3nHLdiAGP9J_VULvBIvk,17589
|
101
101
|
streamlit/elements/widgets/radio.py,sha256=DcMJJ3A0u4pikUdwaEswTGTcquvbPemXJmdTu9KpiaQ,12202
|
102
102
|
streamlit/elements/widgets/select_slider.py,sha256=KoyuFsHfbnx1REQdpenXnTXBbEtDF4fKF1VXP-Xqr0w,12729
|
103
|
-
streamlit/elements/widgets/selectbox.py,sha256=
|
103
|
+
streamlit/elements/widgets/selectbox.py,sha256=AuYPtfnG32gsc4FJL_Ty2etwsaVODQh0h_hMY3HL1X0,10957
|
104
104
|
streamlit/elements/widgets/slider.py,sha256=9nLeG-k7Vau94vA7UXMjMx_8sRv2GcVQrDgNgFOkK4w,26167
|
105
|
-
streamlit/elements/widgets/text_widgets.py,sha256
|
105
|
+
streamlit/elements/widgets/text_widgets.py,sha256=JfQAsi5AB3hYFNEGGWqsXKFgArjchjIa_NbmsKr4Jmg,21726
|
106
106
|
streamlit/elements/widgets/time_widgets.py,sha256=JWXsoYppiGHxq-YlNaV5YyuEvLmMfFSbZ4Qz5l2y5pU,28241
|
107
107
|
streamlit/external/__init__.py,sha256=LTDGDB-ahkVmBP0P6YP2tyR5e1QTnVTSb1f3yZWi7go,611
|
108
108
|
streamlit/external/langchain/__init__.py,sha256=84uoV5cbX0jLFm4Vx92WDagQXiu4T-oacm_UtrYz0Mc,858
|
@@ -158,7 +158,7 @@ streamlit/proto/Metric_pb2.py,sha256=lS7-_4FqGTxDhbm0kU5lSnPHeIAAm93J5zPsnZW3Dc8
|
|
158
158
|
streamlit/proto/MultiSelect_pb2.py,sha256=StjxTS_Kh-rdtluIssPFaAUoP7oGNXZEq-ZhnseYfWg,1630
|
159
159
|
streamlit/proto/NamedDataSet_pb2.py,sha256=02QgUCBz2r2TQFj_PAfUFA3whvsqpRKZNsv-39rtFEw,1222
|
160
160
|
streamlit/proto/NewSession_pb2.py,sha256=gktOQ2QRo_vvpxFgukFJ6I5IbmCvIC-PokVTQoxwRDE,4898
|
161
|
-
streamlit/proto/NumberInput_pb2.py,sha256=
|
161
|
+
streamlit/proto/NumberInput_pb2.py,sha256=NrRdssr5YA-knF_qkMlqOiVHCThiIu90AZgtR73XMck,2202
|
162
162
|
streamlit/proto/PageConfig_pb2.py,sha256=G46vl11tW6x2ZDGWV0NF6EVww3w0j_szkyLht1lhqfM,1965
|
163
163
|
streamlit/proto/PageInfo_pb2.py,sha256=k4GnocF0oXl1glEGoWregbOCnLAYL6rnx9CKykcYTFc,986
|
164
164
|
streamlit/proto/PageNotFound_pb2.py,sha256=6y3XZizydwqKEqHp6GHWAIbyd6qiccSMif4w_XjgqME,1003
|
@@ -195,7 +195,7 @@ streamlit/runtime/media_file_storage.py,sha256=EWftWdVbpdmRycYNBz0eCiPXJZNnRRiyn
|
|
195
195
|
streamlit/runtime/memory_media_file_storage.py,sha256=J0JNbhyIU60Vgdclow88qJsN1-EG8nhNIAN7LRZaLZU,6251
|
196
196
|
streamlit/runtime/memory_session_storage.py,sha256=E0Ax-RnE5Siyc8k8qOYrJ4TgREUsofpabq93AvpSWyc,2918
|
197
197
|
streamlit/runtime/memory_uploaded_file_manager.py,sha256=XvFJTzJ4kzF5MqLW2_8o7UpXZrb30RgoY5cW424ggJM,4399
|
198
|
-
streamlit/runtime/metrics_util.py,sha256=
|
198
|
+
streamlit/runtime/metrics_util.py,sha256=T7X_r4zaPoqDKhqIdB6FCj3kEMldwpYjCxgXCOZH8SU,13664
|
199
199
|
streamlit/runtime/runtime.py,sha256=KQn650r7WtXGbc8RHADZeyU2ySgg8BPU71UmaHwk1Rs,26771
|
200
200
|
streamlit/runtime/runtime_util.py,sha256=OG-IwAOhL2yHvx8cVJ24CI6npmtvi1M0YtU0lasIqls,3790
|
201
201
|
streamlit/runtime/script_data.py,sha256=kZn1dlYYG7KmvIaxunbYIgZPgUCpUYuAswKVVSVp6ic,1703
|
@@ -227,15 +227,15 @@ streamlit/runtime/scriptrunner/script_cache.py,sha256=FfwraO1GXJGPsJ734Gka0ZEQlf
|
|
227
227
|
streamlit/runtime/scriptrunner/script_requests.py,sha256=8X-UIAxFsKCPv-tEHIcFiJsd74uSbIjEYZ5wbaYENzM,7120
|
228
228
|
streamlit/runtime/scriptrunner/script_run_context.py,sha256=HpTY8MDLF7HdNlfqnIPT9suKKqtAhctjDMqBk8V8GRE,6586
|
229
229
|
streamlit/runtime/scriptrunner/script_runner.py,sha256=a67whxLeq6IaU9o6sXp2vHkupJbvi21pcI77ILAfQ7o,25874
|
230
|
-
streamlit/runtime/state/__init__.py,sha256=
|
230
|
+
streamlit/runtime/state/__init__.py,sha256=l0f6Pepna6AzX1nKdqHhASilMF2pTLNKechjJVtSlGg,1733
|
231
231
|
streamlit/runtime/state/common.py,sha256=fgzKWoFKpcUgZ2MiBjRXVHfHUWO0Cj9QsxDuSw-GYu8,7514
|
232
232
|
streamlit/runtime/state/safe_session_state.py,sha256=YhQ-9fXjx-geJ6d-1OlPyjuFIuRnguptWEriWJJcZJE,4808
|
233
233
|
streamlit/runtime/state/session_state.py,sha256=nNScvKmBvWpLmxrPx5ciF-xUenWi9KIdaf8ozHiCMes,25873
|
234
234
|
streamlit/runtime/state/session_state_proxy.py,sha256=1Yvldnacr_ZEF4wl8Y8y685pCE8_DKRN02W52tzLBFc,5098
|
235
|
-
streamlit/runtime/state/widgets.py,sha256=
|
236
|
-
streamlit/static/asset-manifest.json,sha256=
|
235
|
+
streamlit/runtime/state/widgets.py,sha256=TY39mbObWI-mlNPc2Z-7AVcz1rtL5oVRfpPYGuhe6HQ,10993
|
236
|
+
streamlit/static/asset-manifest.json,sha256=1ybidhBc3gS9r0OHUUoz4it3X44j5FIpHntrfMEkXGY,14009
|
237
237
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
238
|
-
streamlit/static/index.html,sha256=
|
238
|
+
streamlit/static/index.html,sha256=BETz-zPOhLZgMBmsxrl8SBgI7G9rRivQeKQTJw-I80k,892
|
239
239
|
streamlit/static/static/css/1480.b42f5471.chunk.css,sha256=GPeJpbK2IZNaAlFMHBoOt6JkDymmCg0LqZa6j39bS5c,2995
|
240
240
|
streamlit/static/static/css/4436.46c3674e.chunk.css,sha256=YlVhmRqh3Z6a7GDxZAX94apjncEa2AmUMxJF12XCNwc,11503
|
241
241
|
streamlit/static/static/css/6385.b42f5471.chunk.css,sha256=GPeJpbK2IZNaAlFMHBoOt6JkDymmCg0LqZa6j39bS5c,2995
|
@@ -245,7 +245,7 @@ streamlit/static/static/js/1011.d9ed7f0d.chunk.js,sha256=vIA7J_LyOvLS7pELeaJQ8p-
|
|
245
245
|
streamlit/static/static/js/1074.36c00f7e.chunk.js,sha256=jwLaud2Upe1a1Fo5HxHM-61ZTIMeAvncOgNt91Yb0vU,7262
|
246
246
|
streamlit/static/static/js/1168.39ebb497.chunk.js,sha256=KeyjogyC_q_-qi4CSuj39iEz9axGIqtsGo0kT2R97lc,6564
|
247
247
|
streamlit/static/static/js/1307.7f807042.chunk.js,sha256=NCDrgB3omZuSIoh5sAIjk7iCy4rvt3fnoY2_T9POQys,1546
|
248
|
-
streamlit/static/static/js/1451.
|
248
|
+
streamlit/static/static/js/1451.76174eea.chunk.js,sha256=p0xOizYDDNlD4mexaoi1K4x22acL1ITg4lBliAyHGkE,5562
|
249
249
|
streamlit/static/static/js/1480.280554b1.chunk.js,sha256=Qi9M76-OwU0lNLMWOWK_jQOtTOfyDQQzOxhL7g4dDPQ,9654
|
250
250
|
streamlit/static/static/js/178.949bb3e5.chunk.js,sha256=Elh7ZWw3eddiPU98t2H67IvmafoyzbpLKH6UBhaQgk0,972
|
251
251
|
streamlit/static/static/js/1792.402ab29b.chunk.js,sha256=jIjJBQ117w17kjmrgkFay8cZrQdOgh-lD9S0VHURgQQ,762
|
@@ -260,11 +260,11 @@ streamlit/static/static/js/4132.8fb3b851.chunk.js,sha256=4iG4JbOq8HhNTzzVWPC9K6H
|
|
260
260
|
streamlit/static/static/js/4132.8fb3b851.chunk.js.LICENSE.txt,sha256=igkibNn8txupcmLBAXVBW26Sb88LgmTdgCd4fgTQu-E,487
|
261
261
|
streamlit/static/static/js/4177.4a240aed.chunk.js,sha256=qkOxdaeEoDMIV4h8u2tF4xJo2suOhf0Z3uUuRoHOC3I,2699
|
262
262
|
streamlit/static/static/js/4319.fb3e0b77.chunk.js,sha256=5LR8McVLeIx4P20ZTJGJ7DcLPCGHDNUw-wQIGwZ6qfw,2937
|
263
|
-
streamlit/static/static/js/4436.
|
263
|
+
streamlit/static/static/js/4436.9b8d7cb9.chunk.js,sha256=DVqzekOwPf_YYLKx5I_vF38cMLuq60RyO1x6nepvaBw,40112
|
264
264
|
streamlit/static/static/js/4477.51e44822.chunk.js,sha256=ajJiceGP2q3hhmAkP3oWp3A597TXcDBQb0TR0OVxsDk,21450
|
265
265
|
streamlit/static/static/js/4483.ba79abcc.chunk.js,sha256=-OK6G1PhmWJfq03H4M7yNkGnnqksXORfgyFrL4NtqUA,8068
|
266
266
|
streamlit/static/static/js/4500.69d3e003.chunk.js,sha256=ROR-371uM8SAjECxfnn2TTZyjWvx_UgcLsbY5acUHJ4,549
|
267
|
-
streamlit/static/static/js/4666.
|
267
|
+
streamlit/static/static/js/4666.29813cd1.chunk.js,sha256=WLJDbE2xkowKoSLpvOxu1y3zLu01bGJGA3yiA3Xeocw,15685
|
268
268
|
streamlit/static/static/js/5106.51601bd4.chunk.js,sha256=7JOBOF5wNfPo6-JLfqjlM4YS-W4LfZJAbeyGINreJ-4,7700
|
269
269
|
streamlit/static/static/js/5117.a242f22e.chunk.js,sha256=q8GxJAIHOP1eQrOU7PKaioI0YkDeZC_5uvemafAi4sg,21807
|
270
270
|
streamlit/static/static/js/5379.acbf1a74.chunk.js,sha256=1kPYBTQ0gt102fbHiPmXSnM-LRSRTuB184k29f_HGPM,11211
|
@@ -282,7 +282,7 @@ streamlit/static/static/js/6988.5f0eaf34.chunk.js,sha256=NpofgTFB1wjgJ8LDin14iNh
|
|
282
282
|
streamlit/static/static/js/6988.5f0eaf34.chunk.js.LICENSE.txt,sha256=1QHhzkSjNF6H69M5pw5HrN7wcZQ3zGXwvfwB7fuBNoc,105
|
283
283
|
streamlit/static/static/js/7062.864c905c.chunk.js,sha256=E8TKDfM4Vqk9bXO79Ty_gJgCj38CY4a4TAPMItDAlhE,8356
|
284
284
|
streamlit/static/static/js/7142.ad6129d4.chunk.js,sha256=ZwShEgBpIELD1kzc9G9ItnH2F55kO7OCQsUpBU6TmMk,70659
|
285
|
-
streamlit/static/static/js/7175.
|
285
|
+
streamlit/static/static/js/7175.1af60fa9.chunk.js,sha256=y2PQU8i9UmwgoNOfWmF1UFaa6doT7P15E3pTm0B9RaY,9866
|
286
286
|
streamlit/static/static/js/7386.c965002c.chunk.js,sha256=YX9_Z0-FmPEas7JNzV10nJjAt3KXCxVo7Z32nxi9AEQ,3591019
|
287
287
|
streamlit/static/static/js/7386.c965002c.chunk.js.LICENSE.txt,sha256=tDhUc1uKAxm9xI1Hmk3VIMtA2vpN16iFFomXeLMKUQc,2087
|
288
288
|
streamlit/static/static/js/7602.1205744e.chunk.js,sha256=xfKxzI7jOcoEpEy5BhPOx2iTJmJMmviSO8_O2pDML4Q,13937
|
@@ -298,8 +298,8 @@ streamlit/static/static/js/8691.9d96e187.chunk.js,sha256=PSCpwM2YKCNMQ_oQKDJbbTj
|
|
298
298
|
streamlit/static/static/js/9330.7033aa48.chunk.js,sha256=krFTMyRt09Dxm8fJTeLylRgkoatUcxrAUxOVCjQg2mM,489
|
299
299
|
streamlit/static/static/js/9336.7efa8bb1.chunk.js,sha256=NrsKX5JU7Q3tMmWOSctyUioscrhaxXUftrHT38VRTgg,13490
|
300
300
|
streamlit/static/static/js/9656.acfed299.chunk.js,sha256=2OQGjtNeB6k3ROf17z5TfHpt1Sl3oYpAwb3Pptr_zTA,22301
|
301
|
-
streamlit/static/static/js/main.
|
302
|
-
streamlit/static/static/js/main.
|
301
|
+
streamlit/static/static/js/main.2ba402e0.js,sha256=N2hDmy6kTAHHCOI3d7KOP6b8ElwOS5R4BUdEFn-cKQA,4760580
|
302
|
+
streamlit/static/static/js/main.2ba402e0.js.LICENSE.txt,sha256=bfRVUUXN2XyPr112Wh_Z95x3KIJUoFD2rLA3tAQ5kAk,4025
|
303
303
|
streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
304
304
|
streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
305
305
|
streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
@@ -420,9 +420,9 @@ streamlit/web/server/server_util.py,sha256=XJ9ngvipySXQqncV30nAn_QVnjYXvvl9j5aMq
|
|
420
420
|
streamlit/web/server/stats_request_handler.py,sha256=rJelIrHJAz4EGctKLnixEbEVetrXcsDVYp7la033tGE,3405
|
421
421
|
streamlit/web/server/upload_file_request_handler.py,sha256=VJObJ8L2rHbHnAov0VhRc2_gKThmE82BJkRsTZdXyiA,5029
|
422
422
|
streamlit/web/server/websocket_headers.py,sha256=oTieGEZ16m1cmZMuus_fwgTIWF9LUFvCtmls2_GivgA,1867
|
423
|
-
streamlit_nightly-1.26.1.
|
424
|
-
streamlit_nightly-1.26.1.
|
425
|
-
streamlit_nightly-1.26.1.
|
426
|
-
streamlit_nightly-1.26.1.
|
427
|
-
streamlit_nightly-1.26.1.
|
428
|
-
streamlit_nightly-1.26.1.
|
423
|
+
streamlit_nightly-1.26.1.dev20230915.data/scripts/streamlit.cmd,sha256=bIvl64RLCLmXTMo-YWqncINDWHlgQx_RgPvL41gYGh4,671
|
424
|
+
streamlit_nightly-1.26.1.dev20230915.dist-info/METADATA,sha256=omi36cNzuGaxv7KezVFaarn-Jak69a5POFRwlwDDOG8,8018
|
425
|
+
streamlit_nightly-1.26.1.dev20230915.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
|
426
|
+
streamlit_nightly-1.26.1.dev20230915.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
427
|
+
streamlit_nightly-1.26.1.dev20230915.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
428
|
+
streamlit_nightly-1.26.1.dev20230915.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1451],{61451:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var r=n(22951),a=n(91976),i=n(67591),o=n(94337),s=n(66845),l=n(53608),d=n.n(l),u=n(25621),p=n(15791),c=n(28278),m=n(13553),f=n(87814),h=n(98478),g=n(86659),v=n(8879),y=n(68411),b=n(50641),C=n(40864),k="YYYY/MM/DD";function x(e){return e.map((function(e){return new Date(e)}))}var D=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).formClearHelper=new f.K,e.state={values:e.initialValue,isRange:e.props.element.isRange,isEmpty:!1},e.commitWidgetValue=function(t){var n;e.props.widgetMgr.setStringArrayValue(e.props.element,(n=e.state.values)?n.map((function(e){return d()(e).format(k)})):[],t)},e.onFormCleared=function(){var t=x(e.props.element.default);e.setState({values:t},(function(){return e.commitWidgetValue({fromUi:!0})}))},e.handleChange=function(t){var n=t.date;if(null!==n&&void 0!==n){var r=[];Array.isArray(n)?n.forEach((function(e){e&&r.push(e)})):r.push(n),e.setState({values:r,isEmpty:!r},(function(){e.state.isEmpty||e.commitWidgetValue({fromUi:!0})}))}else e.setState({values:[],isEmpty:!0})},e.handleClose=function(){e.state.isEmpty&&e.setState((function(e,t){return{values:x(t.element.default),isEmpty:!x(t.element.default)}}),(function(){e.commitWidgetValue({fromUi:!0})}))},e.getMaxDate=function(){var t=e.props.element.max;return t&&t.length>0?d()(t,k).toDate():void 0},e}return(0,a.Z)(n,[{key:"initialValue",get:function(){var e=this.props.widgetMgr.getStringArrayValue(this.props.element);return x(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({values:t.map((function(e){return new Date(e)}))},(function(){e.commitWidgetValue({fromUi:!1})}))}},{key:"render",value:function(){var e,t=this.props,n=t.width,r=t.element,a=t.disabled,i=t.theme,o=t.widgetMgr,s=this.state,l=s.values,u=s.isRange,f=i.colors,x=i.fontSizes,D=i.lineHeights,W={width:n},F=d()(r.min,k).toDate(),V=this.getMaxDate(),w=0===r.default.length&&!a,I=r.format.replaceAll(/[a-zA-Z]/g,"9"),S=r.format.replaceAll("Y","y").replaceAll("D","d");return this.formClearHelper.manageFormClearListener(o,r.formId,this.onFormCleared),(0,C.jsxs)("div",{className:"stDateInput",style:W,"data-testid":"stDateInput",children:[(0,C.jsx)(h.O,{label:r.label,disabled:a,labelVisibility:(0,b.iF)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),children:r.help&&(0,C.jsx)(g.dT,{children:(0,C.jsx)(v.Z,{content:r.help,placement:y.u.TOP_RIGHT})})}),(0,C.jsx)(p.Z,{"data-testid":"stDateInputPicker",density:c.pw.high,formatString:S,mask:u?"".concat(I," \u2013 ").concat(I):I,placeholder:u?"".concat(r.format," \u2013 ").concat(r.format):r.format,disabled:a,onChange:this.handleChange,onClose:this.handleClose,overrides:{Popover:{props:{placement:m.r4.bottomLeft,overrides:{Body:{style:{border:"1px solid ".concat(f.fadedText10)}}}}},CalendarContainer:{style:{fontSize:x.sm,paddingRight:i.spacing.sm,paddingLeft:i.spacing.sm,paddingBottom:i.spacing.sm,paddingTop:i.spacing.sm}},Week:{style:{fontSize:x.sm}},Day:{style:function(e){var t=e.$pseudoHighlighted,n=e.$pseudoSelected,r=e.$selected,a=e.$isHovered;return{fontSize:x.sm,lineHeight:D.base,"::before":{backgroundColor:r||n||t||a?"".concat(f.secondaryBg," !important"):f.transparent},"::after":{borderColor:f.transparent}}}},PrevButton:{style:function(){return{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:f.transparent},":focus":{backgroundColor:f.transparent,outline:0}}}},NextButton:{style:{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:f.transparent},":focus":{backgroundColor:f.transparent,outline:0}}},Input:{props:{maskChar:null,overrides:{Root:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},ClearIcon:{props:{overrides:{Svg:{style:{color:i.colors.darkGray,transform:"scale(1.41)",width:i.spacing.twoXL,marginRight:"-8px",":hover":{fill:i.colors.bodyText}}}}}},Input:{style:{paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}}}}}},value:l,minDate:F,maxDate:V,range:u,clearable:w})]})}}]),n}(s.PureComponent),W=(0,u.b)(D)},87814:function(e,t,n){n.d(t,{K:function(){return o}});var r=n(22951),a=n(91976),i=n(50641),o=function(){function e(){(0,r.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,a.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,i.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4666],{90186:function(e,t,n){n.d(t,{$:function(){return i}});var i,r=n(66845),a=n(25621),s=n(66694),o=n(95118),l=n(38570),d=n(80318),c=n(40864);!function(e){e.EXTRASMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRALARGE="xl"}(i||(i={})),t.Z=function(e){var t=e.value,n=e.width,u=e.size,p=void 0===u?i.SMALL:u,g=e.overrides,f=(0,a.u)(),m={xs:f.spacing.twoXS,sm:f.spacing.sm,md:f.spacing.lg,lg:f.spacing.xl,xl:f.spacing.twoXL},h=r.useContext(s.E).activeTheme,x=!(0,o.MJ)(h),v={BarContainer:{style:{marginTop:f.spacing.none,marginBottom:f.spacing.none,marginRight:f.spacing.none,marginLeft:f.spacing.none}},Bar:{style:function(e){var t=e.$theme;return{width:n?n.toString():void 0,marginTop:f.spacing.none,marginBottom:f.spacing.none,marginRight:f.spacing.none,marginLeft:f.spacing.none,height:m[p],backgroundColor:t.colors.progressbarTrackFill,borderTopLeftRadius:f.spacing.twoXS,borderTopRightRadius:f.spacing.twoXS,borderBottomLeftRadius:f.spacing.twoXS,borderBottomRightRadius:f.spacing.twoXS}}},BarProgress:{style:function(){return{backgroundColor:x?f.colors.primary:f.colors.blue70,borderTopLeftRadius:f.spacing.twoXS,borderTopRightRadius:f.spacing.twoXS,borderBottomLeftRadius:f.spacing.twoXS,borderBottomRightRadius:f.spacing.twoXS}}}};return(0,c.jsx)(l.Z,{value:t,overrides:(0,d.aO)(v,g)})}},77367:function(e,t,n){n.d(t,{R:function(){return a}});var i=n(22951),r=n(91976),a=function(){function e(t,n,r,a){(0,i.Z)(this,e),this.name=void 0,this.size=void 0,this.status=void 0,this.id=void 0,this.name=t,this.size=n,this.id=r,this.status=a}return(0,r.Z)(e,[{key:"setStatus",value:function(t){return new e(this.name,this.size,this.id,t)}}]),e}()},14666:function(e,t,n){n.r(t),n.d(t,{default:function(){return be}});var i,r=n(649),a=n(11026),s=n(22951),o=n(91976),l=n(67591),d=n(94337),c=n(45960),u=n.n(c),p=n(72706),g=n.n(p),f=n(66845),m=n(16295),h=n(87814),x=n(50641);!function(e){e.Gigabyte="gb",e.Megabyte="mb",e.Kilobyte="kb",e.Byte="b"}(i||(i={}));var v=(0,x.rA)()?1024:1e3,w=[i.Gigabyte,i.Megabyte,i.Kilobyte,i.Byte],y=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(n||(n=i.Byte),r<0&&(r=0),t<0)throw new Error("Size must be greater than or equal to 0");var a=w.indexOf(n);return a&&t>v/2?e(t/v,w[a-1],r):"".concat(t.toFixed(r)).concat(n.toUpperCase())},b=n(98478),S=n(86659),Z=n(8879),F=n(68411),j=n(50189),I=n(51622),M=n(9003),z=n(81354),L=n(64649),k=n(1515);var C=(0,k.Z)("section",{target:"e1b2p2ww15"})((function(e){var t=e.isDisabled,n=e.theme;return{display:"flex",alignItems:"center",padding:n.spacing.lg,backgroundColor:n.colors.secondaryBg,borderRadius:n.radii.lg,":focus":{outline:"none"},":focus-visible":{boxShadow:"0 0 0 1px ".concat(n.colors.primary)},color:t?n.colors.gray:n.colors.bodyText}}),""),B=(0,k.Z)("div",{target:"e1b2p2ww14"})((function(){return{marginRight:"auto",alignItems:"center",display:"flex"}}),""),U=(0,k.Z)("span",{target:"e1b2p2ww13"})((function(e){var t=e.theme;return{color:t.colors.darkenedBgMix100,marginRight:t.spacing.lg}}),""),R=(0,k.Z)("span",{target:"e1b2p2ww12"})((function(e){return{marginBottom:e.theme.spacing.twoXS}}),""),T=(0,k.Z)("div",{target:"e1b2p2ww11"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),X=(0,k.Z)("div",{target:"e1b2p2ww10"})((function(e){var t=e.theme;return{left:0,right:0,lineHeight:t.lineHeights.tight,paddingTop:t.spacing.md,paddingLeft:t.spacing.lg,paddingRight:t.spacing.lg}}),""),E=(0,k.Z)("ul",{target:"e1b2p2ww9"})((function(){return{listStyleType:"none",marginBottom:0}}),""),A=(0,k.Z)("li",{target:"e1b2p2ww8"})((function(e){var t=e.theme;return{margin:t.spacing.none,padding:t.spacing.none}}),""),D=(0,k.Z)("div",{target:"e1b2p2ww7"})((function(e){return{display:"flex",alignItems:"baseline",flex:1,paddingLeft:e.theme.spacing.lg,overflow:"hidden"}}),""),P=(0,k.Z)("div",{target:"e1b2p2ww6"})((function(e){var t=e.theme;return{marginRight:t.spacing.sm,marginBottom:t.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),""),N=(0,k.Z)("div",{target:"e1b2p2ww5"})((function(e){return{display:"flex",alignItems:"center",marginBottom:e.theme.spacing.twoXS}}),""),W=(0,k.Z)("span",{target:"e1b2p2ww4"})((function(e){return{marginRight:e.theme.spacing.twoXS}}),""),V=(0,k.Z)("div",{target:"e1b2p2ww3"})((function(e){var t=e.theme;return{display:"flex",padding:t.spacing.twoXS,color:t.colors.darkenedBgMix100}}),""),O=(0,k.Z)("small",{target:"e1b2p2ww2"})((function(e){var t=e.theme;return{color:t.colors.danger,fontSize:t.fontSizes.sm,height:t.fontSizes.sm,lineHeight:t.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),""),H=(0,k.Z)("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),_=function(e){var t;return t={},(0,L.Z)(t,C,{display:"flex",flexDirection:"column",alignItems:"flex-start"}),(0,L.Z)(t,B,{marginBottom:e.spacing.lg}),(0,L.Z)(t,U,{display:"none"}),(0,L.Z)(t,X,{paddingRight:e.spacing.lg}),(0,L.Z)(t,N,{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm}),(0,L.Z)(t,P,{width:e.sizes.full}),(0,L.Z)(t,D,{flexDirection:"column"}),(0,L.Z)(t,O,{height:"auto",whiteSpace:"initial"}),(0,L.Z)(t,H,{display:"none"}),(0,L.Z)(t,A,{margin:e.spacing.none,padding:e.spacing.none}),t},G=(0,k.Z)("div",{target:"e1b2p2ww0"})((function(e){var t=e.theme;return t.inSidebar?_(t):(0,L.Z)({},"@media (max-width: ".concat(t.breakpoints.sm,")"),_(t))}),""),K=n(74529),$=n(46927),q=n(33746),J=n(40864),Y=function(e){var t=e.multiple,n=e.acceptedExtensions,r=e.maxSizeBytes;return(0,J.jsxs)(B,{children:[(0,J.jsx)(U,{children:(0,J.jsx)($.Z,{content:K.n,size:"threeXL"})}),(0,J.jsxs)(T,{children:[(0,J.jsxs)(R,{children:["Drag and drop file",t?"s":""," here"]}),(0,J.jsxs)(q.x,{children:["Limit ".concat(y(r,i.Byte,0)," per file"),n.length?" \u2022 ".concat(n.join(", ").replace(/\./g,"").toUpperCase()):null]})]})]})},Q=function(e){var t=e.onDrop,n=e.multiple,i=e.acceptedExtensions,r=e.maxSizeBytes,a=e.disabled,s=e.label;return(0,J.jsx)(I.ZP,{onDrop:t,multiple:n,accept:i.length?i:void 0,maxSize:r,disabled:a,useFsAccessApi:!1,children:function(e){var t=e.getRootProps,o=e.getInputProps;return(0,J.jsxs)(C,(0,j.Z)((0,j.Z)({},t()),{},{"data-testid":"stFileUploadDropzone",isDisabled:a,"aria-label":s,children:[(0,J.jsx)("input",(0,j.Z)({},o())),(0,J.jsx)(Y,{multiple:n,acceptedExtensions:i,maxSizeBytes:r}),(0,J.jsx)(M.ZP,{kind:z.nW.SECONDARY,disabled:a,size:z.V5.SMALL,children:"Browse files"})]}))}})},ee=n(53782),te=n(13005),ne=n.n(te),ie=n(30351),re=n(14609),ae=(0,k.Z)("div",{target:"e16k0npc1"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:t.spacing.twoXS,marginBottom:t.spacing.twoXS}}),""),se=(0,k.Z)("div",{target:"e16k0npc0"})((function(e){return{display:"flex",alignItems:"center",justifyContent:"center",color:e.theme.colors.fadedText40}}),""),oe=function(e){var t=e.className,n=e.currentPage,i=e.totalPages,r=e.onNext,a=e.onPrevious;return(0,J.jsxs)(ae,{className:t,children:[(0,J.jsx)(q.x,{children:"Showing page ".concat(n," of ").concat(i)}),(0,J.jsxs)(se,{children:[(0,J.jsx)(M.ZP,{onClick:a,kind:z.nW.MINIMAL,children:(0,J.jsx)($.Z,{content:ie.s,size:"xl"})}),(0,J.jsx)(M.ZP,{onClick:r,kind:z.nW.MINIMAL,children:(0,J.jsx)($.Z,{content:re._,size:"xl"})})]})]})},le=n(88235),de=["pageSize","items","resetOnAdd"],ce=function(e,t){return Math.ceil(e.length/t)},ue=function(e){return ne()((function(t){var n=t.pageSize,i=t.items,r=t.resetOnAdd,s=(0,ee.Z)(t,de),o=(0,f.useState)(0),l=(0,a.Z)(o,2),d=l[0],c=l[1],u=(0,f.useState)(ce(i,n)),p=(0,a.Z)(u,2),g=p[0],m=p[1],h=(0,le.D)(i);(0,f.useEffect)((function(){h&&h.length!==i.length&&m(ce(i,n)),h&&h.length<i.length?r&&c(0):d+1>=g&&c(g-1)}),[i,d,n,h,r,g]);var x=i.slice(d*n,d*n+n);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(e,(0,j.Z)({items:x},s)),i.length>n?(0,J.jsx)(oe,{className:"streamlit-paginator",pageSize:n,totalPages:g,currentPage:d+1,onNext:function(){c(Math.min(d+1,g-1))},onPrevious:function(){c(Math.max(0,d-1))}}):null]})}),e)},pe=n(62288),ge=n(87847),fe=n(31197),me=n(90186),he=function(e){var t=e.fileInfo;return"uploading"===t.status.type?(0,J.jsx)(me.Z,{value:t.status.progress,size:me.$.SMALL,overrides:{Bar:{style:{marginLeft:0,marginTop:"4px"}}}}):"error"===t.status.type?(0,J.jsxs)(O,{children:[(0,J.jsx)(W,{"data-testid":"stUploadedFileErrorMessage",children:t.status.errorMessage}),(0,J.jsx)(H,{children:(0,J.jsx)($.Z,{content:pe.j,size:"lg"})})]}):"uploaded"===t.status.type?(0,J.jsx)(q.x,{children:y(t.size,i.Byte)}):null},xe=function(e){var t=e.fileInfo,n=e.onDelete;return(0,J.jsxs)(N,{className:"uploadedFile",children:[(0,J.jsx)(V,{children:(0,J.jsx)($.Z,{content:ge.h,size:"twoXL"})}),(0,J.jsxs)(D,{className:"uploadedFileData",children:[(0,J.jsx)(P,{className:"uploadedFileName",title:t.name,children:t.name}),(0,J.jsx)(he,{fileInfo:t})]}),(0,J.jsx)("div",{"data-testid":"fileDeleteBtn",children:(0,J.jsx)(M.ZP,{onClick:function(){return n(t.id)},kind:z.nW.MINIMAL,children:(0,J.jsx)($.Z,{content:fe.U,size:"lg"})})})]})},ve=ue((function(e){var t=e.items,n=e.onDelete;return(0,J.jsx)(E,{children:t.map((function(e){return(0,J.jsx)(A,{children:(0,J.jsx)(xe,{fileInfo:e,onDelete:n})},e.id)}))})})),we=function(e){return(0,J.jsx)(X,{children:(0,J.jsx)(ve,(0,j.Z)({},e))})},ye=n(77367),be=function(e){(0,l.Z)(n,e);var t=(0,d.Z)(n);function n(e){var o;return(0,s.Z)(this,n),(o=t.call(this,e)).formClearHelper=new h.K,o.localFileIdCounter=1,o.componentDidUpdate=function(){if("ready"===o.status){var e=o.createWidgetValue();if(void 0!==e){var t=o.props,n=t.element,i=t.widgetMgr,r=i.getFileUploaderStateValue(n);g().isEqual(e,r)||i.setFileUploaderStateValue(n,e,{fromUi:!0})}}},o.reset=function(){o.setState({files:[]})},o.dropHandler=function(e,t){var n=o.props.element.multipleFiles;if(!n&&0===e.length&&t.length>1){var i=t.findIndex((function(e){return 1===e.errors.length&&"too-many-files"===e.errors[0].code}));i>=0&&(e.push(t[i].file),t.splice(i,1))}if(o.props.uploadClient.fetchFileURLs(e).then((function(t){if(!n&&e.length>0){var i=o.state.files.find((function(e){return"error"!==e.status.type}));i&&o.deleteFile(i.id)}g().zip(t,e).forEach((function(e){var t=(0,a.Z)(e,2),n=t[0],i=t[1];o.uploadFile(n,i)}))})).catch((function(t){o.addFiles(e.map((function(e){return new ye.R(e.name,e.size,o.nextLocalFileId(),{type:"error",errorMessage:t})})))})),t.length>0){var r=t.map((function(e){var t=e.file;return new ye.R(t.name,t.size,o.nextLocalFileId(),{type:"error",errorMessage:o.getErrorMessage(e.errors[0].code,e.file)})}));o.addFiles(r)}},o.uploadFile=function(e,t){var n=u().CancelToken.source(),i=new ye.R(t.name,t.size,o.nextLocalFileId(),{type:"uploading",cancelToken:n,progress:1});o.addFile(i),o.props.uploadClient.uploadFile(o.props.element,e.uploadUrl,t,(function(e){return o.onUploadProgress(e,i.id)}),n.token).then((function(){return o.onUploadComplete(i.id,e)})).catch((function(e){u().isCancel(e)||o.updateFile(i.id,i.setStatus({type:"error",errorMessage:e?e.toString():"Unknown error"}))}))},o.onUploadComplete=function(e,t){var n=o.getFile(e);null!=n&&"uploading"===n.status.type&&o.updateFile(n.id,n.setStatus({type:"uploaded",fileId:t.fileId,fileUrls:t}))},o.getErrorMessage=function(e,t){switch(e){case"file-too-large":return"File must be ".concat(y(o.maxUploadSizeInBytes,i.Byte)," or smaller.");case"file-invalid-type":return"".concat(t.type," files are not allowed.");case"file-too-small":return"File size is too small.";case"too-many-files":return"Only one file is allowed.";default:return"Unexpected error. Please try again."}},o.deleteFile=function(e){var t=o.getFile(e);null!=t&&("uploading"===t.status.type&&t.status.cancelToken.cancel(),"uploaded"===t.status.type&&t.status.fileUrls.deleteUrl&&o.props.uploadClient.deleteFile(t.status.fileUrls.deleteUrl),o.removeFile(e))},o.addFile=function(e){o.setState((function(t){return{files:[].concat((0,r.Z)(t.files),[e])}}))},o.addFiles=function(e){o.setState((function(t){return{files:[].concat((0,r.Z)(t.files),(0,r.Z)(e))}}))},o.removeFile=function(e){o.setState((function(t){return{files:t.files.filter((function(t){return t.id!==e}))}}))},o.getFile=function(e){return o.state.files.find((function(t){return t.id===e}))},o.updateFile=function(e,t){o.setState((function(n){return{files:n.files.map((function(n){return n.id===e?t:n}))}}))},o.onUploadProgress=function(e,t){var n=o.getFile(t);if(null!=n&&"uploading"===n.status.type){var i=Math.round(100*e.loaded/e.total);n.status.progress!==i&&o.updateFile(t,n.setStatus({type:"uploading",cancelToken:n.status.cancelToken,progress:i}))}},o.onFormCleared=function(){o.setState({files:[]},(function(){var e=o.createWidgetValue();null!=e&&o.props.widgetMgr.setFileUploaderStateValue(o.props.element,e,{fromUi:!0})}))},o.state=o.initialValue,o}return(0,o.Z)(n,[{key:"initialValue",get:function(){var e=this,t={files:[],newestServerFileId:0},n=this.props,i=n.widgetMgr,r=n.element,a=i.getFileUploaderStateValue(r);if(null==a)return t;var s=a.uploadedFileInfo;return null==s||0===s.length?t:{files:s.map((function(t){var n=t.name,i=t.size,r=t.fileId,a=t.fileUrls;return new ye.R(n,i,e.nextLocalFileId(),{type:"uploaded",fileId:r,fileUrls:a})}))}}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maxUploadSizeInBytes",get:function(){return function(e,t,n){if(e<0)throw Error("Size must be 0 or greater");var i=w.findIndex((function(e){return e===t})),r=w.findIndex((function(e){return e===n}));if(-1===i||-1===r)throw Error("Unexpected byte unit provided");if(i===r)return e;var a=Math.abs(i-r),s=Math.pow(v,a);return i>r?e/s:e*s}(this.props.element.maxUploadSizeMb,i.Megabyte,i.Byte)}},{key:"status",get:function(){return this.state.files.some((function(e){return"uploading"===e.status.type}))?"updating":"ready"}},{key:"createWidgetValue",value:function(){var e=this.state.files.filter((function(e){return"uploaded"===e.status.type})).map((function(e){var t=e.name,n=e.size,i=e.status,r=i.fileId,a=i.fileUrls;return new m.jM({fileId:r,fileUrls:a,name:t,size:n})}));return new m.xO({uploadedFileInfo:e})}},{key:"render",value:function(){var e,t=this.state.files,n=this.props,i=n.element,r=n.disabled,a=n.widgetMgr,s=i.type;this.formClearHelper.manageFormClearListener(a,i.formId,this.onFormCleared);var o=t.slice().reverse();return(0,J.jsxs)(G,{"data-testid":"stFileUploader",children:[(0,J.jsx)(b.O,{label:i.label,disabled:r,labelVisibility:(0,x.iF)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&(0,J.jsx)(S.dT,{children:(0,J.jsx)(Z.Z,{content:i.help,placement:F.u.TOP_RIGHT})})}),(0,J.jsx)(Q,{onDrop:this.dropHandler,multiple:i.multipleFiles,acceptedExtensions:s,maxSizeBytes:this.maxUploadSizeInBytes,label:i.label,disabled:r}),o.length>0&&(0,J.jsx)(we,{items:o,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}},{key:"nextLocalFileId",value:function(){return this.localFileIdCounter++}}]),n}(f.PureComponent)},87814:function(e,t,n){n.d(t,{K:function(){return s}});var i=n(22951),r=n(91976),a=n(50641),s=function(){function e(){(0,i.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,r.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,a.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[7175],{79986:function(e,t,n){n.d(t,{Z:function(){return m}});n(66845);var i,r=n(50641),o=n(86659),a=n(50189),l=n(50669),s=n(1515),u=(0,n(7865).F4)(i||(i=(0,l.Z)(["\n 50% {\n color: rgba(0, 0, 0, 0);\n }\n"]))),d=(0,s.Z)("span",{target:"edlqvik0"})((function(e){var t=e.includeDot,n=e.shouldBlink,i=e.theme;return(0,a.Z)((0,a.Z)({},t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:i.colors.gray,margin:"0 5px"}}:{}),n?{color:i.colors.red,animationName:"".concat(u),animationDuration:"0.5s",animationIterationCount:5}:{})}),""),c=n(40864),m=function(e){var t=e.dirty,n=e.value,i=e.maxLength,a=e.className,l=e.type,s=void 0===l?"single":l,u=e.inForm,m=[],p=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.push((0,c.jsx)(d,{includeDot:m.length>0,shouldBlink:t,children:e},m.length))};if(t){var f=u?"submit form":"apply";if("multiline"===s){var h=(0,r.Ge)()?"\u2318":"Ctrl";p("Press ".concat(h,"+Enter to ").concat(f))}else"single"===s&&p("Press Enter to ".concat(f))}return i&&("chat"!==s||t)&&p("".concat(n.length,"/").concat(i),t&&n.length>=i),(0,c.jsx)(o.X7,{"data-testid":"InputInstructions",className:a,children:m})}},87814:function(e,t,n){n.d(t,{K:function(){return a}});var i=n(22951),r=n(91976),o=n(50641),a=function(){function e(){(0,i.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,r.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()},67175:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var i=n(22951),r=n(91976),o=n(67591),a=n(94337),l=n(66845),s=n(20607),u=n(89997),d=n(25621),c=n(52347),m=n(87814),p=n(23849),f=n(16295),h=n(48266),g=n(8879),v=n(68411),b=n(46927),y=n(82534),x=n(79986),k=n(98478),V=n(86659),C=n(50641),w=n(1515);var I=(0,w.Z)("div",{target:"e116k4er3"})((function(e){var t=e.theme;return{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",borderWidth:"1px",borderStyle:"solid",borderColor:t.colors.widgetBorderColor||t.colors.widgetBackgroundColor||t.colors.bgColor,transitionDuration:"200ms",transitionProperty:"border",transitionTimingFunction:"cubic-bezier(0.2, 0.8, 0.4, 1)",borderRadius:t.radii.lg,overflow:"hidden","&.focused":{borderColor:t.colors.primary},input:{MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:t.spacing.none}}}}),""),F=(0,w.Z)("div",{target:"e116k4er2"})({name:"76z9jo",styles:"display:flex;flex-direction:row;align-self:stretch"}),D=(0,w.Z)("button",{target:"e116k4er1"})((function(e){var t=e.theme;return{margin:t.spacing.none,border:"none",height:t.sizes.full,display:"flex",alignItems:"center",width:"".concat(32,"px"),justifyContent:"center",color:t.colors.bodyText,transition:"color 300ms, backgroundColor 300ms",backgroundColor:t.colors.widgetBackgroundColor||t.colors.secondaryBg,"&:hover:enabled, &:focus:enabled":{color:t.colors.white,backgroundColor:t.colors.primary,transition:"none",outline:"none"},"&:active":{outline:"none",border:"none"},"&:last-of-type":{borderTopRightRadius:t.radii.lg,borderBottomRightRadius:t.radii.lg},"&:disabled":{cursor:"not-allowed",color:t.colors.fadedText40}}}),""),M=(0,w.Z)("div",{target:"e116k4er0"})((function(e){return{position:"absolute",marginRight:e.theme.spacing.twoXS,left:0,right:"".concat(64,"px")}}),""),R=n(40864),S=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e)).formClearHelper=new m.K,r.inputRef=l.createRef(),r.formatValue=function(e){if((0,C.le)(e))return null;var t=function(e){return null==e||""===e?void 0:e}(r.props.element.format);if(null==t)return e.toString();try{return(0,c.sprintf)(t,e)}catch(n){return(0,p.KE)("Error in sprintf(".concat(t,", ").concat(e,"): ").concat(n)),String(e)}},r.isIntData=function(){return r.props.element.dataType===f.Y2.DataType.INT},r.getMin=function(){return r.props.element.hasMin?r.props.element.min:-1/0},r.getMax=function(){return r.props.element.hasMax?r.props.element.max:1/0},r.getStep=function(){var e=r.props.element.step;return e||(r.isIntData()?1:.01)},r.commitWidgetValue=function(e){var t=r.state.value,n=r.props,i=n.element,o=n.widgetMgr,a=r.props.element,l=r.getMin(),s=r.getMax();if((0,C.bb)(t)&&(l>t||t>s)){var u=r.inputRef.current;u&&u.reportValidity()}else{var d,c=null!==(d=null!==t&&void 0!==t?t:a.default)&&void 0!==d?d:null;r.isIntData()?o.setIntValue(i,c,e):o.setDoubleValue(i,c,e),r.setState({dirty:!1,value:c,formattedValue:r.formatValue(c)})}},r.onFormCleared=function(){r.setState((function(e,t){var n;return{value:null!==(n=t.element.default)&&void 0!==n?n:null}}),(function(){return r.commitWidgetValue({fromUi:!0})}))},r.onBlur=function(){r.state.dirty&&r.commitWidgetValue({fromUi:!0}),r.setState({isFocused:!1})},r.onFocus=function(){r.setState({isFocused:!0})},r.onChange=function(e){var t,n=e.target.value;""===n?r.setState({dirty:!0,value:null,formattedValue:null}):(t=r.isIntData()?parseInt(n,10):parseFloat(n),r.setState({dirty:!0,value:t,formattedValue:n}))},r.onKeyDown=function(e){switch(e.key){case"ArrowUp":e.preventDefault(),r.modifyValueUsingStep("increment")();break;case"ArrowDown":e.preventDefault(),r.modifyValueUsingStep("decrement")()}},r.onKeyPress=function(e){"Enter"===e.key&&(r.state.dirty&&r.commitWidgetValue({fromUi:!0}),(0,C.$b)(r.props.element)&&r.props.widgetMgr.submitForm(r.props.element.formId))},r.modifyValueUsingStep=function(e){return function(){var t=r.state.value,n=r.getStep();switch(e){case"increment":r.canIncrement&&r.setState({dirty:!0,value:(null!==t&&void 0!==t?t:r.getMin())+n},(function(){r.commitWidgetValue({fromUi:!0})}));break;case"decrement":r.canDecrement&&r.setState({dirty:!0,value:(null!==t&&void 0!==t?t:r.getMax())-n},(function(){r.commitWidgetValue({fromUi:!0})}))}}},r.state={dirty:!1,value:r.initialValue,formattedValue:r.formatValue(r.initialValue),isFocused:!1},r}return(0,r.Z)(n,[{key:"initialValue",get:function(){var e,t=this.isIntData()?this.props.widgetMgr.getIntValue(this.props.element):this.props.widgetMgr.getDoubleValue(this.props.element);return null!==(e=null!==t&&void 0!==t?t:this.props.element.default)&&void 0!==e?e:null}},{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:null!==t&&void 0!==t?t:null,formattedValue:this.formatValue(null!==t&&void 0!==t?t:null)},(function(){e.commitWidgetValue({fromUi:!1})}))}},{key:"canDecrement",get:function(){return!(0,C.le)(this.state.value)&&this.state.value-this.getStep()>=this.getMin()}},{key:"canIncrement",get:function(){return!(0,C.le)(this.state.value)&&this.state.value+this.getStep()<=this.getMax()}},{key:"render",value:function(){var e,t=this.props,n=t.element,i=t.width,r=t.disabled,o=t.widgetMgr,a=t.theme,l=this.state,d=l.formattedValue,c=l.dirty,m=l.isFocused,p={width:i},f=!this.canDecrement||r,w=!this.canIncrement||r,S=(0,C.le)(n.default)&&!r;return this.formClearHelper.manageFormClearListener(o,n.formId,this.onFormCleared),(0,R.jsxs)("div",{className:"stNumberInput",style:p,"data-testid":"stNumberInput",children:[(0,R.jsx)(k.O,{label:n.label,disabled:r,labelVisibility:(0,C.iF)(null===(e=n.labelVisibility)||void 0===e?void 0:e.value),children:n.help&&(0,R.jsx)(V.dT,{children:(0,R.jsx)(g.Z,{content:n.help,placement:v.u.TOP_RIGHT})})}),(0,R.jsxs)(I,{className:m?"focused":"",children:[(0,R.jsx)(y.Z,{type:"number",inputRef:this.inputRef,value:d||void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:this.onChange,onKeyPress:this.onKeyPress,onKeyDown:this.onKeyDown,clearable:S,clearOnEscape:S,disabled:r,"aria-label":n.label,overrides:{ClearIcon:{props:{overrides:{Svg:{style:{color:a.colors.darkGray,transform:"scale(1.4)",width:a.spacing.twoXL,marginRight:"-1.25em",":hover":{fill:a.colors.bodyText}}}}}},Input:{props:{step:this.getStep(),min:this.getMin(),max:this.getMax()},style:{lineHeight:"1.4",paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}},InputContainer:{style:function(){return{borderTopRightRadius:0,borderBottomRightRadius:0}}},Root:{style:function(){return{borderTopRightRadius:0,borderBottomRightRadius:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0}}}}}),i>h.A.hideWidgetDetails&&(0,R.jsxs)(F,{children:[(0,R.jsx)(D,{className:"step-down",onClick:this.modifyValueUsingStep("decrement"),disabled:f,tabIndex:-1,children:(0,R.jsx)(b.Z,{content:s.W,size:"xs",color:this.canDecrement?"inherit":"disabled"})}),(0,R.jsx)(D,{className:"step-up",onClick:this.modifyValueUsingStep("increment"),disabled:w,tabIndex:-1,children:(0,R.jsx)(b.Z,{content:u.v,size:"xs",color:this.canIncrement?"inherit":"disabled"})})]})]}),i>h.A.hideWidgetDetails&&(0,R.jsx)(M,{children:(0,R.jsx)(x.Z,{dirty:c,value:null!==d&&void 0!==d?d:"",className:"input-instructions",inForm:(0,C.$b)({formId:n.formId})})})]})}}]),n}(l.PureComponent);var W=(0,d.b)(S)}}]);
|