django-smartbase-admin 0.2.94__py3-none-any.whl → 0.2.97__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.
- django_smartbase_admin/static/sb_admin/dist/table.js +1 -1
- django_smartbase_admin/static/sb_admin/dist/tree_widget_style.css +1 -1
- django_smartbase_admin/static/sb_admin/src/css/tree_widget.css +6 -3
- django_smartbase_admin/static/sb_admin/src/js/table.js +5 -1
- django_smartbase_admin/static/sb_admin/src/js/table_modules/filter_module.js +1 -3
- django_smartbase_admin/utils.py +14 -3
- {django_smartbase_admin-0.2.94.dist-info → django_smartbase_admin-0.2.97.dist-info}/METADATA +1 -1
- {django_smartbase_admin-0.2.94.dist-info → django_smartbase_admin-0.2.97.dist-info}/RECORD +10 -10
- {django_smartbase_admin-0.2.94.dist-info → django_smartbase_admin-0.2.97.dist-info}/LICENSE.md +0 -0
- {django_smartbase_admin-0.2.94.dist-info → django_smartbase_admin-0.2.97.dist-info}/WHEEL +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.tree-widget-wrapper>.dropdown-menu{min-width:480px;width:auto}.fancytree-ext-table{color:var(--color-dark-900);font-size:.875rem;height:100%;line-height:1.25rem}.fancytree-ext-table>thead{background-color:var(--color-dark-50);border-bottom-width:1px;border-color:var(--color-dark-200)}.fancytree-ext-table>tbody>tr.fancytree-active,.fancytree-ext-table>tbody>tr.fancytree-active:hover,.fancytree-ext-table>tbody>tr.fancytree-selected,.fancytree-ext-table>tbody>tr.fancytree-selected:hover,.fancytree-ext-table>tbody>tr:hover{background-color:var(--color-primary-50)}.fancytree-ext-table th{background-color:var(--color-dark-50);color:var(--color-dark-600);font-size:.875rem;font-weight:400;height:3rem;line-height:1.25rem;padding:.5rem;white-space:nowrap}.fancytree-ext-table th:first-child{padding-left:1rem}.fancytree-ext-table th:last-child{padding-right:1rem}.fancytree-ext-table th:not(.text-right){text-align:left}.fancytree-ext-table td{padding:0 .5rem;position:relative}.fancytree-ext-table td:not(.fancytree-checkbox-column):first-child{width:99%}.fancytree-ext-table td:not(:first-child){border-bottom-width:1px;border-color:var(--color-dark-200)}.fancytree-ext-table td.fancytree-checkbox-column+td,.fancytree-ext-table td:first-child{border:none;overflow:hidden;width:99%}.fancytree-ext-table td.fancytree-checkbox-column{padding-right:0;width:2rem}.fancytree-ext-table td:last-child{padding-right:1rem}.fancytree-ext-table td .fancytree-title{margin-left:2.5rem;white-space:nowrap}.fancytree-ext-table td .fancytree-title a{align-items:center;display:flex;padding:.25rem .5rem}.fancytree-ext-table td .fancytree-title .inactive-title{color:#8997ab;transition:color .2s ease-in-out}.fancytree-ext-table td .fancytree-title .inactive-badge{background:#e2e3e7;border-radius:4px;color:#4b5563!important;font-size:10px;margin-left:8px;padding:2px 8px}.fancytree-ext-table tr.fancytree-expanded td .fancytree-title a{font-weight:600}.fancytree-node{align-items:center;display:flex;height:2.5rem;position:relative}.fancytree-icon{display:none}.fancytree-checkbox{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.1);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:var(--color-light);border-color:var(--color-dark-300);border-radius:6px;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000 0),var(--tw-ring-shadow,0 0 #0000 0),var(--tw-shadow);cursor:pointer;display:block;height:1.25rem;left:0;outline-color:var(--color-transparent);outline-offset:2px;outline-style:solid;outline-width:2px;position:relative;top:0;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.fancytree-checkbox:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m20.707 7.707-10 10a1 1 0 0 1-1.414 0l-5-5 1.414-1.414L10 15.586l9.293-9.293 1.414 1.414Z' fill='%23E5E7EB'/%3E%3C/svg%3E");content:"";display:block;height:1.125rem;height:18px;left:1px;opacity:0;top:1px;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.125rem;width:18px}.fancytree-checkbox:hover{border-color:var(--color-dark)}.fancytree-checkbox:hover:after,.fancytree-selected{opacity:1}.fancytree-selected .fancytree-checkbox{background-color:var(--color-primary);border-color:var(--color-primary)}.fancytree-selected .fancytree-checkbox:after{opacity:1}.fancytree-selected .fancytree-checkbox:hover{background-color:var(--color-primary-600);border-color:var(--color-primary-600)}.fancytree-partsel{opacity:1}.fancytree-partsel .fancytree-checkbox{background-color:var(--color-primary);border-color:var(--color-primary)}.fancytree-partsel .fancytree-checkbox:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.25 13h-14v-2h14v2Z' fill='%23E5E7EB'/%3E%3C/svg%3E");opacity:1}.fancytree-partsel .fancytree-checkbox:hover{background-color:var(--color-primary-600);border-color:var(--color-primary-600)}.fancytree-title{align-items:center;display:flex;height:1.5rem;position:relative}.expander-border{bottom:0;left:0;position:absolute;right:0}.expander-border:after{border-bottom-width:1px;border-color:var(--color-dark-200);bottom:0;content:"";display:block;left:100%;position:absolute;right:-100vw}.fancytree-expander{--expander-border:2px solid var(--color-dark-400);align-items:center;background-size:16px;display:flex;height:100%;justify-content:center;position:absolute;width:2rem}.fancytree-expander>div{background-position:50%;height:1.25rem;position:relative;width:1.25rem;z-index:1}.fancytree-expander:after,.fancytree-expander:before{content:"";display:block;position:absolute}.fancytree-expander:before{border-bottom:var(--expander-border);left:-50%;margin-right:1rem;right:0;top:50%}.fancytree-expander:after{border-left:var(--expander-border);left:50%}.fancytree-expander.level-1:after,.fancytree-expander.level-1:before{content:none}.fancytree-expander.expanded-parent .expander-additional{bottom:0;position:absolute;top:0}.fancytree-expander.expanded-parent .expander-additional:before{border-left:var(--expander-border);bottom:0;content:"";display:block;position:absolute;top:0}.fancytree-expander:hover>div{filter:brightness(.5)}tr.fancytree-has-children span.fancytree-expander:before{right:50%}.fancytree-ico-e .fancytree-expander:before{bottom:50%}.fancytree-ico-e .fancytree-expander:after{bottom:0;margin-top:1rem;top:50%}.fancytree-ico-c .fancytree-expander:after{left:-50%}.fancytree-lastsib span.fancytree-expander.expanded-parent .expander-additional-last:before{bottom:50%!important}.fancytree-exp-c:first-child .fancytree-expander:after,.fancytree-exp-e:first-child .fancytree-expander:after{top:50%}.fancytree-exp-cl span.fancytree-expander:after{bottom:50%}.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:visible}.fancytree-exp-n .fancytree-expander>div,.fancytree-exp-nl .fancytree-expander>div{display:none}.fancytree-exp-n .fancytree-expander:before,.fancytree-exp-nl .fancytree-expander:before{margin-right:.5rem}.fancytree-exp-nl .fancytree-expander:after{bottom:50%}.fancytree-exp-c .fancytree-expander>div,.fancytree-exp-cl .fancytree-expander>div{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-1 8V8h2v3h3v2h-3v3h-2v-3H8v-2h3Z' fill='%236B7280'/%3E%3C/svg%3E")}.fancytree-exp-e .fancytree-expander>div,.fancytree-exp-ed .fancytree-expander>div,.fancytree-exp-edl .fancytree-expander>div,.fancytree-exp-el .fancytree-expander>div{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm5 1h8v-2H8v2Z' fill='%236B7280'/%3E%3C/svg%3E")}.fancytree-hide{display:none}.fancytree-submatch:not(.fancytree-match)>*{opacity:.5}.fancytree-status-merged{height:2.5rem}.fancytree-statusnode-error,.fancytree-statusnode-loading{pointer-events:none}.filter-wrapper .fancytree-ext-table>thead{display:none}.filter-wrapper .fancytree-ext-table .fancytree-checkbox-column{background-color:var(--color-light);left:0;padding-left:.75rem;padding-right:.25rem;position:sticky;z-index:1}.filter-wrapper .fancytree-ext-table .fancytree-checkbox-column+td{isolation:isolate;padding-left:0}.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-active:hover>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-active>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-selected:hover>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-selected>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr:hover>.fancytree-checkbox-column{background-color:var(--color-primary-50)}#fancytree-drop-marker{height:42px;margin:0;position:absolute;width:100%}#fancytree-drop-marker:before{content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%}#fancytree-drop-marker:after{background-repeat:no-repeat;bottom:0;content:"";display:block;position:absolute;right:100%;top:0;width:28px}#fancytree-drop-marker.fancytree-drop-before:before{border-color:var(--color-primary);border-top-width:2px;margin-top:12px}#fancytree-drop-marker.fancytree-drop-before:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m17.586 10-2.293-2.293 1.414-1.414 4 4a1 1 0 0 1 0 1.414l-4 4-1.414-1.414L17.586 12H5.5a.5.5 0 0 0-.5.5V19H3v-6.5A2.5 2.5 0 0 1 5.5 10h12.086Z' fill='%2300959D'/%3E%3C/svg%3E");background-position:100% 0;top:2px}#fancytree-drop-marker.fancytree-drop-after:before{border-bottom-width:2px;border-color:var(--color-primary);margin-top:-12px}#fancytree-drop-marker.fancytree-drop-after:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m17.586 10-2.293-2.293 1.414-1.414 4 4a1 1 0 0 1 0 1.414l-4 4-1.414-1.414L17.586 12H5.5a.5.5 0 0 0-.5.5V19H3v-6.5A2.5 2.5 0 0 1 5.5 10h12.086Z' fill='%2300959D'/%3E%3C/svg%3E");background-position:100% 0;bottom:2px;transform:rotateX(180deg)}#fancytree-drop-marker.fancytree-drop-over:before{border-bottom-width:2px;border-color:var(--color-primary);border-top-width:2px}#fancytree-drop-marker.fancytree-drop-over:after{background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm1.832 10.25H7.245v-2h6.585L11.04 8.457l1.414-1.414 4.5 4.5a1 1 0 0 1 0 1.414l-4.5 4.5-1.414-1.414 2.793-2.793Z' fill='%2300959D'/%3E%3C/svg%3E");background-position:100%;top:2px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.5}.fancytree-ext-table:active>tbody>tr.fancytree-active{background-color:transparent}
|
|
1
|
+
.tree-widget-wrapper>.dropdown-menu{min-width:480px;width:auto}.fancytree-ext-table{color:var(--color-dark-900);font-size:.875rem;height:100%;line-height:1.25rem}.fancytree-ext-table>thead{background-color:var(--color-dark-50);border-bottom-width:1px;border-color:var(--color-dark-200)}.fancytree-ext-table>tbody>tr.fancytree-active,.fancytree-ext-table>tbody>tr.fancytree-active:hover,.fancytree-ext-table>tbody>tr.fancytree-selected,.fancytree-ext-table>tbody>tr.fancytree-selected:hover,.fancytree-ext-table>tbody>tr:hover{background-color:var(--color-primary-50)}.fancytree-ext-table th{background-color:var(--color-dark-50);color:var(--color-dark-600);font-size:.875rem;font-weight:400;height:3rem;line-height:1.25rem;padding:.5rem;white-space:nowrap}.fancytree-ext-table th:first-child{padding-left:1rem}.fancytree-ext-table th:last-child{padding-right:1rem}.fancytree-ext-table th:not(.text-right){text-align:left}.fancytree-ext-table td{padding:0 .5rem;position:relative}.fancytree-ext-table td:not(.fancytree-checkbox-column):first-child{width:99%}.fancytree-ext-table td:not(:first-child){border-bottom-width:1px;border-color:var(--color-dark-200)}.fancytree-ext-table td.fancytree-checkbox-column+td,.fancytree-ext-table td:first-child{border:none;overflow:hidden;width:99%}.fancytree-ext-table td.fancytree-checkbox-column{padding-right:0;width:2rem}.fancytree-ext-table td:last-child{padding-right:1rem}.fancytree-ext-table td .fancytree-title{margin-left:2.5rem;white-space:nowrap}.fancytree-ext-table td .fancytree-title a{align-items:center;display:flex;padding:.25rem .5rem}.fancytree-ext-table td .fancytree-title .inactive-title{color:#8997ab;transition:color .2s ease-in-out}.fancytree-ext-table td .fancytree-title .inactive-badge{background:#e2e3e7;border-radius:4px;color:#4b5563!important;font-size:10px;margin-left:8px;padding:2px 8px}.fancytree-ext-table tr.fancytree-expanded td .fancytree-title a{font-weight:600}.fancytree-node{align-items:center;display:flex;height:2.5rem;position:relative}.fancytree-icon{display:none}.fancytree-checkbox{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.1);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:var(--color-light);border-color:var(--color-dark-300);border-radius:6px;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000 0),var(--tw-ring-shadow,0 0 #0000 0),var(--tw-shadow);cursor:pointer;display:block;height:1.25rem;left:0;outline-color:var(--color-transparent);outline-offset:2px;outline-style:solid;outline-width:2px;position:relative;top:0;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.fancytree-checkbox:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m20.707 7.707-10 10a1 1 0 0 1-1.414 0l-5-5 1.414-1.414L10 15.586l9.293-9.293 1.414 1.414Z' fill='%23E5E7EB'/%3E%3C/svg%3E");content:"";display:block;height:1.125rem;height:18px;left:1px;opacity:0;top:1px;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.125rem;width:18px}.fancytree-checkbox:hover{border-color:var(--color-dark)}.fancytree-checkbox:hover:after,.fancytree-selected{opacity:1}.fancytree-selected .fancytree-checkbox{background-color:var(--color-primary);border-color:var(--color-primary)}.fancytree-selected .fancytree-checkbox:after{opacity:1}.fancytree-selected .fancytree-checkbox:hover{background-color:var(--color-primary-600);border-color:var(--color-primary-600)}.fancytree-partsel{opacity:1}.fancytree-partsel .fancytree-checkbox{background-color:var(--color-primary);border-color:var(--color-primary)}.fancytree-partsel .fancytree-checkbox:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.25 13h-14v-2h14v2Z' fill='%23E5E7EB'/%3E%3C/svg%3E");opacity:1}.fancytree-partsel .fancytree-checkbox:hover{background-color:var(--color-primary-600);border-color:var(--color-primary-600)}.fancytree-title{align-items:center;display:flex;height:1.5rem;position:relative}.expander-border{bottom:0;left:0;position:absolute;right:0}.expander-border:after{border-bottom-width:1px;border-color:var(--color-dark-200);bottom:0;content:"";display:block;left:100%;position:absolute;right:-100vw}.fancytree-expander{--expander-border:2px solid var(--color-dark-400);align-items:center;background-size:16px;display:flex;height:100%;justify-content:center;position:absolute;width:2rem}.fancytree-expander>div{background-position:50%;height:1.25rem;position:relative;width:1.25rem;z-index:1}.fancytree-expander:after,.fancytree-expander:before{content:"";display:block;position:absolute}.fancytree-expander:before{border-bottom:var(--expander-border);left:-50%;margin-right:1rem;right:0;top:50%}.fancytree-expander:after{border-left:var(--expander-border);left:50%}.fancytree-expander.level-1:after,.fancytree-expander.level-1:before{content:none}.fancytree-expander.expanded-parent .expander-additional{bottom:0;position:absolute;top:0}.fancytree-expander.expanded-parent .expander-additional:before{border-left:var(--expander-border);bottom:0;content:"";display:block;position:absolute;top:0}.fancytree-expander:hover>div{filter:brightness(.5)}tr.fancytree-has-children span.fancytree-expander:before{right:50%}.fancytree-ico-e .fancytree-expander:before{bottom:50%}.fancytree-ico-e .fancytree-expander:after{bottom:0;margin-top:1rem;top:50%}.fancytree-ico-c .fancytree-expander:after{left:-50%}.fancytree-lastsib span.fancytree-expander.expanded-parent .expander-additional-last:before{bottom:50%!important}.fancytree-exp-c:first-child .fancytree-expander:after,.fancytree-exp-e:first-child .fancytree-expander:after{top:50%}.fancytree-exp-cl span.fancytree-expander:after{bottom:50%}.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:visible}.fancytree-exp-n .fancytree-expander>div,.fancytree-exp-nl .fancytree-expander>div{display:none}.fancytree-exp-n .fancytree-expander:before,.fancytree-exp-nl .fancytree-expander:before{margin-right:.5rem}.fancytree-exp-nl .fancytree-expander:after{bottom:50%}.fancytree-exp-c .fancytree-expander>div,.fancytree-exp-cl .fancytree-expander>div{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-1 8V8h2v3h3v2h-3v3h-2v-3H8v-2h3Z' fill='%236B7280'/%3E%3C/svg%3E")}.fancytree-exp-e .fancytree-expander>div,.fancytree-exp-ed .fancytree-expander>div,.fancytree-exp-edl .fancytree-expander>div,.fancytree-exp-el .fancytree-expander>div{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm5 1h8v-2H8v2Z' fill='%236B7280'/%3E%3C/svg%3E")}.fancytree-hide{display:none}.fancytree-submatch:not(.fancytree-match)>*{opacity:.5}.fancytree-status-merged{height:2.5rem}.fancytree-statusnode-error,.fancytree-statusnode-loading{pointer-events:none}.filter-wrapper .fancytree-ext-table>thead{display:none}.filter-wrapper .fancytree-ext-table .fancytree-checkbox-column{background-color:var(--color-light);left:0;padding-left:.75rem;padding-right:.25rem;position:sticky;z-index:1}.filter-wrapper .fancytree-ext-table .fancytree-checkbox-column+td{isolation:isolate;padding-left:0}.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-active:hover>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-active>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-selected:hover>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr.fancytree-selected>.fancytree-checkbox-column,.filter-wrapper .fancytree-ext-table>tbody>tr:hover>.fancytree-checkbox-column{background-color:var(--color-primary-50)}#fancytree-drop-marker{height:42px;margin:0;position:absolute;width:100%}#fancytree-drop-marker:before{content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%}#fancytree-drop-marker:after{background-repeat:no-repeat;bottom:0;content:"";display:block;position:absolute;right:100%;top:0;width:28px}#fancytree-drop-marker.fancytree-drop-before:before{border-color:var(--color-primary);border-top-width:2px;margin-top:12px}#fancytree-drop-marker.fancytree-drop-before:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m17.586 10-2.293-2.293 1.414-1.414 4 4a1 1 0 0 1 0 1.414l-4 4-1.414-1.414L17.586 12H5.5a.5.5 0 0 0-.5.5V19H3v-6.5A2.5 2.5 0 0 1 5.5 10h12.086Z' fill='%2300959D'/%3E%3C/svg%3E");background-position:100% 0;right:calc(100% + 27px);top:2px}#fancytree-drop-marker.fancytree-drop-after:before{border-bottom-width:2px;border-color:var(--color-primary);margin-top:-12px}#fancytree-drop-marker.fancytree-drop-after:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m17.586 10-2.293-2.293 1.414-1.414 4 4a1 1 0 0 1 0 1.414l-4 4-1.414-1.414L17.586 12H5.5a.5.5 0 0 0-.5.5V19H3v-6.5A2.5 2.5 0 0 1 5.5 10h12.086Z' fill='%2300959D'/%3E%3C/svg%3E");background-position:100% 0;bottom:2px;right:calc(100% + 27px);transform:rotateX(180deg)}#fancytree-drop-marker.fancytree-drop-over:before{border-bottom-width:2px;border-color:var(--color-primary);border-top-width:2px}#fancytree-drop-marker.fancytree-drop-over:after{background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm1.832 10.25H7.245v-2h6.585L11.04 8.457l1.414-1.414 4.5 4.5a1 1 0 0 1 0 1.414l-4.5 4.5-1.414-1.414 2.793-2.793Z' fill='%2300959D'/%3E%3C/svg%3E");background-position:center left 2px;bottom:10px;top:10px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.5}.fancytree-ext-table:active>tbody>tr.fancytree-active{background-color:transparent}
|
|
@@ -363,6 +363,7 @@ tr.fancytree-has-children span.fancytree-expander:before {
|
|
|
363
363
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.5859 10L15.293 7.70711L16.7072 6.29289L20.7072 10.2929C21.0977 10.6834 21.0977 11.3166 20.7072 11.7071L16.7072 15.7071L15.293 14.2929L17.5859 12H5.5C5.22385 12 5 12.2238 5 12.5V19H3V12.5C3 11.1193 4.1193 10 5.5 10H17.5859Z" fill="%2300959D"/></svg>');
|
|
364
364
|
background-position: top right;
|
|
365
365
|
top: 2px;
|
|
366
|
+
right: calc(100% + 27px);
|
|
366
367
|
}
|
|
367
368
|
}
|
|
368
369
|
|
|
@@ -377,6 +378,7 @@ tr.fancytree-has-children span.fancytree-expander:before {
|
|
|
377
378
|
transform: rotateX(180deg);
|
|
378
379
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.5859 10L15.293 7.70711L16.7072 6.29289L20.7072 10.2929C21.0977 10.6834 21.0977 11.3166 20.7072 11.7071L16.7072 15.7071L15.293 14.2929L17.5859 12H5.5C5.22385 12 5 12.2238 5 12.5V19H3V12.5C3 11.1193 4.1193 10 5.5 10H17.5859Z" fill="%2300959D"/></svg>');
|
|
379
380
|
background-position: top right;
|
|
381
|
+
right: calc(100% + 27px);
|
|
380
382
|
|
|
381
383
|
}
|
|
382
384
|
}
|
|
@@ -387,10 +389,11 @@ tr.fancytree-has-children span.fancytree-expander:before {
|
|
|
387
389
|
}
|
|
388
390
|
|
|
389
391
|
&:after {
|
|
390
|
-
background-position: center
|
|
391
|
-
top:
|
|
392
|
+
background-position: center left 2px;
|
|
393
|
+
top: 10px;
|
|
394
|
+
bottom: 10px;
|
|
392
395
|
background-color: white;
|
|
393
|
-
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
396
|
+
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 3C7.02943 3 3 7.02943 3 12C3 16.9706 7.02943 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02943 16.9706 3 12 3ZM13.8315 13.25H7.24609V11.25H13.8315L11.0386 8.45711L12.4528 7.04289L16.9528 11.5429C17.3433 11.9334 17.3433 12.5666 16.9528 12.9571L12.4528 17.4571L11.0386 16.0429L13.8315 13.25Z" fill="%2300959D"/></svg>');
|
|
394
397
|
}
|
|
395
398
|
}
|
|
396
399
|
|
|
@@ -107,7 +107,11 @@ class SBAdminTable {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
isFiltered() {
|
|
110
|
-
|
|
110
|
+
const filterParams = this.getUrlParams()[this.constants.FILTER_DATA_NAME]
|
|
111
|
+
if(filterParams === undefined) {
|
|
112
|
+
return false
|
|
113
|
+
}
|
|
114
|
+
return Object.values(filterParams).some(val=>val)
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
loadFromUrlAfterInit() {
|
|
@@ -67,9 +67,7 @@ export class FilterModule extends SBAdminTableModule {
|
|
|
67
67
|
const filterData = new FormData(filterForm).entries()
|
|
68
68
|
const filterDataNotEmpty = {}
|
|
69
69
|
for (const [key, value] of filterData) {
|
|
70
|
-
|
|
71
|
-
filterDataNotEmpty[key] = value
|
|
72
|
-
}
|
|
70
|
+
filterDataNotEmpty[key] = value
|
|
73
71
|
}
|
|
74
72
|
if (Object.keys(filterDataNotEmpty).length > 0) {
|
|
75
73
|
params[this.table.constants.FILTER_DATA_NAME] = filterDataNotEmpty
|
django_smartbase_admin/utils.py
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
from collections.abc import Iterable
|
|
3
|
+
|
|
1
4
|
from django import forms
|
|
2
5
|
from django.conf import settings
|
|
3
6
|
from django.contrib.admin.helpers import Fieldset
|
|
4
7
|
from django.template.loader import render_to_string
|
|
5
8
|
|
|
9
|
+
logger = logging.getLogger(__name__)
|
|
10
|
+
|
|
6
11
|
|
|
7
12
|
class JSONSerializableMixin(object):
|
|
8
13
|
def to_json(self):
|
|
@@ -36,14 +41,20 @@ def render_notifications(request):
|
|
|
36
41
|
|
|
37
42
|
|
|
38
43
|
class FormFieldsetMixin(forms.Form):
|
|
39
|
-
def
|
|
44
|
+
def get_fieldsets(self) -> Iterable[tuple[str | None, dict]]:
|
|
40
45
|
meta = getattr(self, "Meta", None)
|
|
46
|
+
return getattr(meta, "fieldsets", tuple())
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
def fieldsets(self) -> Iterable[Fieldset]:
|
|
49
|
+
if not (fieldsets := self.get_fieldsets()):
|
|
50
|
+
logger.warning(
|
|
51
|
+
"No fieldsets defined for form %s. Using form fields as fallback.",
|
|
52
|
+
self.__class__.__name__,
|
|
53
|
+
)
|
|
43
54
|
yield Fieldset(form=self, fields=self.fields)
|
|
44
55
|
return
|
|
45
56
|
|
|
46
|
-
for name, data in
|
|
57
|
+
for name, data in fieldsets:
|
|
47
58
|
yield Fieldset(
|
|
48
59
|
form=self,
|
|
49
60
|
name=name,
|
|
@@ -66,11 +66,11 @@ django_smartbase_admin/static/sb_admin/dist/main.js,sha256=bcLgahjE9Uvyij68nJ-bi
|
|
|
66
66
|
django_smartbase_admin/static/sb_admin/dist/main.js.LICENSE.txt,sha256=Z8-1IrzhOFV3eE_WGR7SRfbzN9GRXsvfiU7_E_BkX-k,5600
|
|
67
67
|
django_smartbase_admin/static/sb_admin/dist/main_style.css,sha256=eLrE2ua24VQScaEOk5KUX_so7U3OWRglB2zq88eN55s,154970
|
|
68
68
|
django_smartbase_admin/static/sb_admin/dist/main_style.js,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
69
|
-
django_smartbase_admin/static/sb_admin/dist/table.js,sha256=
|
|
69
|
+
django_smartbase_admin/static/sb_admin/dist/table.js,sha256=xXAY3TNQbbyUZMZ51trz9P29PHjzLoLIEt4uB1biok4,592072
|
|
70
70
|
django_smartbase_admin/static/sb_admin/dist/table.js.LICENSE.txt,sha256=WOKSfEow5EUe0a78P0kcxdWcrQlqn2n6H8idNZqHVDk,462
|
|
71
71
|
django_smartbase_admin/static/sb_admin/dist/translations.js,sha256=5PRY3zmbnQ9pH-FtNHmsZ5xmYLPOQiO_hR3CBxHIAIo,567
|
|
72
72
|
django_smartbase_admin/static/sb_admin/dist/tree_widget.js,sha256=ZnBKO1oITZpjvK7ILiawQfmuCtrTQv43oemsxCTdXxI,6252
|
|
73
|
-
django_smartbase_admin/static/sb_admin/dist/tree_widget_style.css,sha256=
|
|
73
|
+
django_smartbase_admin/static/sb_admin/dist/tree_widget_style.css,sha256=rFGd70qMkzMLhDkjoKZTbbUNMU19_wWeCngHaoSrUhc,10546
|
|
74
74
|
django_smartbase_admin/static/sb_admin/dist/tree_widget_style.js,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
django_smartbase_admin/static/sb_admin/fancytree/jquery.fancytree-all-deps.min.js,sha256=JcIBncqpLNQT11WI19oVQQOhCmvoduGuxCR5Vaqupcc,130772
|
|
76
76
|
django_smartbase_admin/static/sb_admin/favicon/android-chrome-192x192.png,sha256=Og0qXawivKxQWmPPU6dkkGjO0txd-yDXXfemTWXCBDY,18172
|
|
@@ -499,7 +499,7 @@ django_smartbase_admin/static/sb_admin/src/css/components/_query-builder.css,sha
|
|
|
499
499
|
django_smartbase_admin/static/sb_admin/src/css/components/_toggle.css,sha256=QiwJyVj_F5qb1qeYVWM_KeKKD3oOnSRbAkx6zq80dJU,2612
|
|
500
500
|
django_smartbase_admin/static/sb_admin/src/css/components/_tooltip.css,sha256=5JzpOPLRQBi3xLjKXqCJKyR_neRLYVQP4emhflNT68A,2485
|
|
501
501
|
django_smartbase_admin/static/sb_admin/src/css/style.css,sha256=M6Z77etzClsxi1NCYiFg0kJurIqkuvYeYIbc5rxx4gQ,739
|
|
502
|
-
django_smartbase_admin/static/sb_admin/src/css/tree_widget.css,sha256=
|
|
502
|
+
django_smartbase_admin/static/sb_admin/src/css/tree_widget.css,sha256=4jL0vXCFCfWC-bstSxsUDFnU7DQ-AcaSJ1Xj-AT60_U,11079
|
|
503
503
|
django_smartbase_admin/static/sb_admin/src/js/autocomplete.js,sha256=Z5KQMmGaRxJ-okZprXd42iJL34lF0LR40HuWYSS3RoE,12524
|
|
504
504
|
django_smartbase_admin/static/sb_admin/src/js/chart.js,sha256=SSryj2X0H9u_7uhfDOeMlJmq-hePnT3P4djQauILqpQ,4762
|
|
505
505
|
django_smartbase_admin/static/sb_admin/src/js/choices.js,sha256=DzrJYV5vq_NywD6KxNIEGmemZENwvcJSNPEPkZKuu1E,4615
|
|
@@ -513,13 +513,13 @@ django_smartbase_admin/static/sb_admin/src/js/range.js,sha256=Vc_NZMKAUzwYpTC1jf
|
|
|
513
513
|
django_smartbase_admin/static/sb_admin/src/js/sb_ajax_params_tabulator_modifier.js,sha256=vJsAfRlXYeUH-hXLyVukim-UBRUHhv2J9UZHKAALOKo,650
|
|
514
514
|
django_smartbase_admin/static/sb_admin/src/js/sidebar.js,sha256=gx0MqnLWIRb26-GDvETQ7CE4DucP-L-9-hZ9-oFjuUw,1570
|
|
515
515
|
django_smartbase_admin/static/sb_admin/src/js/sorting.js,sha256=-56L7MecDqzowVIwIPPTUd46tBR7OTD2DNXBij12TzY,1186
|
|
516
|
-
django_smartbase_admin/static/sb_admin/src/js/table.js,sha256=
|
|
516
|
+
django_smartbase_admin/static/sb_admin/src/js/table.js,sha256=asizTRixJeSefvuXOcVMwLhlPkuOuEwnRuWn5VunL0c,14714
|
|
517
517
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/advanced_filter_module.js,sha256=dYiFFtwkgYyPn_IM8XLEGSDM9jQhtl53CuxJrwo0_U8,5520
|
|
518
518
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/base_module.js,sha256=M8xM8JGi6CwRwoC_0ADbOPNfg30Sqm8KlP52IZ4ItS8,557
|
|
519
519
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/column_display_module.js,sha256=hHu0voHiPM2QaPPF5X0YAR0-5T913VS7G_PW4eB3laQ,10655
|
|
520
520
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/data_edit_module.js,sha256=8tlH28XAkGttcgf2xEUgpgQ2XJ9biKAY3WgdSxO_F9M,902
|
|
521
521
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/detail_view_module.js,sha256=hs3uN_NRDnJQSUHUZJACR4L1Lw82HTsI-Kco9kdh-Ek,686
|
|
522
|
-
django_smartbase_admin/static/sb_admin/src/js/table_modules/filter_module.js,sha256=
|
|
522
|
+
django_smartbase_admin/static/sb_admin/src/js/table_modules/filter_module.js,sha256=kdsOX9ToIOQ3mZC6EmFwrWJRD-wMN5ipZSuuH8vViOk,4444
|
|
523
523
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/full_text_search_module.js,sha256=9ZfnZXvaTOphhRU0B7H0rsghUBWzTOSyVK1FZIj6bIE,573
|
|
524
524
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/header_tabs_module.js,sha256=zT2CYKfMSd0903ASUzIbT8HwTkF6id3w4j5IJpwONp8,2888
|
|
525
525
|
django_smartbase_admin/static/sb_admin/src/js/table_modules/movable_columns_module.js,sha256=X0FQykK63v8vcE3-qZhkWZA2ajp8QTCLFv0PvkeLVvY,7694
|
|
@@ -673,13 +673,13 @@ django_smartbase_admin/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
|
673
673
|
django_smartbase_admin/templatetags/base.py,sha256=XF1wUQxUjULXfdlV-PeHvITfbw65LTHjlDzRikJa_F4,1520
|
|
674
674
|
django_smartbase_admin/templatetags/sb_admin_tags.py,sha256=rvJufjS0mhGj6Wl6P-iEoWGVx_dt96BZuZo1XzUZmIU,8210
|
|
675
675
|
django_smartbase_admin/urls.py,sha256=Bjdewssljt0LIefjixBem9JN0kkghPvmrIETj3GdXbY,17
|
|
676
|
-
django_smartbase_admin/utils.py,sha256=
|
|
676
|
+
django_smartbase_admin/utils.py,sha256=4xOYZZCjYrJv59LcqocUapt9Bp9HtIN3zemI98Q4MAU,3176
|
|
677
677
|
django_smartbase_admin/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
678
678
|
django_smartbase_admin/views/dashboard_view.py,sha256=vtz5emYTQ5WDFeLA8HrcmjSOVdc0o2vYbjljbT67gvo,1495
|
|
679
679
|
django_smartbase_admin/views/global_filter_view.py,sha256=eYo1moJGyi7jc2cPDA5ZBiEgA7Hmc-DxbQvbqUpDkg8,1127
|
|
680
680
|
django_smartbase_admin/views/media_view.py,sha256=5BLWXuzynF7nM34t-mf2BQSRN5ojY8HxpLIqt7Jiq9g,292
|
|
681
681
|
django_smartbase_admin/views/translations_view.py,sha256=tkShf5IWyPDjNhcPQsvh8WXs-EMRCfG_oTD9x-LP1No,20272
|
|
682
|
-
django_smartbase_admin-0.2.
|
|
683
|
-
django_smartbase_admin-0.2.
|
|
684
|
-
django_smartbase_admin-0.2.
|
|
685
|
-
django_smartbase_admin-0.2.
|
|
682
|
+
django_smartbase_admin-0.2.97.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
|
|
683
|
+
django_smartbase_admin-0.2.97.dist-info/METADATA,sha256=Gbp1dT3RoOOWKvAK7IDk6vuClwjLJ2n0xFb2yqrxTKo,996
|
|
684
|
+
django_smartbase_admin-0.2.97.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
685
|
+
django_smartbase_admin-0.2.97.dist-info/RECORD,,
|
{django_smartbase_admin-0.2.94.dist-info → django_smartbase_admin-0.2.97.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|