flexablelib-components 3.7.7__tar.gz → 3.7.9__tar.gz
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.
- {flexablelib_components-3.7.7/flexablelib_components.egg-info → flexablelib_components-3.7.9}/PKG-INFO +3 -3
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/__init__.py +1 -1
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/data.py +2 -1
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/inputs.py +8 -2
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/navigation.py +2 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9/flexablelib_components.egg-info}/PKG-INFO +3 -3
- flexablelib_components-3.7.9/flexablelib_components.egg-info/requires.txt +2 -0
- flexablelib_components-3.7.7/flexablelib_components.egg-info/requires.txt +0 -2
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/LICENSE +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/MANIFEST.in +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/README.md +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/base.py +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/dates.py +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/display.py +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/media.py +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/overlays.py +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/py.typed +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components.egg-info/SOURCES.txt +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components.egg-info/dependency_links.txt +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components.egg-info/top_level.txt +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/setup.cfg +0 -0
- {flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flexablelib-components
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.9
|
|
4
4
|
Summary: Interactive terminal components for flexablelib: inputs, dates, tables, forms, menus, tabs, dialogs and more.
|
|
5
5
|
Home-page: https://github.com/Opus-Perpetuus/flexablelib
|
|
6
6
|
Author: Benjamin Ramirez
|
|
@@ -17,8 +17,8 @@ Classifier: Topic :: Software Development :: User Interfaces
|
|
|
17
17
|
Requires-Python: >=3.8
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist: flexablelib>=3.7.
|
|
21
|
-
Requires-Dist: flexablelib-tui>=3.7.
|
|
20
|
+
Requires-Dist: flexablelib>=3.7.9
|
|
21
|
+
Requires-Dist: flexablelib-tui>=3.7.9
|
|
22
22
|
Dynamic: author
|
|
23
23
|
Dynamic: author-email
|
|
24
24
|
Dynamic: classifier
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/__init__.py
RENAMED
|
@@ -18,7 +18,7 @@ keys to the focused component) and also renders on its own with
|
|
|
18
18
|
``render(width)``. See docs/COMPONENTS.md.
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
__version__ = '3.7.
|
|
21
|
+
__version__ = '3.7.9'
|
|
22
22
|
|
|
23
23
|
from .base import Theme, DEFAULT_THEME, Input, Box, Button, frame
|
|
24
24
|
from .inputs import (TextInput, PasswordInput, NumberInput, ExpressionInput,
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/data.py
RENAMED
|
@@ -351,7 +351,8 @@ class DataTable(_Themed):
|
|
|
351
351
|
elif k in ('end', 'G'):
|
|
352
352
|
self.cursor_row = max(0, len(view) - 1)
|
|
353
353
|
elif k == 'right':
|
|
354
|
-
self.col_offset = min(len(self.columns) - 1,
|
|
354
|
+
self.col_offset = max(0, min(len(self.columns) - 1,
|
|
355
|
+
self.col_offset + 1))
|
|
355
356
|
elif k == 'left':
|
|
356
357
|
self.col_offset = max(0, self.col_offset - 1)
|
|
357
358
|
elif len(k) == 1 and k.isdigit() and 0 < int(k) <= len(self.columns):
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/inputs.py
RENAMED
|
@@ -265,8 +265,14 @@ class TextInput(Input):
|
|
|
265
265
|
cursor_col = sum(widths[:self.cursor_pos])
|
|
266
266
|
if cursor_col < self.scroll_x:
|
|
267
267
|
self.scroll_x = cursor_col
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
# The whole cursor cell must fit: a wide character (中, 👍) under
|
|
269
|
+
# the cursor takes two columns, and showing only its first column
|
|
270
|
+
# would leave it out of the view along with the cursor.
|
|
271
|
+
cursor_w = widths[self.cursor_pos] \
|
|
272
|
+
if self.cursor_pos < len(widths) else 1
|
|
273
|
+
cursor_w = max(1, min(cursor_w, avail))
|
|
274
|
+
if cursor_col + cursor_w > self.scroll_x + avail:
|
|
275
|
+
self.scroll_x = cursor_col + cursor_w - avail
|
|
270
276
|
# Never scrolled further than the text needs: once the field is
|
|
271
277
|
# wide enough again (a resize, a shorter value), it shows from the
|
|
272
278
|
# start instead of keeping only the tail it showed when narrow.
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/navigation.py
RENAMED
|
@@ -91,6 +91,8 @@ class Tabs(_Themed):
|
|
|
91
91
|
k = str(key)
|
|
92
92
|
if k in ('left', 'right'):
|
|
93
93
|
n = len(self.tabs)
|
|
94
|
+
if not n:
|
|
95
|
+
return False
|
|
94
96
|
return self.select((self.index + (1 if k == 'right' else -1)) % n)
|
|
95
97
|
if len(k) == 1 and k.isdigit() and 0 < int(k) <= len(self.tabs):
|
|
96
98
|
return self.select(int(k) - 1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flexablelib-components
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.9
|
|
4
4
|
Summary: Interactive terminal components for flexablelib: inputs, dates, tables, forms, menus, tabs, dialogs and more.
|
|
5
5
|
Home-page: https://github.com/Opus-Perpetuus/flexablelib
|
|
6
6
|
Author: Benjamin Ramirez
|
|
@@ -17,8 +17,8 @@ Classifier: Topic :: Software Development :: User Interfaces
|
|
|
17
17
|
Requires-Python: >=3.8
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist: flexablelib>=3.7.
|
|
21
|
-
Requires-Dist: flexablelib-tui>=3.7.
|
|
20
|
+
Requires-Dist: flexablelib>=3.7.9
|
|
21
|
+
Requires-Dist: flexablelib-tui>=3.7.9
|
|
22
22
|
Dynamic: author
|
|
23
23
|
Dynamic: author-email
|
|
24
24
|
Dynamic: classifier
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/base.py
RENAMED
|
File without changes
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/dates.py
RENAMED
|
File without changes
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/display.py
RENAMED
|
File without changes
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/media.py
RENAMED
|
File without changes
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/overlays.py
RENAMED
|
File without changes
|
{flexablelib_components-3.7.7 → flexablelib_components-3.7.9}/flexablelib_components/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|