accrete 0.0.100__py3-none-any.whl → 0.0.101__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.
- accrete/contrib/ui/__init__.py +1 -3
- accrete/contrib/ui/templates/ui/partials/modal_form.html +1 -0
- accrete/contrib/ui/templates/ui/widgets/model_search_select.html +16 -3
- accrete/contrib/ui/templatetags/accrete_ui.py +1 -1
- {accrete-0.0.100.dist-info → accrete-0.0.101.dist-info}/METADATA +1 -1
- {accrete-0.0.100.dist-info → accrete-0.0.101.dist-info}/RECORD +8 -8
- {accrete-0.0.100.dist-info → accrete-0.0.101.dist-info}/WHEEL +0 -0
- {accrete-0.0.100.dist-info → accrete-0.0.101.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/ui/__init__.py
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
<div id="modal-{{ form_id }}" class="modal {% block modal_form_class %}is-active{% endblock %}"
|
4
4
|
hx-swap="outerHTML"
|
5
5
|
hx-target="#modal-{{ form_id }}"
|
6
|
+
hx-on:delete="removeModal('modal-{{ form_id }}')"
|
6
7
|
{% if blocking %}
|
7
8
|
hx-indicator="#modal-{{ form_id }}-indicator"
|
8
9
|
hx-disabled-elt="#modal-{{ form_id }}-background"
|
@@ -1,8 +1,21 @@
|
|
1
|
+
{% load static %}
|
1
2
|
{% load i18n %}
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
4
|
+
|
5
|
+
<script>
|
6
|
+
function modelSearchSelect() {
|
7
|
+
return {
|
8
|
+
open: false,
|
9
|
+
|
10
|
+
shouldClose(event) {
|
11
|
+
return event.relatedTarget === this.$refs.dropdownContent || this.$refs.dropdownContent.contains(event.relatedTarget)
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
</script>
|
16
|
+
|
17
|
+
|
18
|
+
<div class="field select" x-data="modelSearchSelect()" @click.outside="open = false">
|
6
19
|
<input id="id_{{ widget.name }}_value" hidden="hidden" type="{{ widget.type }}" name="{{ widget.name }}" x-ref="inputValue" aria-label="inputValue"
|
7
20
|
value="{{ widget.value }}"
|
8
21
|
>
|
@@ -120,7 +120,7 @@ def timedelta_cast(td: timedelta, code: str) -> str | None:
|
|
120
120
|
|
121
121
|
|
122
122
|
@register.filter(name='weekday')
|
123
|
-
def datetime_to_weekday(dt: datetime|date, default=None):
|
123
|
+
def datetime_to_weekday(dt: datetime|date, default=None) -> str:
|
124
124
|
if dt is None:
|
125
125
|
return default
|
126
126
|
mapping = {
|
@@ -34,7 +34,7 @@ accrete/contrib/system_mail/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2
|
|
34
34
|
accrete/contrib/system_mail/views.py,sha256=xc1IQHrsij7j33TUbo-_oewy3vs03pw_etpBWaMYJl0,63
|
35
35
|
accrete/contrib/system_mail/migrations/0001_initial.py,sha256=6cwkkRXGjXvwXoMjjgmWmcPyXSTlUbhW1vMiHObk9MQ,1074
|
36
36
|
accrete/contrib/system_mail/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
accrete/contrib/ui/__init__.py,sha256=
|
37
|
+
accrete/contrib/ui/__init__.py,sha256=WmsbOxYjh2PpInP7-rHidgkjunGb8ujc5I1AL3anXTM,596
|
38
38
|
accrete/contrib/ui/admin.py,sha256=suMo4x8I3JBxAFBVIdE-5qnqZ6JAZV0FESABHOSc-vg,63
|
39
39
|
accrete/contrib/ui/apps.py,sha256=E0ao2ox6PQ3ldfeR17FXJUUJuGiWjm2DPCxHbPXGzls,152
|
40
40
|
accrete/contrib/ui/context.py,sha256=Awpt3kcjn_REJsZ3xDq71WitPefBLCj2N5FrAZfDXYE,10155
|
@@ -181,7 +181,7 @@ accrete/contrib/ui/templates/ui/partials/filter.html,sha256=fMxi5L1daqKElzZpHg8b
|
|
181
181
|
accrete/contrib/ui/templates/ui/partials/form_errors.html,sha256=C5ktasYff2xBTiWfM6QR8qaGKSyK9QufB3B9N77KGpg,1386
|
182
182
|
accrete/contrib/ui/templates/ui/partials/header.html,sha256=wBiyo02mON3z7l4hJAPTAJn_vDhekYZ-a0g8TuW4RmY,7015
|
183
183
|
accrete/contrib/ui/templates/ui/partials/modal.html,sha256=Lk7ViKJS99QLjGFHKna90j6VUo_U03IDAT1Rq__QVLU,1472
|
184
|
-
accrete/contrib/ui/templates/ui/partials/modal_form.html,sha256=
|
184
|
+
accrete/contrib/ui/templates/ui/partials/modal_form.html,sha256=_2cvsihB1tIZ5ydh2Vop_5fBVH-Nqwc01eYxh2TH2BQ,2158
|
185
185
|
accrete/contrib/ui/templates/ui/partials/onchange_form.html,sha256=8wNgZYnpa6ttc-OraOi1i02isJCcnaMtYwsmObc3qcY,109
|
186
186
|
accrete/contrib/ui/templates/ui/partials/pagination_detail.html,sha256=58nA3X7Il0FAD4VcYyr7tTGWRiVf_FN1TkImmKEpKHU,1014
|
187
187
|
accrete/contrib/ui/templates/ui/partials/pagination_list.html,sha256=Eyx1lsk9UIFFYPICL7RuYeUFaKVlmvWVXnFCGR-II7k,1324
|
@@ -189,10 +189,10 @@ accrete/contrib/ui/templates/ui/partials/table_field.html,sha256=4oQw0na9UgHP8lo
|
|
189
189
|
accrete/contrib/ui/templates/ui/partials/table_field_float.html,sha256=GH_jFdpk8wEJXv4QfO6c3URYrZGGLeuSyWwWl2cWxwQ,45
|
190
190
|
accrete/contrib/ui/templates/ui/partials/table_field_monetary.html,sha256=Wtod9vel2dD4vG8lUVLbtls4aU_2EG3p0E1QRRUSH10,166
|
191
191
|
accrete/contrib/ui/templates/ui/partials/table_field_string.html,sha256=GH_jFdpk8wEJXv4QfO6c3URYrZGGLeuSyWwWl2cWxwQ,45
|
192
|
-
accrete/contrib/ui/templates/ui/widgets/model_search_select.html,sha256=
|
192
|
+
accrete/contrib/ui/templates/ui/widgets/model_search_select.html,sha256=prJLy58XSJKlqOagI7gcVyHg-pcaUKqCFMfAP4aQEn8,2979
|
193
193
|
accrete/contrib/ui/templates/ui/widgets/model_search_select_multi.html,sha256=AFoAKEeB99f63CWwL-ougERnj-IQVya_jdDcwW7Bo80,4109
|
194
194
|
accrete/contrib/ui/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
195
|
-
accrete/contrib/ui/templatetags/accrete_ui.py,sha256=
|
195
|
+
accrete/contrib/ui/templatetags/accrete_ui.py,sha256=nGd6U5AVZvfwi4yHBoR6YUIIA3vYGkrHCs_m-T__pFk,3839
|
196
196
|
accrete/contrib/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
197
197
|
accrete/contrib/user/admin.py,sha256=YS4iApli7XUaIl9GsEJxys2j8sepX0by88omYHjff-E,85
|
198
198
|
accrete/contrib/user/apps.py,sha256=oHDrAiHf-G57mZLyxqGJzRY2DbPprGFD-QgyVJG_ruI,156
|
@@ -234,7 +234,7 @@ accrete/utils/forms.py,sha256=IvxbXNpSd4a-JBgsTJhs2GHe-DCRWX-xnVPRcoiCzbI,3104
|
|
234
234
|
accrete/utils/log.py,sha256=BH0MBDweAjx30wGBO4F3sFhbgkSoEs7T1lLLjlYZNnA,407
|
235
235
|
accrete/utils/models.py,sha256=EEhv7-sQVtQD24PEb3XcDUAh3VVhVFoMMLyFrDjGEaI,706
|
236
236
|
accrete/utils/views.py,sha256=iWZSYbd3qYMrV9wAsX26ofGb5wxn1N_nRrQ6s2lpp2I,4557
|
237
|
-
accrete-0.0.
|
238
|
-
accrete-0.0.
|
239
|
-
accrete-0.0.
|
240
|
-
accrete-0.0.
|
237
|
+
accrete-0.0.101.dist-info/METADATA,sha256=ZF8MU0HdYFEsShI4phQv86kglt-GWT_BAgpAdqc3Ks8,4953
|
238
|
+
accrete-0.0.101.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
239
|
+
accrete-0.0.101.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
240
|
+
accrete-0.0.101.dist-info/RECORD,,
|
File without changes
|
File without changes
|