accrete 0.0.30__py3-none-any.whl → 0.0.31__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/filter.py +1 -1
- accrete/contrib/ui/static/js/filter.js +10 -10
- {accrete-0.0.30.dist-info → accrete-0.0.31.dist-info}/METADATA +1 -1
- {accrete-0.0.30.dist-info → accrete-0.0.31.dist-info}/RECORD +6 -6
- {accrete-0.0.30.dist-info → accrete-0.0.31.dist-info}/WHEEL +0 -0
- {accrete-0.0.30.dist-info → accrete-0.0.31.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/ui/filter.py
CHANGED
@@ -313,8 +313,8 @@ class Filter:
|
|
313
313
|
lambda x: x.is_relation and x.name not in filter_exclude,
|
314
314
|
sorted(model._meta.get_fields(), key=lambda x: x.name.lower())
|
315
315
|
)
|
316
|
-
cpath = path.copy()
|
317
316
|
for field in fields:
|
317
|
+
cpath = path.copy()
|
318
318
|
if field.related_model not in cpath:
|
319
319
|
cpath.append(field.related_model)
|
320
320
|
try:
|
@@ -394,13 +394,13 @@ function setSelectedEdit(event) {
|
|
394
394
|
}
|
395
395
|
const tag = event.currentTarget.closest('.query-tag');
|
396
396
|
event.currentTarget.classList.add('selected-query-edit');
|
397
|
-
if (tag.getAttribute('data-is-bool')
|
398
|
-
|
399
|
-
tag.getAttribute('data-param'),
|
400
|
-
tag.getAttribute('data-value')
|
401
|
-
));
|
397
|
+
if (tag.getAttribute('data-is-bool') === 'true') {
|
398
|
+
return
|
402
399
|
}
|
403
|
-
|
400
|
+
setQueryParam(getParamElement(
|
401
|
+
tag.getAttribute('data-param'),
|
402
|
+
tag.getAttribute('data-value')
|
403
|
+
));
|
404
404
|
}
|
405
405
|
|
406
406
|
function unselectAll() {
|
@@ -612,8 +612,9 @@ function getParamElement(param, value=null){
|
|
612
612
|
let paramElement = queryParamsDropdown.querySelector(
|
613
613
|
`:scope > div[data-param="${parts[0]}"]`
|
614
614
|
);
|
615
|
-
|
616
|
-
|
615
|
+
let selector = `:scope * div[data-param="${parts[1]}"]`;
|
616
|
+
for (let i = 2; i < parts.length; i++) {
|
617
|
+
selector += ` * div[data-param="${parts[i]}"]`;
|
617
618
|
if (i + 1 === parts.length) {
|
618
619
|
if (invert) {
|
619
620
|
selector += `[data-param-invert="true"]`;
|
@@ -626,9 +627,8 @@ function getParamElement(param, value=null){
|
|
626
627
|
}
|
627
628
|
}
|
628
629
|
}
|
629
|
-
paramElement = paramElement.querySelector(selector);
|
630
630
|
}
|
631
|
-
return
|
631
|
+
return paramElement.querySelector(selector);
|
632
632
|
}
|
633
633
|
|
634
634
|
function getCompleteQueryText(paramElement) {
|
@@ -38,7 +38,7 @@ accrete/contrib/ui/apps.py,sha256=E0ao2ox6PQ3ldfeR17FXJUUJuGiWjm2DPCxHbPXGzls,15
|
|
38
38
|
accrete/contrib/ui/components.py,sha256=CRjR8G1RQRcaDCiyaQz2sqNWsT4OcUGkzWcJnoYk1nk,1689
|
39
39
|
accrete/contrib/ui/context.py,sha256=-abmg8nXYQmvVjFpSVmTaEFz_ZZn-YjVzcE190td9Yg,9635
|
40
40
|
accrete/contrib/ui/elements.py,sha256=as405cYGmyeCk_R8a8RNBjL8yNTQlUg6KLYQ9hWnqVA,75
|
41
|
-
accrete/contrib/ui/filter.py,sha256=
|
41
|
+
accrete/contrib/ui/filter.py,sha256=71j1MR6bqlbTbA3ClAnQwlr8OuuDUTH9CdiFSe1ucRY,12590
|
42
42
|
accrete/contrib/ui/querystring.py,sha256=vMP_4Hn6L3jCLf6_HIscZkPgkZGe9g9Y7GfI2zZYn2A,709
|
43
43
|
accrete/contrib/ui/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
44
44
|
accrete/contrib/ui/urls.py,sha256=TUBlz_CGs9InTZoxM78GSnucA73I8knoh_obt12RUHM,186
|
@@ -125,7 +125,7 @@ accrete/contrib/ui/static/css/accrete.scss,sha256=2vChvlRdZ2rPA3QMF9lDF4dFpPcXOs
|
|
125
125
|
accrete/contrib/ui/static/css/icons.css,sha256=ZaS9ChqKlwvEgrHbRXhplE3JohWEYmJefVnfggx9-gY,4739
|
126
126
|
accrete/contrib/ui/static/icons/Logo.svg,sha256=hGZuxrAa-LRpFavFiF8Lnc7X9OQcqmb6Xl_dxx-27hM,1861
|
127
127
|
accrete/contrib/ui/static/icons/accrete.svg,sha256=CWHJKIgk3hxL7xIaFSz2j1cK-eF1TroCbjcF58bgOIs,1024
|
128
|
-
accrete/contrib/ui/static/js/filter.js,sha256=
|
128
|
+
accrete/contrib/ui/static/js/filter.js,sha256=PxW_wAof61NRwMoopIKII4NxDRRPIxuEth5g3Iw0g8s,24032
|
129
129
|
accrete/contrib/ui/static/js/list.js,sha256=OX_81ifRmawE-1QBU5Qpq_E6sHiiNwIPleETAn9EOJw,4280
|
130
130
|
accrete/contrib/ui/static/js/navbar.js,sha256=BEOizZibjwnMRpVC6i_HpE5aOkgLJGwNhSwghMeG96U,779
|
131
131
|
accrete/contrib/ui/static/js/utils.js,sha256=6RKh3EJ57gx5UIjBcSaeZEs7lZdLvyYT9VAQ-WqlKSk,173
|
@@ -191,7 +191,7 @@ accrete/migrations/0002_initial.py,sha256=dFOM7kdHlx7pVAh8cTDlZMtciN4O9Z547HAzEK
|
|
191
191
|
accrete/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
192
192
|
accrete/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
193
193
|
accrete/utils/dates.py,sha256=apM6kt6JhGrKgoT0jfav1W-8AUVTxNc9xt3fJQ2n0JI,1492
|
194
|
-
accrete-0.0.
|
195
|
-
accrete-0.0.
|
196
|
-
accrete-0.0.
|
197
|
-
accrete-0.0.
|
194
|
+
accrete-0.0.31.dist-info/METADATA,sha256=dumY2bNM10NrMDTTQUFBAzf3AYsYr-WNtQKL9PJ9Jw0,4892
|
195
|
+
accrete-0.0.31.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
196
|
+
accrete-0.0.31.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
197
|
+
accrete-0.0.31.dist-info/RECORD,,
|
File without changes
|
File without changes
|