fastlifeweb 0.9.3__py3-none-any.whl → 0.9.5__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.
Potentially problematic release.
This version of fastlifeweb might be problematic. Click here for more details.
- fastlife/templates/Button.jinja +5 -4
- fastlife/templates/Details.jinja +2 -2
- fastlife/templates/pydantic_form/Sequence.jinja +5 -5
- fastlife/templating/renderer/constants.py +2 -2
- {fastlifeweb-0.9.3.dist-info → fastlifeweb-0.9.5.dist-info}/METADATA +1 -1
- {fastlifeweb-0.9.3.dist-info → fastlifeweb-0.9.5.dist-info}/RECORD +8 -8
- {fastlifeweb-0.9.3.dist-info → fastlifeweb-0.9.5.dist-info}/LICENSE +0 -0
- {fastlifeweb-0.9.3.dist-info → fastlifeweb-0.9.5.dist-info}/WHEEL +0 -0
fastlife/templates/Button.jinja
CHANGED
|
@@ -14,7 +14,8 @@ hx_after_request="",
|
|
|
14
14
|
hx_vals="",
|
|
15
15
|
hx_confirm="",
|
|
16
16
|
hx_delete="",
|
|
17
|
-
|
|
17
|
+
hx_params=None,
|
|
18
|
+
hx_push_url=false,
|
|
18
19
|
full_width=false,
|
|
19
20
|
#}
|
|
20
21
|
<button type="{{type}}" {%if id %}id="{{id}}" {%endif%} name="{{name}}" value="{{value}}" {% if
|
|
@@ -22,8 +23,8 @@ full_width=false,
|
|
|
22
23
|
%}hx-select="{{hx_select}}" {% endif %} {% if hx_get %}hx-get="{{hx_get}}" {% endif %} {% if onclick
|
|
23
24
|
%}onclick="{{onclick}}" {% endif %}{% if hx_after_request %}hx-on::after-request="{{hx_after_request}}" {% endif %} {%
|
|
24
25
|
if hx_vals %}hx-vals='{{hx_vals|safe}}' {% endif %} {% if hx_confirm %}hx-confirm="{{hx_confirm}}" {% endif %} {% if
|
|
25
|
-
hx_delete %}hx-delete="{{hx_delete}}" {% endif %} {% if hx_get and hx_push_url %} hx-push-url="true" {%- endif %}{%
|
|
26
|
-
%}
|
|
27
|
-
hidden %}hidden{% endif %}>
|
|
26
|
+
hx_delete %}hx-delete="{{hx_delete}}" {% endif %} {% if hx_get and hx_push_url %} hx-push-url="true" {%- endif %} {%
|
|
27
|
+
if hx_params %} hx-params="{{hx_params}}" {%- endif %}{% if aria_label %}aria-label="{{aria_label}}" {% endif %}
|
|
28
|
+
class="{% if full_width %}w-full {% endif %}{{attrs.class or BUTTON_CLASS}}" {% if hidden %}hidden{% endif %}>
|
|
28
29
|
{{- content -}}
|
|
29
30
|
</button>
|
fastlife/templates/Details.jinja
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{# def open=True #}
|
|
2
|
-
<details class="{{attrs.class or DETAILS_CLASS}}" {% if open %}open{% endif %}>
|
|
1
|
+
{# def id=None, open=True #}
|
|
2
|
+
<details{% if id%} id="{{id}}"{% endif%} class="{{attrs.class or DETAILS_CLASS}}" {% if open %}open{% endif %}>
|
|
3
3
|
{{content}}
|
|
4
4
|
</details>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{# def widget, children_widgets, type #}
|
|
2
2
|
|
|
3
3
|
<pydantic_form.Widget :widget="widget" :removable="widget.removable">
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<H3>{{widget.title}}</H3>
|
|
4
|
+
<Details :id="widget.id">
|
|
5
|
+
<Summary :id="widget.id + '-summary'">
|
|
6
|
+
<H3 :class="H3_SUMMARY_CLASS">{{widget.title}}</H3>
|
|
7
7
|
<pydantic_form.Error :text="widget.error" />
|
|
8
|
-
</
|
|
8
|
+
</Summary>
|
|
9
9
|
<div>
|
|
10
10
|
{% set fnGetName = "get" + widget.id.replace("-", "_") %}
|
|
11
11
|
<script>
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
</Button>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
|
-
</
|
|
37
|
+
</Details>
|
|
38
38
|
</pydantic_form.Widget>
|
|
@@ -7,8 +7,8 @@ def space_join(*segments: str) -> str:
|
|
|
7
7
|
|
|
8
8
|
class Constants(BaseModel):
|
|
9
9
|
A_CLASS: str = space_join(
|
|
10
|
-
"text-primary-
|
|
11
|
-
"hover:text-primary-
|
|
10
|
+
"text-primary-600",
|
|
11
|
+
"hover:text-primary-500",
|
|
12
12
|
"hover:underline",
|
|
13
13
|
"dark:text-primary-300",
|
|
14
14
|
"dark:hover:text-primary-400",
|
|
@@ -24,10 +24,10 @@ fastlife/shared_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
24
24
|
fastlife/shared_utils/infer.py,sha256=0jNPY5vqKvDlNCmVPnRAXbTcQnmbuOIOIGAeGcxDPok,472
|
|
25
25
|
fastlife/shared_utils/resolver.py,sha256=wXQQTB4jf86m4qENhMOkHkWpLJj_T4-_eND_ItTLnTE,1410
|
|
26
26
|
fastlife/templates/A.jinja,sha256=EoceT_0ZGvnLz5GmVHXsi5vXdzQJnHW1j7ZUxQOVR0k,426
|
|
27
|
-
fastlife/templates/Button.jinja,sha256=
|
|
27
|
+
fastlife/templates/Button.jinja,sha256=kC2n3OFHc1ZHHND3GKeohKpcI005MYwMkdMq53iFvJk,1201
|
|
28
28
|
fastlife/templates/Checkbox.jinja,sha256=wljKcufMxSWMCiTpqI5Ugfxn4GF224tJaw0AtM1syPo,236
|
|
29
29
|
fastlife/templates/CsrfToken.jinja,sha256=7qbPvgiAgR6fgaCnDTLozJgOPSWWUJ_W4VLPGra4ahA,61
|
|
30
|
-
fastlife/templates/Details.jinja,sha256=
|
|
30
|
+
fastlife/templates/Details.jinja,sha256=JP_otsatCu4w68iIqoMiCwh1S0ymUd_yFqoztdifOVU,166
|
|
31
31
|
fastlife/templates/Form.jinja,sha256=mimb2oq1jHt-5wtN-JD2gbcZEN5UiaLFwzuqxl6X5IU,341
|
|
32
32
|
fastlife/templates/H1.jinja,sha256=bx8MnoZKN2C2GbfmX4lgi1P6XRh_g67qb_hWmrodGhs,59
|
|
33
33
|
fastlife/templates/H2.jinja,sha256=aY2Q_DdHHViqA2nUCPjAqlUgcAqadYnUJnxFnCONydY,59
|
|
@@ -1670,7 +1670,7 @@ fastlife/templates/pydantic_form/Error.jinja,sha256=Wb5NnVRc4U7ZGKmYV7s4eGenWEug
|
|
|
1670
1670
|
fastlife/templates/pydantic_form/Hidden.jinja,sha256=NF8Od_mSSnRJAxWqsgeD1C5YzqJso-HCeDjGbpHjmlE,86
|
|
1671
1671
|
fastlife/templates/pydantic_form/Hint.jinja,sha256=O0ZsAQnATcG0a_qLQfrwM6VZHmAw3k1W33WYlEBUas8,123
|
|
1672
1672
|
fastlife/templates/pydantic_form/Model.jinja,sha256=IRCU9PpqGLv6l7uVpVfAucWsVZbZQBCtfF_lpVMMOfc,490
|
|
1673
|
-
fastlife/templates/pydantic_form/Sequence.jinja,sha256=
|
|
1673
|
+
fastlife/templates/pydantic_form/Sequence.jinja,sha256=oZMdpKdIvp7h-HPyK3wBFSH0ruHICDsPXsM4WOFxaJc,1420
|
|
1674
1674
|
fastlife/templates/pydantic_form/Text.jinja,sha256=7OJt4rC11-XCKFKDP8lIsFy6M33pRW9ceD9K-irhiJg,461
|
|
1675
1675
|
fastlife/templates/pydantic_form/Union.jinja,sha256=ibSgK04qE_GND8Fm0T5pBsP2LUaVe9lZQgSlVU6Cblk,1080
|
|
1676
1676
|
fastlife/templates/pydantic_form/Widget.jinja,sha256=xXjesiIfaS2CWv9T11UDVHwBz6JT1FSPB6EWtp98_hA,290
|
|
@@ -1678,7 +1678,7 @@ fastlife/templating/__init__.py,sha256=UY_hSTlJKDZnkSIK-BzRD4_AXOWgHbRuvJsKAS9lj
|
|
|
1678
1678
|
fastlife/templating/binding.py,sha256=noY9QrArJGqB1X80Ny-0zk1Dg6T9mMXahjEcIiHvioo,1648
|
|
1679
1679
|
fastlife/templating/renderer/__init__.py,sha256=6z7MTmj3-TgP_-cKtjhUypJcXvMOmaWaPHuoROyhobE,231
|
|
1680
1680
|
fastlife/templating/renderer/abstract.py,sha256=9eQgshUMiVTaMcICr-RtP3Zqpu7Bji_sLif2InrxMek,3519
|
|
1681
|
-
fastlife/templating/renderer/constants.py,sha256=
|
|
1681
|
+
fastlife/templating/renderer/constants.py,sha256=eeNTz3dTMZTaiPZkknPTW0cnqGl4u4QJXffDs_yOwgk,5651
|
|
1682
1682
|
fastlife/templating/renderer/jinjax.py,sha256=oYMsmrY7ksuDNCRNtuy4W1_meObiNFDNHFteB-cteY0,4042
|
|
1683
1683
|
fastlife/templating/renderer/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1684
1684
|
fastlife/templating/renderer/widgets/base.py,sha256=XtD-NRacHMn9Xt_dSfWb1Emk3XEXz5jExglx23Rzzpw,2808
|
|
@@ -1695,7 +1695,7 @@ fastlife/testing/__init__.py,sha256=vuqwoNUd3BuIp3fm7nkvmYkIGjIimf5zUGhDkeWrg2s,
|
|
|
1695
1695
|
fastlife/testing/testclient.py,sha256=izNTkFgArIUrdSemNl3iiEDdsiUfnb2TtfKnZi3Jwv8,20546
|
|
1696
1696
|
fastlife/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1697
1697
|
fastlife/views/pydantic_form.py,sha256=KJtH_DK8em0czGPsv0XpzGUFhtycyXdeRldwiU7d_j4,1257
|
|
1698
|
-
fastlifeweb-0.9.
|
|
1699
|
-
fastlifeweb-0.9.
|
|
1700
|
-
fastlifeweb-0.9.
|
|
1701
|
-
fastlifeweb-0.9.
|
|
1698
|
+
fastlifeweb-0.9.5.dist-info/LICENSE,sha256=F75xSseSKMwqzFj8rswYU6NWS3VoWOc_gY3fJYf9_LI,1504
|
|
1699
|
+
fastlifeweb-0.9.5.dist-info/METADATA,sha256=pya67iBOu1iR9vrhLaVOoOlh-zwG7eKpDacs2XfsyPE,1885
|
|
1700
|
+
fastlifeweb-0.9.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1701
|
+
fastlifeweb-0.9.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|