Commit graph

213 commits

Author SHA1 Message Date
Juro Oravec
e712800f5e
feat: add self context var and make is_filled into attribute (#632)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-04 21:41:20 +02:00
Juro Oravec
0cfc40231b
feat: add component hooks (#631) 2024-08-31 13:38:28 +02:00
Juro Oravec
4a9cf7e26d
feat: validate component inputs if types are given (#629)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-29 23:09:36 +02:00
Juro Oravec
e76227b8df
feat: Add dynamic component (#627)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-29 11:28:00 +02:00
Juro Oravec
ab059f362d
Multi-line tag support, watch component files, and cleanup (#624)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-28 07:46:48 +02:00
Juro Oravec
3b1f6088a0
feat: allow different template settings for ComponentRegistries (#615)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-27 06:18:50 +02:00
Juro Oravec
b90961b4a7
feat: dynamic slots, fills, and provides (#609)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-25 22:35:10 +02:00
Juro Oravec
39cff5a1d0
feat: add dynamic expressions (#605)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-25 12:53:40 +02:00
Juro Oravec
d6ec62c6be
feat: add spread operator (#596)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-24 15:01:18 +02:00
Gabriel Dugny
3f87571ce3 chore: remove content, keep only README 2024-08-24 11:24:43 +02:00
Gabriel Dugny
ab0b5c6266 chore: update README 2024-08-24 11:24:43 +02:00
Gabriel Dugny
19ee26a811 docs: absolute image link in the README 2024-08-24 11:24:26 +02:00
Gabriel Dugny
d56e27c05a chore: fix links, remove top navigation 2024-08-24 11:23:43 +02:00
Gabriel Dugny
163b0941c2 chore: init docs 2024-08-24 11:23:24 +02:00
Juro Oravec
899b9a2738
refactor: move kwargs resolution to render-time + cleanup (#594)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-23 18:15:28 +02:00
Juro Oravec
efd05d6150
feat: Typing for component inputs and access inputs during render (#585) 2024-08-22 23:42:34 +02:00
Juro Oravec
71d8679e8d
feat: TagFormatter - Allow users to customize component template tags (#572)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-18 16:58:56 +02:00
Emil Stenström
3f17be9f32
Update README.md 2024-08-13 08:02:55 +02:00
Juro Oravec
d6dec450ed
refactor: prepare registry for custom template tags and docs (#566)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-05 22:31:49 +02:00
Juro Oravec
e771a0aaaf
refactor: Use top-level exports as public API (#562)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-03 08:30:39 +02:00
Jake Duth
6d8e6d8a49
Fix upgradecomponent (#563) 2024-07-30 09:37:34 +02:00
Juro Oravec
8cb88558f0
refactor: Prepare autodiscover and template loader for v1 (#533) 2024-07-29 20:27:35 +02:00
daniboygg
82d532ab26 docs: add documentation for jetbrains IDEs
* Add documentation about code highlight on single-file-components
2024-07-22 23:15:54 +02:00
Juro Oravec
23d91218bd
refactor: usage notes + tests for safer_staticfiles (#538)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-08 07:25:03 +02:00
Juro Oravec
e2222f291a
docs: fix table of contents (#535) 2024-06-25 21:49:53 +02:00
Juro Oravec
3c5a7ad823
feat: paths as objects + user-provided Media cls + handle static (#526)
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
2024-06-21 19:36:53 +02:00
Juro Oravec
bca26c46f3 docs: update README 2024-06-11 21:42:45 +02:00
Juro Oravec
8ca2814ee3
feat: dependency injection with inject/provide (#506) 2024-06-01 10:51:21 +02:00
Juro Oravec
f3e0bf6b62
refactor: change context_behavior default to "django" (#515) 2024-06-01 09:24:52 +02:00
Juro Oravec
edb2f347f2
refactor: change fill alias from "as var" to default=var (#504) 2024-05-23 20:25:16 +02:00
Juro Oravec
b1b66fd751
feat: Scoped slots + Updated docs (#495)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-23 07:08:10 +02:00
Juro Oravec
610475353f
feat: Support for HTML attributes and html_attrs tag (#491) 2024-05-12 11:21:34 +02:00
Juro Oravec
bf61df81b7
feat: support special chars # @ - . : in component kwargs (#477)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-05 14:23:27 +02:00
Shixian Sheng
eef331e903
Update README.md (#469) 2024-05-01 22:16:13 +02:00
Juro Oravec
3fc90e4956
feat: merge context settings, replace if_filled tag with var
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-01 20:55:09 +02:00
Mikko Ahonen
8f674000fa Fix: Fixed calendar view example in README
Fixes EmilStenstrom/django-components#446
2024-04-21 20:11:05 +03:00
Mikko Ahonen
a2225bf58f Fix: Fixed load tag name in README
Fixes EmilStenstrom/django-components#447
2024-04-21 20:05:22 +03:00
Juro Oravec
6478776269 chore: drop support for Django 3.2, 4.0, 4.1 2024-04-18 10:44:19 +02:00
Juro Oravec
8b8121bde2 docs: fix typos 2024-04-16 23:25:13 +02:00
Juro Oravec
f28e5695f4 docs: add settings info to README 2024-04-16 23:25:13 +02:00
Juro Oravec
e4950b79f7 refactor: update readme about autodiscovery 2024-04-14 20:38:12 +02:00
Emil Stenström
ddc62c7dfc Make background white for black backgrounds. 2024-04-13 10:29:09 +02:00
Emil Stenström
e9b0874ff8 Use relative URL. 2024-04-13 10:22:59 +02:00
Emil Stenström
9b5a691606 Testing setting a white background to make logo work on dark backgrounds. 2024-04-13 10:22:11 +02:00
Emil Stenström
a1c7952067 Add logotype to project. 2024-04-13 10:18:21 +02:00
Francisco Macedo
c31395ea28 fix: inconsistent file names in README.md 2024-04-09 11:22:39 +01:00
Gabriel Dugny
84db2b7314
build: move to PEP517 and pyproject.toml, drop support for Py3.6 and Py3.7 (#417)
* chore: move to pyproject.toml

* chore: forced to drop Python 3.6 to upgrade

* chore: drop support for Python 3.6 and 3.7

* chore: remove old references to py36/py37

* chore: remove setup.py, replaced by pyproject.toml
2024-03-31 19:20:35 +02:00
Juro Oravec
9aa446acc8
refactor: move slots logic to own file (#416)
* refactor: move slots logic to own file

* docs: add readme section for how slots work

* chore: isort

* refactor: fix type alias

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* refactor: fix isort issues again

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-30 22:55:27 +01:00
Juro Oravec
37fd901908
Resolve media and template files relative to component class dir (#395), thanks @JuroOravec
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
2024-03-23 19:01:39 +01:00
Dylan Castillo
25fe39c6d6
Merge branch 'master' into add-type-hints 2024-03-04 21:45:37 +01:00