accrete 0.0.66__py3-none-any.whl → 0.0.67__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/context.py +5 -4
- accrete/contrib/ui/static/css/accrete.css +1 -1
- accrete/contrib/ui/static/css/accrete.scss +1 -1
- accrete/contrib/ui/templates/ui/list.html +2 -2
- {accrete-0.0.66.dist-info → accrete-0.0.67.dist-info}/METADATA +1 -1
- {accrete-0.0.66.dist-info → accrete-0.0.67.dist-info}/RECORD +8 -8
- {accrete-0.0.66.dist-info → accrete-0.0.67.dist-info}/WHEEL +0 -0
- {accrete-0.0.66.dist-info → accrete-0.0.67.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/ui/context.py
CHANGED
@@ -109,8 +109,9 @@ class ListContext(Context):
|
|
109
109
|
pagination_param_str: str
|
110
110
|
filter: Filter = None
|
111
111
|
endless_scroll: bool = True
|
112
|
-
column_height: int = 4
|
113
112
|
column_width: int = 12
|
113
|
+
column_height: int = 150
|
114
|
+
column_height_unit: str = 'px'
|
114
115
|
field_selection: bool = False
|
115
116
|
|
116
117
|
def __post_init__(self):
|
@@ -121,12 +122,12 @@ class ListContext(Context):
|
|
121
122
|
)
|
122
123
|
|
123
124
|
|
124
|
-
def list_context_factory(model: Type[Model], params: dict, queryset=None, **kwargs) -> ListContext:
|
125
|
+
def list_context_factory(model: Type[Model], params: dict, queryset=None, paginate_by=None, **kwargs) -> ListContext:
|
125
126
|
if queryset is None:
|
126
127
|
queryset = filter_from_querystring(model, params)
|
127
128
|
page = list_page(
|
128
129
|
queryset,
|
129
|
-
cast_param(params, 'paginate_by', int, 20),
|
130
|
+
cast_param(params, 'paginate_by', int, paginate_by or 20),
|
130
131
|
cast_param(params, 'page', int, 1)
|
131
132
|
)
|
132
133
|
try:
|
@@ -153,7 +154,7 @@ def list_context_factory(model: Type[Model], params: dict, queryset=None, **kwar
|
|
153
154
|
default_filter_term='name__icontains' if has_name_field else ''
|
154
155
|
),
|
155
156
|
column_width=4,
|
156
|
-
column_height=
|
157
|
+
column_height=150,
|
157
158
|
**kwargs
|
158
159
|
)
|
159
160
|
return ctx
|
@@ -20567,7 +20567,7 @@ textarea.is-skeleton:-ms-input-placeholder {
|
|
20567
20567
|
margin-top: 8px;
|
20568
20568
|
}
|
20569
20569
|
|
20570
|
-
.box:hover {
|
20570
|
+
.box.is-hoverable:hover {
|
20571
20571
|
box-shadow: var(--accrete-box-shadow-hover);
|
20572
20572
|
}
|
20573
20573
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<div class="columns is-multiline">
|
9
9
|
{% for obj in list_page %}
|
10
10
|
<div class="list-column column is-{{ column_width }}-fullhd is-12-touch is-12-desktop is-12-widescreen"
|
11
|
-
style="height: {{ column_height }}
|
11
|
+
style="height: {{ column_height }}{{ column_height_unit }}"
|
12
12
|
{% if endless_scroll and forloop.last and list_page.has_next %}
|
13
13
|
hx-get="{{ pagination_param_str }}&page={{ list_page.next_page_number }}"
|
14
14
|
hx-trigger="intersect once"
|
@@ -18,7 +18,7 @@
|
|
18
18
|
hx-indicator="#endless-scroll-indicator"
|
19
19
|
{% endif %}
|
20
20
|
>
|
21
|
-
<div class="box p-3" style="word-break: break-word; height: 100%; border: var(--accrete-box-border); overflow-y: auto">
|
21
|
+
<div class="box is-hoverable p-3" style="word-break: break-word; height: 100%; border: var(--accrete-box-border); overflow-y: auto">
|
22
22
|
{% block data %}
|
23
23
|
{{ obj }}
|
24
24
|
{% endblock %}
|
@@ -37,7 +37,7 @@ accrete/contrib/system_mail/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
|
|
37
37
|
accrete/contrib/ui/__init__.py,sha256=h___LPxOjGazAQ3P9hy7GwzzzrEJCXAkG988JVck-9M,530
|
38
38
|
accrete/contrib/ui/admin.py,sha256=suMo4x8I3JBxAFBVIdE-5qnqZ6JAZV0FESABHOSc-vg,63
|
39
39
|
accrete/contrib/ui/apps.py,sha256=E0ao2ox6PQ3ldfeR17FXJUUJuGiWjm2DPCxHbPXGzls,152
|
40
|
-
accrete/contrib/ui/context.py,sha256=
|
40
|
+
accrete/contrib/ui/context.py,sha256=sA5d444vQMCsEtFqWL6KzfPQdfCC-_JIoreR5O7FKjI,9558
|
41
41
|
accrete/contrib/ui/elements.py,sha256=UQtp6VHE59KR9yAVuwHm9IxY2aOZJA5VsVSLdL1LTxM,1883
|
42
42
|
accrete/contrib/ui/filter.py,sha256=UAIkUNKu2nVQLafwZlkQu4PDfOPyFM61e_mE7OWRhYs,12410
|
43
43
|
accrete/contrib/ui/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
@@ -137,9 +137,9 @@ accrete/contrib/ui/static/bulma/versions/bulma-no-dark-mode.scss,sha256=w6Q80mCV
|
|
137
137
|
accrete/contrib/ui/static/bulma/versions/bulma-no-helpers-prefixed.scss,sha256=6HCUc4hxyaj4_rHqUnoy7aMuFZECHDYh5jvp-1CEtfE,344
|
138
138
|
accrete/contrib/ui/static/bulma/versions/bulma-no-helpers.scss,sha256=5dzAXSgReWUO8GXLbYTpOclPPD0xqvvBiCCX_GOR_5U,313
|
139
139
|
accrete/contrib/ui/static/bulma/versions/bulma-prefixed.scss,sha256=Yj7oEO00jy_G_L32y6rwzp2P5p2YtQ2Pvq4aZhvBSE8,138
|
140
|
-
accrete/contrib/ui/static/css/accrete.css,sha256=
|
140
|
+
accrete/contrib/ui/static/css/accrete.css,sha256=NaT90E8DmUR_4_q7AQ19GyZBLcke8D4cTvfJk4b5Uzk,605824
|
141
141
|
accrete/contrib/ui/static/css/accrete.css.map,sha256=q8xb_j8VgvBCFSRxzs4Ei2Sf-BRHPxpPXUk9pKGmyls,94449
|
142
|
-
accrete/contrib/ui/static/css/accrete.scss,sha256=
|
142
|
+
accrete/contrib/ui/static/css/accrete.scss,sha256=YEUsvNUjHCpgxbY0lfpXPuxicQtCRXmS67MYWAiBlAo,11056
|
143
143
|
accrete/contrib/ui/static/css/fa.css,sha256=wiz7ZSCn_btzhjKDQBms9Hx4sSeUYsDrTLg7roPstac,102641
|
144
144
|
accrete/contrib/ui/static/css/icons.css,sha256=5550KHsaayeEtRaUdf0h7esQhyec-_5ZfecZ_sOC6v0,6334
|
145
145
|
accrete/contrib/ui/static/icons/Logo.svg,sha256=hGZuxrAa-LRpFavFiF8Lnc7X9OQcqmb6Xl_dxx-27hM,1861
|
@@ -166,7 +166,7 @@ accrete/contrib/ui/templates/ui/dashboard.html,sha256=udnwiSJEcn2wMaJfTs4P0Y20FU
|
|
166
166
|
accrete/contrib/ui/templates/ui/detail.html,sha256=b1HC1QCGooo6tLh7fLhEDPau1tIOzscLXP6R_PN758I,1093
|
167
167
|
accrete/contrib/ui/templates/ui/form.html,sha256=mlrMsxUOn5RkyROLYBHWzdWckN8Cg-2-ynD0SRmuXSM,627
|
168
168
|
accrete/contrib/ui/templates/ui/layout.html,sha256=f8K0KDlh_eDz0UKH0IB34dBjPtDiNgsuPgysK-DYLgE,14792
|
169
|
-
accrete/contrib/ui/templates/ui/list.html,sha256=
|
169
|
+
accrete/contrib/ui/templates/ui/list.html,sha256=pgrnv9PDwIZ_oSpWxqMRdVaWXiGEJyNCFgdMb2BoKmg,1442
|
170
170
|
accrete/contrib/ui/templates/ui/table.html,sha256=VPenu1tutFqxCz2EhwKwsCeOF5FfrnxKNFtONISG_Rc,4388
|
171
171
|
accrete/contrib/ui/templates/ui/partials/filter.html,sha256=2vmeL3980rMmkRnmVtZh9mBHe6S0PTMjaGIN1J6SpNM,7184
|
172
172
|
accrete/contrib/ui/templates/ui/partials/form_errors.html,sha256=C5ktasYff2xBTiWfM6QR8qaGKSyK9QufB3B9N77KGpg,1386
|
@@ -222,7 +222,7 @@ accrete/utils/dates.py,sha256=apM6kt6JhGrKgoT0jfav1W-8AUVTxNc9xt3fJQ2n0JI,1492
|
|
222
222
|
accrete/utils/forms.py,sha256=Lll-DvAhKZDw72XeuCtb4wxQEJNFp7lQWh_Z1GyH3Zk,3049
|
223
223
|
accrete/utils/http.py,sha256=mAtQRgADv7zu1_j7A-EKVyb-oqa5a21i4Gd0QfjzGV0,3540
|
224
224
|
accrete/utils/models.py,sha256=EEhv7-sQVtQD24PEb3XcDUAh3VVhVFoMMLyFrDjGEaI,706
|
225
|
-
accrete-0.0.
|
226
|
-
accrete-0.0.
|
227
|
-
accrete-0.0.
|
228
|
-
accrete-0.0.
|
225
|
+
accrete-0.0.67.dist-info/METADATA,sha256=niAjux3lsBLmzXVoEWda4F4AGWvvi4CfzfuJzRbtXys,4892
|
226
|
+
accrete-0.0.67.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
227
|
+
accrete-0.0.67.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
228
|
+
accrete-0.0.67.dist-info/RECORD,,
|
File without changes
|
File without changes
|