streamlit-nightly 1.38.1.dev20240910__py2.py3-none-any.whl → 1.38.1.dev20240912__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/dataframe_util.py +1 -1
- streamlit/elements/doc_string.py +1 -9
- streamlit/elements/lib/policies.py +0 -5
- streamlit/elements/vega_charts.py +8 -3
- streamlit/runtime/caching/cache_utils.py +5 -1
- streamlit/runtime/credentials.py +2 -2
- streamlit/runtime/scriptrunner/magic.py +2 -20
- streamlit/static/asset-manifest.json +8 -8
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/1086.b7ec1344.chunk.js +5 -0
- streamlit/static/static/js/1260.eaaa4e75.chunk.js +5 -0
- streamlit/static/static/js/5618.f7838309.chunk.js +5 -0
- streamlit/static/static/js/{5711.2f36e813.chunk.js → 5711.229cb7d0.chunk.js} +1 -1
- streamlit/static/static/js/7612.39e7938b.chunk.js +2 -0
- streamlit/static/static/js/954.88cae675.chunk.js +5 -0
- streamlit/static/static/js/{main.7b7fe9ac.js → main.536604a4.js} +2 -2
- streamlit/watcher/event_based_path_watcher.py +11 -2
- streamlit/watcher/folder_black_list.py +1 -0
- streamlit/watcher/path_watcher.py +5 -0
- {streamlit_nightly-1.38.1.dev20240910.dist-info → streamlit_nightly-1.38.1.dev20240912.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.38.1.dev20240910.dist-info → streamlit_nightly-1.38.1.dev20240912.dist-info}/RECORD +27 -27
- streamlit/static/static/js/1086.1bb52316.chunk.js +0 -5
- streamlit/static/static/js/1260.4017a70f.chunk.js +0 -5
- streamlit/static/static/js/2266.48d2ebd0.chunk.js +0 -2
- streamlit/static/static/js/5618.08be9e66.chunk.js +0 -5
- streamlit/static/static/js/954.3cc76210.chunk.js +0 -5
- /streamlit/static/static/js/{2266.48d2ebd0.chunk.js.LICENSE.txt → 7612.39e7938b.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{main.7b7fe9ac.js.LICENSE.txt → main.536604a4.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.38.1.dev20240910.data → streamlit_nightly-1.38.1.dev20240912.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.38.1.dev20240910.dist-info → streamlit_nightly-1.38.1.dev20240912.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.38.1.dev20240910.dist-info → streamlit_nightly-1.38.1.dev20240912.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.38.1.dev20240910.dist-info → streamlit_nightly-1.38.1.dev20240912.dist-info}/top_level.txt +0 -0
@@ -56,6 +56,15 @@ if TYPE_CHECKING:
|
|
56
56
|
_LOGGER: Final = get_logger(__name__)
|
57
57
|
|
58
58
|
|
59
|
+
def _get_abs_folder_path(path: str) -> str:
|
60
|
+
"""Get the absolute folder path for a given path.
|
61
|
+
|
62
|
+
If the path is a directory, return the absolute path.
|
63
|
+
Otherwise, return the absolute path of the parent directory.
|
64
|
+
"""
|
65
|
+
return os.path.abspath(path if os.path.isdir(path) else os.path.dirname(path))
|
66
|
+
|
67
|
+
|
59
68
|
class EventBasedPathWatcher:
|
60
69
|
"""Watches a single path on disk using watchdog"""
|
61
70
|
|
@@ -164,7 +173,7 @@ class _MultiPathWatcher:
|
|
164
173
|
allow_nonexistent: bool = False,
|
165
174
|
) -> None:
|
166
175
|
"""Start watching a path."""
|
167
|
-
folder_path =
|
176
|
+
folder_path = _get_abs_folder_path(path)
|
168
177
|
|
169
178
|
with self._lock:
|
170
179
|
folder_handler = self._folder_handlers.get(folder_path)
|
@@ -186,7 +195,7 @@ class _MultiPathWatcher:
|
|
186
195
|
|
187
196
|
def stop_watching_path(self, path: str, callback: Callable[[str], None]) -> None:
|
188
197
|
"""Stop watching a path."""
|
189
|
-
folder_path =
|
198
|
+
folder_path = _get_abs_folder_path(path)
|
190
199
|
|
191
200
|
with self._lock:
|
192
201
|
folder_handler = self._folder_handlers.get(folder_path)
|
@@ -14,6 +14,7 @@
|
|
14
14
|
|
15
15
|
from __future__ import annotations
|
16
16
|
|
17
|
+
import os
|
17
18
|
from typing import Callable, Type, Union
|
18
19
|
|
19
20
|
import streamlit.watcher
|
@@ -147,6 +148,10 @@ def watch_dir(
|
|
147
148
|
glob_pattern: str | None = None,
|
148
149
|
allow_nonexistent: bool = False,
|
149
150
|
) -> bool:
|
151
|
+
# Add a trailing slash to the path to ensure
|
152
|
+
# that its interpreted as a directory.
|
153
|
+
path = os.path.join(path, "")
|
154
|
+
|
150
155
|
return _watch_path(
|
151
156
|
path,
|
152
157
|
on_dir_changed,
|
@@ -6,7 +6,7 @@ streamlit/config.py,sha256=HUykQ37RP1SOfyu7eXKeNxAnLQIK1VhgfIQnfb7_aTk,40262
|
|
6
6
|
streamlit/config_option.py,sha256=pGzB3n-PRk-Zc1QgV4-_5PjlARQ0BDi7hx2UzeoyynE,11466
|
7
7
|
streamlit/config_util.py,sha256=-MGb5eBrsZvNmqywmiBmo27ll1F9OmCDX4toGWglv2c,6015
|
8
8
|
streamlit/cursor.py,sha256=SXJcot8mc1htkXx1jnIWmvYRaFPlPpTOhPoYH-LPmos,6026
|
9
|
-
streamlit/dataframe_util.py,sha256=
|
9
|
+
streamlit/dataframe_util.py,sha256=0wxxXYNnLibiq_LDYXN3031bBFqDXZJJxhc9DIL0f7k,47836
|
10
10
|
streamlit/delta_generator.py,sha256=_E28J_EEEbNqxwLNfdxpCbKdVkydyDKWQibZXi--SSo,21795
|
11
11
|
streamlit/delta_generator_singletons.py,sha256=auM2-dFoY0oBk74OfMEcgX6EBLi4cuGmVxcEM-N37Q0,7555
|
12
12
|
streamlit/deprecation_util.py,sha256=3JxWWS424v1kQ-qOq-9sQNYPQ8_UERH3QpYtkWxLP74,6516
|
@@ -63,7 +63,7 @@ streamlit/elements/bokeh_chart.py,sha256=OdeJgmyiWH08QninHYQerxSOCyS1TcEwAqfgTuR
|
|
63
63
|
streamlit/elements/code.py,sha256=ZthfR1NdVnBg-L7iWEqN3WxKLiiq9jqt_-E6CRsZo8g,2696
|
64
64
|
streamlit/elements/deck_gl_json_chart.py,sha256=YuN_Uqtlog72vcdDl-waNx7So1UHNs2lSdztu3oDCuA,6867
|
65
65
|
streamlit/elements/dialog_decorator.py,sha256=12lIbNyinnfk_VvSWB8xauAMCT8PPfdn157aIMtudbg,10052
|
66
|
-
streamlit/elements/doc_string.py,sha256=
|
66
|
+
streamlit/elements/doc_string.py,sha256=IuCqpXX0GqKIjCMcaOOHr-fmOixFlCdvCT8d8EIYEAE,16024
|
67
67
|
streamlit/elements/empty.py,sha256=SN94_NJJxW0nMZ-w0XDbpN5h0urdAZi8pQFTslgmSAA,3853
|
68
68
|
streamlit/elements/exception.py,sha256=KcaQP2pvpkKzbXRYTb6lNetY8KDpD-74Aqh_1uP3SGM,8948
|
69
69
|
streamlit/elements/form.py,sha256=iuBYbGd_6pupEPiieMq4gtg5u74leZbmc4r5H9oDPtk,11573
|
@@ -85,7 +85,7 @@ streamlit/elements/snow.py,sha256=WHqk8zmfOr5iD0R-wLlAdlIkDDbiaayguTVmA4e7V_Q,14
|
|
85
85
|
streamlit/elements/spinner.py,sha256=qhA0DZo3ZEYQswFYuNdaXltenvmJR_18mqDQA64bK_Q,2934
|
86
86
|
streamlit/elements/text.py,sha256=_OePOPcWymPrYoey6BFeB6IvjTmnUszFS9W0veUu3LA,1856
|
87
87
|
streamlit/elements/toast.py,sha256=UFh4Is6a9-aWG43SZadknKOEC16_KIvg6AR9QR1tnxk,3711
|
88
|
-
streamlit/elements/vega_charts.py,sha256=
|
88
|
+
streamlit/elements/vega_charts.py,sha256=3CNRBL1UDqUKJDtnaN_AmkaP-xhpiLY2hHrTmynWTlY,77405
|
89
89
|
streamlit/elements/write.py,sha256=sVbxT5ihOaL-u5jY1gmwNhWfdGz4Mni_CT09jUp2QyM,21703
|
90
90
|
streamlit/elements/lib/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
|
91
91
|
streamlit/elements/lib/built_in_chart_utils.py,sha256=ytQ0IdWiqdWbY4Mi3Giszx-Y9Y9n2dx8w0VYLNyfWIo,37560
|
@@ -100,7 +100,7 @@ streamlit/elements/lib/js_number.py,sha256=21VdJozG82xyZauYrdR819tb8mNNBxu-YzTXR
|
|
100
100
|
streamlit/elements/lib/mutable_status_container.py,sha256=qUacv7MzabfioZ-bnF4nR6AV-68sa_gVowyWuV4P1sM,6781
|
101
101
|
streamlit/elements/lib/options_selector_utils.py,sha256=ME6H_3uvCKLOSk6-N0sYtLPOgO61PY3QIMq_WHu6-Hk,8916
|
102
102
|
streamlit/elements/lib/pandas_styler_utils.py,sha256=VMo1RnsnU5KpiA73heGHCN1qYlRP8IE7a3pqSvvKthk,8121
|
103
|
-
streamlit/elements/lib/policies.py,sha256=
|
103
|
+
streamlit/elements/lib/policies.py,sha256=WKf7zlSCa-helRBI18bXrSjDikAaiLJglO-z9ija5N4,6766
|
104
104
|
streamlit/elements/lib/streamlit_plotly_theme.py,sha256=DgMP_PWTfFO5J__q8bGxoT3ey5z727582wDD_u3UaPU,8307
|
105
105
|
streamlit/elements/lib/subtitle_utils.py,sha256=ciPgQ6Yi3NS7OdFgDH6lGFwDZpv022flEyQKY5lHNiE,6245
|
106
106
|
streamlit/elements/lib/utils.py,sha256=PQTNPP-9u2pe3iDniDHju04WaPcf-IhqKBtdVZhdTt4,6130
|
@@ -293,7 +293,7 @@ streamlit/runtime/__init__.py,sha256=Xx5OVY9Nv8Z6ndbYtJBm3lgR2pn83omEOlDaSl9V2dE
|
|
293
293
|
streamlit/runtime/app_session.py,sha256=r-Hhk6G6WNb_G-UgceR92wIqShhpwB4YwEzYc1O81nY,37478
|
294
294
|
streamlit/runtime/connection_factory.py,sha256=20-GrwBjmPz2CnOhWbq3MYHc-Ouyce9EuXBqCHEqsls,12503
|
295
295
|
streamlit/runtime/context.py,sha256=d3pmxQJdVY4RE10mlAVvrzSgokk4Uyr0fWQeAPWT8R4,6595
|
296
|
-
streamlit/runtime/credentials.py,sha256=
|
296
|
+
streamlit/runtime/credentials.py,sha256=j5ScrF95GmjAaGNNPK4KDkGBrqr_Eza9OLBJxAU2PRU,11352
|
297
297
|
streamlit/runtime/forward_msg_cache.py,sha256=Oj-c3BhTRLrXhGBzX21ioq8gTsN4nqjyRL0jr4TqlZk,9750
|
298
298
|
streamlit/runtime/forward_msg_queue.py,sha256=8Kt1z0V3wi7j8nYWc52ou18uJxu2hOjdBWbCQogZGGk,7280
|
299
299
|
streamlit/runtime/fragment.py,sha256=pbTQ5Rn8hsKkUlTR4CYYzQRO_xRXuTRycEbEbstn9oI,18944
|
@@ -317,7 +317,7 @@ streamlit/runtime/caching/cache_data_api.py,sha256=-iOGrXuTmgC1wWn4S0oxOmt91n7KR
|
|
317
317
|
streamlit/runtime/caching/cache_errors.py,sha256=JFRKjUSjg6UEUznYoNwqtgFLwYbG1hDmXSrONwzf2Uc,4792
|
318
318
|
streamlit/runtime/caching/cache_resource_api.py,sha256=rJevU0UVp3q8_AzqMDF1aobqh8bv1D-kiTGLKGqpRPo,18962
|
319
319
|
streamlit/runtime/caching/cache_type.py,sha256=P21JWouFWU0qXQyHbM3y3A1pLZud90ALGeO4bQ5Pvew,1131
|
320
|
-
streamlit/runtime/caching/cache_utils.py,sha256=
|
320
|
+
streamlit/runtime/caching/cache_utils.py,sha256=qH3Ht35Pu1Kf7yA9TmsdJ0RwT93EtkiPH_9e7Dmu_bA,18759
|
321
321
|
streamlit/runtime/caching/cached_message_replay.py,sha256=NksOYZFlsgbBCcNDHt7R2Sq1nH80NlwrWbu9PgmgJJ4,11127
|
322
322
|
streamlit/runtime/caching/hashing.py,sha256=wKQteH6AtXyCt2n_c3tzFuUCoVyv5lUGUtJrQm3FXd8,19456
|
323
323
|
streamlit/runtime/caching/legacy_cache_api.py,sha256=6bv2_ikipUHyEV3k3xz1nk_bk9xg7bzCXBmL2VQSpYk,6041
|
@@ -328,7 +328,7 @@ streamlit/runtime/caching/storage/in_memory_cache_storage_wrapper.py,sha256=VT5D
|
|
328
328
|
streamlit/runtime/caching/storage/local_disk_cache_storage.py,sha256=O8rrHmQyz6AKznX6f0rubYgSMmCo8_5meNmQKIcF3jY,9315
|
329
329
|
streamlit/runtime/scriptrunner/__init__.py,sha256=hyj0No43i0GIXML_m21B5ngKbWu65mgRYScxJpqfdj8,1266
|
330
330
|
streamlit/runtime/scriptrunner/exec_code.py,sha256=tlkfAbIkQZk4B_Vg7XiVgpA7E2AJP5T68Ttl-i6f4tg,4611
|
331
|
-
streamlit/runtime/scriptrunner/magic.py,sha256=
|
331
|
+
streamlit/runtime/scriptrunner/magic.py,sha256=5hRQEz6EMkNrxCvfwGbYTsh17ZqqQkfHnhcVZgQTBBQ,9068
|
332
332
|
streamlit/runtime/scriptrunner/magic_funcs.py,sha256=_npS_w-0riPNr1-dPyOSjqrwTXoeSR-gXWFkChQ5Yjc,1056
|
333
333
|
streamlit/runtime/scriptrunner/script_cache.py,sha256=ZpaB4T50_GYfhMc2dajSMXWCmS3kaUJ_tPHNVt_flBg,2856
|
334
334
|
streamlit/runtime/scriptrunner/script_runner.py,sha256=sFdI_2DFuM-OMwBiKdvUVolYSlzrOONUx1b0Y8hrcQ4,28819
|
@@ -344,20 +344,18 @@ streamlit/runtime/state/safe_session_state.py,sha256=WLFFyMtP4F19TWWBarKtSP942Ie
|
|
344
344
|
streamlit/runtime/state/session_state.py,sha256=7cQWvmHdRVvsYhxzwPrr8mFR729NeGT-sfjRglHKE90,27298
|
345
345
|
streamlit/runtime/state/session_state_proxy.py,sha256=IWF43f6UWL4KyxNWF3aTv1sbykNI2hI5UsPF2UIfpdE,5524
|
346
346
|
streamlit/runtime/state/widgets.py,sha256=BS7Xq0kFbu7N2tFEm5zlcDPCpDYhM09grH7Nf7DNvfg,6620
|
347
|
-
streamlit/static/asset-manifest.json,sha256=
|
347
|
+
streamlit/static/asset-manifest.json,sha256=GtlzTMzEP23AFCQlHnmHviQIpWcPJ2zrpxaaHS8-YoI,14497
|
348
348
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
349
|
-
streamlit/static/index.html,sha256=
|
349
|
+
streamlit/static/index.html,sha256=q1_JWWGZf0RF_UOoJ1VJBgru_zUodWQhMd6sXHowcSk,891
|
350
350
|
streamlit/static/static/css/3156.93909c7e.chunk.css,sha256=6dVarHz_P5ACNrmcAZkXoNnjV5Z6CfnAXpxLBx-i1aw,12093
|
351
351
|
streamlit/static/static/css/5711.c24b25fa.chunk.css,sha256=oOQFf_CH_DqXNsgcLiXOIk4uuluqNRMkobp8p6uc3y4,2666
|
352
352
|
streamlit/static/static/css/7077.81b3d18f.chunk.css,sha256=7WxsSsC_REs_rrfQTODJt34QZfNePqEv_fc-KFLcOz4,33375
|
353
353
|
streamlit/static/static/css/main.5513bd04.css,sha256=9vuriEsFvHDyAwsI3vtBY9PNL8UOjqGwWZ4lZHsdFzw,29356
|
354
|
-
streamlit/static/static/js/1086.
|
354
|
+
streamlit/static/static/js/1086.b7ec1344.chunk.js,sha256=ICejc57fABtfcCrtN79USr88-QLvpoJ8fg3PDhJIMek,11520
|
355
355
|
streamlit/static/static/js/1101.13462bff.chunk.js,sha256=Iu-ECFDUDJJ14X1UQR4KIqtBHDhW60i15dbuEzx9HT4,3259
|
356
|
-
streamlit/static/static/js/1260.
|
356
|
+
streamlit/static/static/js/1260.eaaa4e75.chunk.js,sha256=D4b-njWfDdDxGvBk2sE2UsMskW58R2vSAhjzoAABdys,10865
|
357
357
|
streamlit/static/static/js/1674.86aea8e0.chunk.js,sha256=g2RyDOrwFlJImiNgHT8Yo_LVDjfqRV5DHDhXK_IYdQE,9236
|
358
358
|
streamlit/static/static/js/1674.86aea8e0.chunk.js.LICENSE.txt,sha256=426lVBKMW2FKu5BqnSDpZnhms1QqJZ-nDvqwC62w-Z8,479
|
359
|
-
streamlit/static/static/js/2266.48d2ebd0.chunk.js,sha256=WJuwbSw-TnNYHQwho60l_pjKSpaz5nsL_CR6Eug-XIo,913210
|
360
|
-
streamlit/static/static/js/2266.48d2ebd0.chunk.js.LICENSE.txt,sha256=MFVywCe4fCte7HrHaVpL-jnDWhe9ei9zkyRvRUXQU-4,212
|
361
359
|
streamlit/static/static/js/245.68a062da.chunk.js,sha256=XGCu0HClBgZFU6cM2_My_W2pTpp-2dc8LiQKk2oh6pw,15672
|
362
360
|
streamlit/static/static/js/2627.2462a014.chunk.js,sha256=PdOFzDOJSqybqqZpNdX3C-QzWLq7SuVcMjhY--a7mJA,21253
|
363
361
|
streamlit/static/static/js/3156.002c6ee0.chunk.js,sha256=bI50HQVW5dt6DZRbFZgJzBJ9cf1ds3ZfP1PlIQFc2GE,51174
|
@@ -376,9 +374,9 @@ streamlit/static/static/js/491.c1a2c0b2.chunk.js.LICENSE.txt,sha256=pyz0N_wsBwaF
|
|
376
374
|
streamlit/static/static/js/4942.e4db7877.chunk.js,sha256=3ccntc6WQ6_-pCJFp4NZHE3QbPQ1TEaifagA-pMYnC4,107578
|
377
375
|
streamlit/static/static/js/5180.e826dd46.chunk.js,sha256=teI3S0uk0xNfX40YLSMq9XDCx_-XnIMCE-hruy_WNBc,15070
|
378
376
|
streamlit/static/static/js/5544.2769497c.chunk.js,sha256=i3hJL-txrBM9F9IbWF42kHQHINgh9aa1NcAVtoxRSI0,32764
|
379
|
-
streamlit/static/static/js/5618.
|
377
|
+
streamlit/static/static/js/5618.f7838309.chunk.js,sha256=H2dZqjS0UMuW4lFGtLMGNzA1qMwFalSPl2DUerBQ4eQ,11233
|
380
378
|
streamlit/static/static/js/5625.3a8dc81f.chunk.js,sha256=ctHaemChBpCpIKjDrNErfthS__GZOvgaBZg7XR4WIUA,9172
|
381
|
-
streamlit/static/static/js/5711.
|
379
|
+
streamlit/static/static/js/5711.229cb7d0.chunk.js,sha256=2-OgddZ4nZO-roAPuoOSdeOS8u6otLqueBTBp0ykl24,14727
|
382
380
|
streamlit/static/static/js/5764.5a55e5be.chunk.js,sha256=EXfo-JRIKlOsXU91rI9-4Nu1v-wZqsQF2GTHmSydOZk,32464
|
383
381
|
streamlit/static/static/js/5828.f8572ba4.chunk.js,sha256=KrgzrwMJj70Ou4vPwvpeUEd-E7fKQUKUGK_y6wGkEf8,2272
|
384
382
|
streamlit/static/static/js/583.61ac7fde.chunk.js,sha256=ZNm9WsrrmRUjAJPKbaBwKDxJeXYgp3Prip_YtHMU3Nc,3252
|
@@ -395,6 +393,8 @@ streamlit/static/static/js/7193.2594a18c.chunk.js,sha256=w1wKaTT6fNkXcLs9w672lt4
|
|
395
393
|
streamlit/static/static/js/7493.95e79b96.chunk.js,sha256=oT192_LR7p73BoMUVvm2SxxJI9tR1hOkcuXM-63nnSQ,9659
|
396
394
|
streamlit/static/static/js/7591.116b650a.chunk.js,sha256=V9qswNixcml8iqpBy-k8Y66NcNgKQtwyfO3XBxH09oc,20793
|
397
395
|
streamlit/static/static/js/7591.116b650a.chunk.js.LICENSE.txt,sha256=KAhbcQ1jd_N8DfV6lLYlQ_EQOalgErOV-Sf87G-Rh2g,188
|
396
|
+
streamlit/static/static/js/7612.39e7938b.chunk.js,sha256=0W2BvLlso8-80kNOY35UO_DuD8ZAC4zNl6Zr1VWpKO4,804885
|
397
|
+
streamlit/static/static/js/7612.39e7938b.chunk.js.LICENSE.txt,sha256=MFVywCe4fCte7HrHaVpL-jnDWhe9ei9zkyRvRUXQU-4,212
|
398
398
|
streamlit/static/static/js/766.e3700e32.chunk.js,sha256=VPlOlYxsQ-Nptf1M3pbEqYHbqHrexY9bLDQ0MgMmkjg,12213
|
399
399
|
streamlit/static/static/js/7809.063e3004.chunk.js,sha256=clNUuB4ctmZl5jiG0rC7wpxBMYPOlX3zxqhyEqpa-6U,1356
|
400
400
|
streamlit/static/static/js/783.788bb3ab.chunk.js,sha256=fU54-9m8e-yscWpoz9NxxvRje_OcGE5wJijHuVNxMXU,88546
|
@@ -415,10 +415,10 @@ streamlit/static/static/js/9077.e0a8db2a.chunk.js,sha256=vGwtD_Xd3JAHWJJEVQUJKWO
|
|
415
415
|
streamlit/static/static/js/9114.1ee3d4dd.chunk.js,sha256=ZjN7YT6FT2pyyEUVdJu80NGewtVTZegXbLOOXH4xVZM,7362
|
416
416
|
streamlit/static/static/js/9464.7e9a3c0a.chunk.js,sha256=63Fg1-eQ1Sx7Hb6rqtQaTOJ7CTZ8GZdyl7aMZJ-NcI8,1350
|
417
417
|
streamlit/static/static/js/9528.746f7a0e.chunk.js,sha256=KL6FfepG5LOH0P5pH4ieh5-rvx5o4YD77PKVAZIGlPg,1887
|
418
|
-
streamlit/static/static/js/954.
|
418
|
+
streamlit/static/static/js/954.88cae675.chunk.js,sha256=i3TUaP6h20hq1vPh2WKkrSiw5MAiPm00-2F3ZmlvgFI,8660
|
419
419
|
streamlit/static/static/js/9923.7061d124.chunk.js,sha256=WeDEW7AM0VDnIJzQv9UykMvjG0nbYX6BTRyKV-zBlyE,5951
|
420
|
-
streamlit/static/static/js/main.
|
421
|
-
streamlit/static/static/js/main.
|
420
|
+
streamlit/static/static/js/main.536604a4.js,sha256=7zPnZhcztSSpJ84aBRlM6a8qPyIocPrUz-bhjIgKVGo,4514482
|
421
|
+
streamlit/static/static/js/main.536604a4.js.LICENSE.txt,sha256=zBIKKHKi84ZOA6IoZ3tlc9xb3yukNP-rM98cZVvzteg,4398
|
422
422
|
streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
423
423
|
streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
424
424
|
streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
@@ -517,10 +517,10 @@ streamlit/vendor/ipython/modified_sys_path.py,sha256=ZqgBdpdyc_pWkieJUhKDdmW9sIQ
|
|
517
517
|
streamlit/vendor/pympler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
518
518
|
streamlit/vendor/pympler/asizeof.py,sha256=noLIqizkYzTkYtA4k8fyvKeiIh8fW9ipW27YP56kQ6o,87925
|
519
519
|
streamlit/watcher/__init__.py,sha256=Tn9E295dBAPIF38TAiWdfIoCsJWXU6rgY1FlxNmLqUU,915
|
520
|
-
streamlit/watcher/event_based_path_watcher.py,sha256=
|
521
|
-
streamlit/watcher/folder_black_list.py,sha256=
|
520
|
+
streamlit/watcher/event_based_path_watcher.py,sha256=aQSAekJr_4N3Wwn44aN_TDrr_NOIG2juWXU655ocO-E,14949
|
521
|
+
streamlit/watcher/folder_black_list.py,sha256=HQ4Ty5SYDdh-rAl_8zjm8NC4FTwOLvnhOSEoaNU837c,2360
|
522
522
|
streamlit/watcher/local_sources_watcher.py,sha256=w1Hg7B-C3K4ECrb5C7UaZ8MBANNI78gGE84Z7Xt9_tc,8650
|
523
|
-
streamlit/watcher/path_watcher.py,sha256
|
523
|
+
streamlit/watcher/path_watcher.py,sha256=NUdOMgV87oLs2wxLFIh8Fz1HjBlhbE4pEAtxReQKLCE,5724
|
524
524
|
streamlit/watcher/polling_path_watcher.py,sha256=VwQ06abbvHSIuvR66YpFDx9ANhrzTmoQylKqSjUosFE,3822
|
525
525
|
streamlit/watcher/util.py,sha256=uDsWPxQ8WLNQ4U_MCqWm38H7BEjSrBpPsIZj1ySK8KM,5203
|
526
526
|
streamlit/web/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
|
@@ -538,9 +538,9 @@ streamlit/web/server/server_util.py,sha256=C3M971XFoEXTMufQLwHbZdtZOE30nWx-2WiXm
|
|
538
538
|
streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
|
539
539
|
streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
|
540
540
|
streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
|
541
|
-
streamlit_nightly-1.38.1.
|
542
|
-
streamlit_nightly-1.38.1.
|
543
|
-
streamlit_nightly-1.38.1.
|
544
|
-
streamlit_nightly-1.38.1.
|
545
|
-
streamlit_nightly-1.38.1.
|
546
|
-
streamlit_nightly-1.38.1.
|
541
|
+
streamlit_nightly-1.38.1.dev20240912.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
|
542
|
+
streamlit_nightly-1.38.1.dev20240912.dist-info/METADATA,sha256=SJy37g2NwcLo6kkXW7l51hgZ4NbI34lxu6VaIg_v0O8,8512
|
543
|
+
streamlit_nightly-1.38.1.dev20240912.dist-info/WHEEL,sha256=qUzzGenXXuJTzyjFah76kDVqDvnk-YDzY00svnrl84w,109
|
544
|
+
streamlit_nightly-1.38.1.dev20240912.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
545
|
+
streamlit_nightly-1.38.1.dev20240912.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
546
|
+
streamlit_nightly-1.38.1.dev20240912.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1086],{68035:(e,t,r)=>{r.d(t,{A:()=>c});r(58878);var n=r(25571),o=r(78286),i=r(89653);const a=r(60667).i7`
|
2
|
-
50% {
|
3
|
-
color: rgba(0, 0, 0, 0);
|
4
|
-
}
|
5
|
-
`,s=(0,i.A)("span",{target:"edlqvik0"})((e=>{let{includeDot:t,shouldBlink:r,theme:n}=e;return{...t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:"0 5px"}}:{},...r?{color:n.colors.red,animationName:`${a}`,animationDuration:"0.5s",animationIterationCount:5}:{}}}),"");var l=r(90782);const c=e=>{let{dirty:t,value:r,maxLength:i,className:a,type:c="single",inForm:u}=e;const d=[],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.push((0,l.jsx)(s,{includeDot:d.length>0,shouldBlink:t,children:e},d.length))};if(t){const e=u?"submit form":"apply";if("multiline"===c){p(`Press ${(0,n.u_)()?"\u2318":"Ctrl"}+Enter to ${e}`)}else"single"===c&&p(`Press Enter to ${e}`)}return i&&("chat"!==c||t)&&p(`${r.length}/${i}`,t&&r.length>=i),(0,l.jsx)(o.tp,{"data-testid":"InputInstructions",className:a,children:d})}},1086:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var n=r(58878),o=r(8151),i=r(68102),a=r(68622),s=n.forwardRef((function(e,t){return n.createElement(a.I,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),n.createElement("rect",{width:24,height:24,fill:"none"}),n.createElement("path",{d:"M3 5.51v3.71c0 .46.31.86.76.97L11 12l-7.24 1.81c-.45.11-.76.51-.76.97v3.71c0 .72.73 1.2 1.39.92l15.42-6.49c.82-.34.82-1.5 0-1.84L4.39 4.58C3.73 4.31 3 4.79 3 5.51z"}))}));s.displayName="Send";var l=r(94928),c=r(64611),u=r(68035),d=r(58144),p=r(89653);const f=(0,p.A)("div",{target:"e1d2x3se4"})((e=>{var t;let{theme:r,width:n}=e;return{borderRadius:r.radii.default,display:"flex",backgroundColor:null!==(t=r.colors.widgetBackgroundColor)&&void 0!==t?t:r.colors.secondaryBg,width:`${n}px`}}),""),h=(0,p.A)("div",{target:"e1d2x3se3"})((e=>{let{theme:t}=e;return{backgroundColor:t.colors.transparent,position:"relative",flexGrow:1,borderRadius:t.radii.default,display:"flex",alignItems:"center"}}),""),y=(0,p.A)("button",{target:"e1d2x3se2"})((e=>{let{theme:t,disabled:r,extended:n}=e;const o=(0,d.iq)(t),[i,a]=o?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:n?t.radii.none:t.radii.default,borderTopLeftRadius:n?t.radii.default:t.radii.none,borderBottomRightRadius:t.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:r?i:a,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:o?t.colors.gray10:t.colors.gray90},"&:hover":{backgroundColor:t.colors.primary,color:t.colors.white},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),g=(0,p.A)("div",{target:"e1d2x3se1"})((()=>({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:"0px",pointerEvents:"none"})),""),b=(0,p.A)("div",{target:"e1d2x3se0"})({name:"1lm6gnd",styles:"position:absolute;bottom:0px;right:3rem"});var m=r(90782);const v=function(e){let{width:t,element:r,widgetMgr:i,fragmentId:a}=e;const p=(0,o.u)(),[v,x]=(0,n.useState)(!1),[w,O]=(0,n.useState)(r.default),[j,C]=(0,n.useState)(0),S=(0,n.useRef)(null),A=(0,n.useRef)({minHeight:0,maxHeight:0}),k=()=>{S.current&&S.current.focus(),w&&(i.setStringTriggerValue(r,w,{fromUi:!0},a),x(!1),O(""),C(0))};(0,n.useEffect)((()=>{if(r.setValue){r.setValue=!1;const e=r.value||"";O(e),x(""!==e)}}),[r]),(0,n.useEffect)((()=>{if(S.current){const{offsetHeight:e}=S.current;A.current.minHeight=e,A.current.maxHeight=6.5*e}}),[S]);const{disabled:P,placeholder:R,maxChars:I}=r,$=(0,d.iq)(p),{minHeight:E,maxHeight:T}=A.current,B=$?p.colors.gray70:p.colors.gray80,z=!!(j>0&&S.current)&&Math.abs(j-E)>1;return(0,m.jsx)(f,{className:"stChatInput","data-testid":"stChatInput",width:t,children:(0,m.jsxs)(h,{children:[(0,m.jsx)(l.A,{inputRef:S,value:w,placeholder:R,onChange:e=>{const{value:t}=e.target,{maxChars:n}=r;0!==n&&t.length>n||(x(""!==t),O(t),C((()=>{let e=0;const{current:t}=S;if(t){const r=t.placeholder;t.placeholder="",t.style.height="auto",e=t.scrollHeight,t.placeholder=r,t.style.height=""}return e})()))},onKeyDown:e=>{const{metaKey:t,ctrlKey:r,shiftKey:n}=e;(e=>{var t;const{keyCode:r,key:n}=e;return("Enter"===n||13===r||10===r)&&!(!0===(null===(t=e.nativeEvent)||void 0===t?void 0:t.isComposing))})(e)&&!n&&!r&&!t&&(e.preventDefault(),k())},"aria-label":R,disabled:P,rows:1,overrides:{Root:{style:{minHeight:p.sizes.minElementHeight,outline:"none",backgroundColor:p.colors.transparent,borderLeftWidth:p.sizes.borderWidth,borderRightWidth:p.sizes.borderWidth,borderTopWidth:p.sizes.borderWidth,borderBottomWidth:p.sizes.borderWidth,width:`${t}px`}},InputContainer:{style:{backgroundColor:p.colors.transparent}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:p.lineHeights.inputWidget,backgroundColor:p.colors.transparent,"::placeholder":{color:B},height:z?`${j+1}px`:"auto",maxHeight:T?`${T}px`:"none",paddingRight:"3rem",paddingLeft:p.spacing.sm,paddingBottom:p.spacing.sm,paddingTop:p.spacing.sm}}}}),t>p.breakpoints.hideWidgetDetails&&(0,m.jsx)(b,{children:(0,m.jsx)(u.A,{dirty:v,value:w,maxLength:I,type:"chat",inForm:!1})}),(0,m.jsx)(g,{children:(0,m.jsx)(y,{onClick:k,disabled:!v||P,extended:z,"data-testid":"stChatInputSubmitButton",children:(0,m.jsx)(c.A,{content:s,size:"xl",color:"inherit"})})})]})})}},94928:(e,t,r)=>{r.d(t,{A:()=>A});var n=r(58878),o=r(35331),i=r(18648),a=r(92850),s=r(57224),l=r(81301);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(0,s.I4)("div",(function(e){return u(u({},(0,l.vt)(u(u({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})}));p.displayName="StyledTextAreaRoot",p.displayName="StyledTextAreaRoot";var f=(0,s.I4)("div",(function(e){return(0,l.EO)(u({$positive:!1},e))}));f.displayName="StyledTextareaContainer",f.displayName="StyledTextareaContainer";var h=(0,s.I4)("textarea",(function(e){return u(u({},(0,l.n)(e)),{},{resize:e.$resize||"none"})}));function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}(this,r)}}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}h.displayName="StyledTextarea",h.displayName="StyledTextarea";var S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(c,e);var t,r,s,l=w(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return C(O(e=l.call.apply(l,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),C(O(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),C(O(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=c,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=b((0,o._O)(t.Root,p),2),s=r[0],l=r[1],c=(0,o.Qp)({Input:{component:h},InputContainer:{component:f}},t);return n.createElement(s,g({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},l),n.createElement(i.A,g({},this.props,{type:a.GT.textarea,overrides:c,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}])&&v(t.prototype,r),s&&v(t,s),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Component);C(S,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:a.SK.default});const A=S}}]);
|
@@ -1,5 +0,0 @@
|
|
1
|
-
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1260],{68035:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});r(58878);var n=r(25571),o=r(78286),i=r(89653);const s=r(60667).i7`
|
2
|
-
50% {
|
3
|
-
color: rgba(0, 0, 0, 0);
|
4
|
-
}
|
5
|
-
`,a=(0,i.A)("span",{target:"edlqvik0"})((t=>{let{includeDot:e,shouldBlink:r,theme:n}=t;return{...e?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:"0 5px"}}:{},...r?{color:n.colors.red,animationName:`${s}`,animationDuration:"0.5s",animationIterationCount:5}:{}}}),"");var l=r(90782);const u=t=>{let{dirty:e,value:r,maxLength:i,className:s,type:u="single",inForm:c}=t;const d=[],p=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.push((0,l.jsx)(a,{includeDot:d.length>0,shouldBlink:e,children:t},d.length))};if(e){const t=c?"submit form":"apply";if("multiline"===u){p(`Press ${(0,n.u_)()?"\u2318":"Ctrl"}+Enter to ${t}`)}else"single"===u&&p(`Press Enter to ${t}`)}return i&&("chat"!==u||e)&&p(`${r.length}/${i}`,e&&r.length>=i),(0,l.jsx)(o.tp,{"data-testid":"InputInstructions",className:s,children:d})}},34752:(t,e,r)=>{"use strict";r.d(e,{X:()=>s,o:()=>i});var n=r(58878),o=r(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(t,e,r){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===t&&this.lastFormId===e||(this.disconnect(),(0,o._L)(e)&&(this.formClearListener=t.addFormClearedListener(e,r),this.lastWidgetMgr=t,this.lastFormId=e))}disconnect(){var t;null===(t=this.formClearListener)||void 0===t||t.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function s(t){let{element:e,widgetMgr:r,onFormCleared:i}=t;(0,n.useEffect)((()=>{if(!(0,o._L)(e.formId))return;const t=r.addFormClearedListener(e.formId,i);return()=>{t.disconnect()}}),[e,r,i])}},81260:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>v});var n=r(58878),o=r(32698),i=r.n(o),s=r(59095),a=r(8151),l=r(29669),u=r(34752),c=r(68035),d=r(70474),p=r(78286),h=r(93480),f=r(997),m=r(25571);const y=(0,r(89653).A)("div",{target:"e11y4ecf0"})((t=>{let{width:e}=t;return{position:"relative",width:e}}),"");var b=r(90782);class g extends n.PureComponent{constructor(t){var e;super(t),e=this,this.formClearHelper=new u.o,this.id=void 0,this.state={dirty:!1,value:this.initialValue},this.commitWidgetValue=function(t){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{widgetMgr:n,element:o,fragmentId:i}=e.props;n.setStringValue(o,e.state.value,t,i),r&&e.setState({dirty:!1})},this.onFormCleared=()=>{this.setState(((t,e)=>{var r;return{value:null!==(r=e.element.default)&&void 0!==r?r:null}}),(()=>this.commitWidgetValue({fromUi:!0})))},this.onBlur=()=>{this.state.dirty&&this.commitWidgetValue({fromUi:!0})},this.onChange=t=>{const{value:e}=t.target,{element:r}=this.props,{maxChars:n}=r;0!==n&&e.length>n||((0,m.Ml)(this.props.element)?this.setState({dirty:!0,value:e},(()=>{this.commitWidgetValue({fromUi:!0},!1)})):this.setState({dirty:!0,value:e}))},this.onKeyPress=t=>{"Enter"===t.key&&(this.state.dirty&&this.commitWidgetValue({fromUi:!0}),(0,m.Ml)(this.props.element)&&this.props.widgetMgr.submitForm(this.props.element.formId,this.props.fragmentId))},this.id=i()("text_input_")}get initialValue(){var t;const e=this.props.widgetMgr.getStringValue(this.props.element);return null!==(t=null!==e&&void 0!==e?e:this.props.element.default)&&void 0!==t?t:null}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:t}=this.props.element;t&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:t}=this.props.element;this.props.element.setValue=!1,this.setState({value:null!==t&&void 0!==t?t:null},(()=>{this.commitWidgetValue({fromUi:!1})}))}getTypeString(){return this.props.element.type===l.ks.Type.PASSWORD?"password":"text"}render(){var t;const{dirty:e,value:r}=this.state,{element:n,width:o,disabled:i,widgetMgr:a,theme:l}=this.props,{placeholder:u}=n;return this.formClearHelper.manageFormClearListener(a,n.formId,this.onFormCleared),(0,b.jsxs)(y,{className:"stTextInput","data-testid":"stTextInput",width:o,children:[(0,b.jsx)(d.L,{label:n.label,disabled:i,labelVisibility:(0,m.yv)(null===(t=n.labelVisibility)||void 0===t?void 0:t.value),htmlFor:this.id,children:n.help&&(0,b.jsx)(p.j,{children:(0,b.jsx)(h.A,{content:n.help,placement:f.W.TOP_RIGHT})})}),(0,b.jsx)(s.A,{value:null!==r&&void 0!==r?r:"",placeholder:u,onBlur:this.onBlur,onChange:this.onChange,onKeyPress:this.onKeyPress,"aria-label":n.label,disabled:i,id:this.id,type:this.getTypeString(),autoComplete:n.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:l.lineHeights.inputWidget,paddingRight:l.spacing.sm,paddingLeft:l.spacing.sm,paddingBottom:l.spacing.sm,paddingTop:l.spacing.sm}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:l.sizes.minElementHeight,borderLeftWidth:l.sizes.borderWidth,borderRightWidth:l.sizes.borderWidth,borderTopWidth:l.sizes.borderWidth,borderBottomWidth:l.sizes.borderWidth}}}}),o>l.breakpoints.hideWidgetDetails&&(0,b.jsx)(c.A,{dirty:e,value:null!==r&&void 0!==r?r:"",maxLength:n.maxChars,inForm:(0,m.Ml)({formId:n.formId})})]})}}const v=(0,a.b)(g)},59095:(t,e,r)=>{"use strict";r.d(e,{A:()=>P});var n=r(58878),o=r(35331),i=r(4842),s=r(18648),a=r(81301),l=r(92850);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}var c=["Root","StartEnhancer","EndEnhancer"],d=["startEnhancer","endEnhancer","overrides"];function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(l){a=!0,o=l}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w(t);if(e){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===u(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,r)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function O(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var j=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(w,t);var e,r,u,f=g(w);function w(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,w);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return O(v(t=f.call.apply(f,[this].concat(r))),"state",{isFocused:t.props.autoFocus||!1}),O(v(t),"onFocus",(function(e){t.setState({isFocused:!0}),t.props.onFocus(e)})),O(v(t),"onBlur",(function(e){t.setState({isFocused:!1}),t.props.onBlur(e)})),t}return e=w,(r=[{key:"render",value:function(){var t=this.props,e=t.startEnhancer,r=t.endEnhancer,u=t.overrides,f=u.Root,y=u.StartEnhancer,b=u.EndEnhancer,g=m(u,c),v=m(t,d),w=h((0,o._O)(f,a.bL),2),O=w[0],j=w[1],P=h((0,o._O)(y,a.P2),2),S=P[0],E=P[1],x=h((0,o._O)(b,a.P2),2),I=x[0],W=x[1],_=(0,i.e)(this.props,this.state);return n.createElement(O,p({"data-baseweb":"input"},_,j,{$adjoined:C(e,r),$hasIconTrailing:this.props.clearable||"password"==this.props.type}),F(e)&&n.createElement(S,p({},_,E,{$position:l.vN.start}),"function"===typeof e?e(_):e),n.createElement(s.A,p({},v,{overrides:g,adjoined:C(e,r),onFocus:this.onFocus,onBlur:this.onBlur})),F(r)&&n.createElement(I,p({},_,W,{$position:l.vN.end}),"function"===typeof r?r(_):r))}}])&&y(e.prototype,r),u&&y(e,u),Object.defineProperty(e,"prototype",{writable:!1}),w}(n.Component);function C(t,e){return F(t)&&F(e)?l.fb.both:F(t)?l.fb.left:F(e)?l.fb.right:l.fb.none}function F(t){return Boolean(t||0===t)}O(j,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:l.SK.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1});const P=j},32698:(t,e,r)=>{var n=r(30136),o=0;t.exports=function(t){var e=++o;return n(t)+e}}}]);
|