Commit Graph

109 Commits

Author SHA1 Message Date
Will McGugan
1ea892b062 handler name in classvar (#2675)
* handler name in classvar

* fix for worker handler name

* fix custom templates, event docs

* doc tweak

* doc tweak

* restore signature
2023-05-28 14:56:18 +01:00
darrenburns
62fcefbd2d Validation (#2600)
* A few different types of validation

* Rename

* Fix test

* Updating validation framework

* Update lockfile

* Ensure validators can be None

* Reworking the API a little

* Convert Input.Changed to dataclass

* Add utility for getting failures as strings

* Update an example in Validator docstring

* Remove some redundant `pass`es

* Renaming variables

* Validating Input on submit, attaching result to Submitted event

* Testing various validation features

* Update snapshots and deps

* Styling unfocused -invalid Input differently

* Add snapshot test around input validation and associated styles

* Validation docs

* Tidying validation docs in Input widget reference

* Fix mypy issues

* Remove __bool__ from Failure, make validator field required

* Code review changes

* Improving error messages in Validators
2023-05-25 13:29:33 +01:00
Rodrigo Girão Serrão
4148b1d450 Implement a Progress Bar widget. (#2333)
* First prototype of PB.

* Repurpose UnderlineBar.

* Factor out 'Bar' widget.

* Revert "Factor out 'Bar' widget."

This reverts commit 0bb4871adf.

* Add Bar widget.

* Cap progress at 100%.

* Add skeleton for the ETA label.

[skip ci]

* Add ETA display.

* Improve docstrings.

* Directly compute percentage.

* Watch percentage changes directly.

[skip ci]

* Documentation.

* Make reactive percentage private.

Instead, we create a public read-only percentage property.

* Update griffe to fix documentation issue.

Related issues: #1572, https://github.com/mkdocstrings/griffe/issues/128.
Related PRs: https://github.com/mkdocstrings/griffe/pull/135.

* Add example and docs.

* Address review feedback.

[skip ci]

* More documentation.

* Add tests.

* Changelog.

* More tests.

* Fix/fake tests.

* Final tweaks.
2023-04-26 15:25:39 +01:00
Will McGugan
0940546aab compositor refactor and transparent screens (#2139)
* compositor refactor and trasparent screens

* multuple layers

* catch screen stack error

* refinement

* error messages

* capture screen stack

* new border type

* Background screen

* borders and bindings

* snapshot

* screen docs

* fix for missing screens

* screens docs

* fix for non updating transparent screens

* fix background resize

* changelog

* copy

* superfluous function

* update diagram

* inline code

* Update CHANGELOG.md

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update docs/guide/screens.md

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* superfluous file

* Explicit None

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* docstring

* update docstring

* docstring make property private

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* docstring

* update docstring

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* docstrings

* remove comment, add docstring

* Apply suggestions from code review

Co-authored-by: Dave Pearson <davep@davep.org>

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Co-authored-by: Dave Pearson <davep@davep.org>
2023-03-27 16:44:58 +01:00
darrenburns
5cbc9277da Loosen importlib-metadata dependency specifier (#2140) 2023-03-27 11:14:45 +01:00
Will McGugan
71d0017ef9 docs and refactor 2023-02-14 15:22:15 +00:00
Will McGugan
30912f0430 merge 2023-02-09 17:32:37 +00:00
Will McGugan
4fd7e19e89 lockfile 2023-02-09 17:30:02 +00:00
Dave Pearson
86e1997b30 Merge branch 'main' into package-docs 2023-02-08 10:40:20 +00:00
Dave Pearson
e9fab41377 Relock
Updating mkdocs insiders' on my personal machine so I can test building docs
there and it wanted to relock again.
2023-02-08 08:24:08 +00:00
Will McGugan
6888120901 update msgpack types 2023-02-07 15:18:18 +00:00
Dave Pearson
f2f33233d9 Upgrade mkdocs-material 2023-02-07 13:25:12 +00:00
Will McGugan
6c4adea608 update Mypy 2023-02-07 11:25:36 +00:00
Will McGugan
638d123cf2 poetry lock 2023-02-07 10:52:11 +00:00
Will McGugan
2ff278874b docs examples and diagrams 2023-02-03 11:23:14 +01:00
Rodrigo Girão Serrão
9c83517fd3 Update poetry.lock. 2023-01-26 13:57:15 +00:00
Rodrigo Girão Serrão
bc729033c8 Merge branch 'main' into doc-improvements 2023-01-26 13:55:34 +00:00
Will McGugan
dc5041f1e1 update to intro page, fix for API docs 2023-01-26 12:21:49 +01:00
Rodrigo Girão Serrão
4405f2da2a Add plugin to ignore docs templates. 2023-01-26 10:47:53 +00:00
Will McGugan
cd92356b8e update dependencies 2023-01-23 12:46:31 +01:00
Darren Burns
1bd720ef0d Index to cell position 2023-01-06 13:55:48 +00:00
Will McGugan
f53c46c650 changelog 2022-12-30 13:07:19 +00:00
Darren Burns
b6eadddba3 Restricting black dependency 2022-12-08 13:57:14 +00:00
Rodrigo Girão Serrão
4cf69b05bb Update dev dependency listing to group notation. 2022-11-18 13:30:46 +00:00
Will McGugan
e83a3a79bd Added walk to docs 2022-11-11 10:05:12 +00:00
Will McGugan
83739cf0bf back to poetry 2022-11-07 16:26:58 +00:00
Ofek Lev
cd9ea54329 Update package metadata and dev experience 2022-11-07 12:02:54 +00:00
Will McGugan
5a610bda19 added social cards 2022-11-06 17:53:23 +00:00
Will McGugan
84d62c304e added RSS 2022-11-06 17:08:08 +00:00
Will McGugan
fab60894b6 relax dependencies 2022-10-31 11:30:55 +00:00
Will McGugan
4aac098512 lock update 2022-10-22 19:21:55 +01:00
Will McGugan
c5a292aa9c added version number to demo, bumped b9 2022-10-22 16:02:07 +01:00
Will McGugan
b322c72489 dependancy update 2022-10-21 16:23:42 +01:00
Will McGugan
2be7af9393 lock file 2022-10-06 11:20:32 +01:00
Will McGugan
22b7a67c55 change typing-extensions dependancy 2022-10-05 11:28:21 +01:00
Will McGugan
f43366abfb update dependancies 2022-10-03 17:23:47 +01:00
Will McGugan
8ddbeb5647 restore rich version 2022-09-24 09:11:33 +01:00
Will McGugan
5b692e48d7 fix lock 2022-09-23 13:27:25 +01:00
Will McGugan
9ab01d3c54 widgets docs 2022-09-21 17:18:50 +01:00
Darren Burns
93fab617bf Merge branch 'css' of github.com:willmcgugan/textual into snapshot 2022-09-20 17:39:05 +01:00
Will McGugan
3a53cdb2a5 dictionary example 2022-09-20 15:42:08 +01:00
Darren Burns
d619dae510 Snapshot testing progress 2022-09-16 16:28:48 +01:00
Will McGugan
9aa7228fda added doc indexes 2022-09-06 13:11:06 +01:00
Will McGugan
ee03e9ddd1 fancier docs 2022-08-24 20:22:22 +01:00
Will McGugan
f4d5ebb37f doc update 2022-08-24 15:24:04 +01:00
Will McGugan
97a9619d59 revised screens api 2022-08-17 08:46:06 +01:00
Will McGugan
0c56570b94 improved scroll to widget 2022-07-13 11:15:44 +01:00
Will McGugan
def1f5d6ab divide optimizations 2022-07-11 12:45:54 +01:00
Will McGugan
0c86f2e4fa update lock 2022-07-10 08:51:04 +01:00
Will McGugan
f47629623c fixed underline style stretching on buttons 2022-07-09 15:03:36 +01:00