django-unfold 0.42.0__py3-none-any.whl → 0.44.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. {django_unfold-0.42.0.dist-info → django_unfold-0.44.0.dist-info}/METADATA +1 -1
  2. django_unfold-0.44.0.dist-info/RECORD +227 -0
  3. {django_unfold-0.42.0.dist-info → django_unfold-0.44.0.dist-info}/WHEEL +1 -1
  4. unfold/admin.py +2 -0
  5. unfold/components.py +47 -0
  6. unfold/contrib/filters/admin.py +5 -5
  7. unfold/contrib/filters/templates/unfold/filters/filters_date_range.html +1 -1
  8. unfold/contrib/filters/templates/unfold/filters/filters_datetime_range.html +1 -1
  9. unfold/contrib/filters/templates/unfold/filters/filters_numeric_range.html +1 -1
  10. unfold/contrib/filters/templates/unfold/filters/filters_numeric_single.html +1 -1
  11. unfold/contrib/filters/templates/unfold/filters/filters_numeric_slider.html +3 -3
  12. unfold/contrib/forms/templates/unfold/forms/array.html +3 -3
  13. unfold/contrib/forms/templates/unfold/forms/helpers/toolbar.html +25 -25
  14. unfold/contrib/forms/widgets.py +5 -5
  15. unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage.html +1 -1
  16. unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage_group.html +2 -2
  17. unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage_user.html +2 -2
  18. unfold/contrib/guardian/templates/unfold/guardian/group_form.html +8 -8
  19. unfold/contrib/guardian/templates/unfold/guardian/user_form.html +8 -8
  20. unfold/contrib/import_export/templates/admin/import_export/change_form.html +1 -1
  21. unfold/contrib/import_export/templates/admin/import_export/export.html +4 -4
  22. unfold/contrib/import_export/templates/admin/import_export/import_confirm.html +4 -4
  23. unfold/contrib/import_export/templates/admin/import_export/import_errors.html +2 -2
  24. unfold/contrib/import_export/templates/admin/import_export/import_form.html +2 -2
  25. unfold/contrib/import_export/templates/admin/import_export/import_preview.html +5 -5
  26. unfold/contrib/import_export/templates/admin/import_export/import_validation.html +30 -25
  27. unfold/contrib/import_export/templates/admin/import_export/resource_fields_list.html +5 -3
  28. unfold/contrib/simple_history/templates/simple_history/object_history.html +2 -2
  29. unfold/contrib/simple_history/templates/simple_history/object_history_form.html +1 -1
  30. unfold/contrib/simple_history/templates/simple_history/object_history_list.html +9 -9
  31. unfold/contrib/simple_history/templates/simple_history/submit_line.html +4 -4
  32. unfold/forms.py +13 -2
  33. unfold/settings.py +20 -7
  34. unfold/sites.py +23 -8
  35. unfold/static/admin/js/inlines.js +2 -2
  36. unfold/static/unfold/css/styles.css +1 -1
  37. unfold/static/unfold/js/alpine.resize.js +1 -0
  38. unfold/static/unfold/js/app.js +52 -71
  39. unfold/static/unfold/js/htmx.js +1 -1
  40. unfold/styles.css +67 -71
  41. unfold/templates/admin/actions.html +19 -17
  42. unfold/templates/admin/app_list.html +3 -3
  43. unfold/templates/admin/auth/user/add_form.html +1 -1
  44. unfold/templates/admin/auth/user/change_password.html +2 -2
  45. unfold/templates/admin/base.html +1 -1
  46. unfold/templates/admin/change_form.html +8 -0
  47. unfold/templates/admin/change_list.html +24 -30
  48. unfold/templates/admin/change_list_results.html +40 -6
  49. unfold/templates/admin/date_hierarchy.html +1 -1
  50. unfold/templates/admin/delete_confirmation.html +7 -7
  51. unfold/templates/admin/delete_selected_confirmation.html +7 -7
  52. unfold/templates/admin/edit_inline/stacked.html +4 -4
  53. unfold/templates/admin/edit_inline/tabular.html +8 -151
  54. unfold/templates/admin/filter.html +7 -7
  55. unfold/templates/admin/includes/fieldset.html +2 -2
  56. unfold/templates/admin/includes/object_delete_summary.html +1 -1
  57. unfold/templates/admin/login.html +4 -4
  58. unfold/templates/admin/nav_sidebar.html +1 -17
  59. unfold/templates/admin/object_history.html +7 -7
  60. unfold/templates/admin/pagination.html +36 -30
  61. unfold/templates/admin/search_form.html +11 -9
  62. unfold/templates/admin/submit_line.html +11 -11
  63. unfold/templates/auth/widgets/read_only_password_hash.html +1 -1
  64. unfold/templates/registration/logged_out.html +3 -3
  65. unfold/templates/registration/password_change_done.html +1 -1
  66. unfold/templates/registration/password_change_form.html +1 -1
  67. unfold/templates/unfold/components/button.html +1 -1
  68. unfold/templates/unfold/components/card.html +4 -4
  69. unfold/templates/unfold/components/chart/cohort.html +59 -0
  70. unfold/templates/unfold/components/navigation.html +2 -2
  71. unfold/templates/unfold/components/separator.html +1 -1
  72. unfold/templates/unfold/components/table.html +6 -6
  73. unfold/templates/unfold/components/tracker.html +5 -0
  74. unfold/templates/unfold/helpers/account_links.html +6 -6
  75. unfold/templates/unfold/helpers/actions_row.html +5 -5
  76. unfold/templates/unfold/helpers/add_link.html +1 -1
  77. unfold/templates/unfold/helpers/app_list.html +10 -10
  78. unfold/templates/unfold/helpers/app_list_default.html +10 -10
  79. unfold/templates/unfold/helpers/boolean.html +1 -1
  80. unfold/templates/unfold/helpers/breadcrumb_item.html +1 -1
  81. unfold/templates/unfold/helpers/change_list_actions.html +13 -0
  82. unfold/templates/unfold/helpers/change_list_filter.html +31 -0
  83. unfold/templates/unfold/helpers/change_list_filter_actions.html +23 -0
  84. unfold/templates/unfold/helpers/delete_submit_line.html +2 -2
  85. unfold/templates/unfold/helpers/display_header.html +3 -3
  86. unfold/templates/unfold/helpers/edit_inline/tabular_delete.html +13 -0
  87. unfold/templates/unfold/helpers/edit_inline/tabular_error.html +8 -0
  88. unfold/templates/unfold/helpers/edit_inline/tabular_field.html +25 -0
  89. unfold/templates/unfold/helpers/edit_inline/tabular_heading.html +25 -0
  90. unfold/templates/unfold/helpers/edit_inline/tabular_row.html +27 -0
  91. unfold/templates/unfold/helpers/edit_inline/tabular_title.html +49 -0
  92. unfold/templates/unfold/helpers/field_readonly.html +1 -1
  93. unfold/templates/unfold/helpers/field_readonly_value.html +1 -1
  94. unfold/templates/unfold/helpers/fieldset_row.html +5 -73
  95. unfold/templates/unfold/helpers/fieldset_row_checkbox.html +45 -0
  96. unfold/templates/unfold/helpers/fieldset_row_field.html +21 -0
  97. unfold/templates/unfold/helpers/fieldsets_tabs.html +2 -2
  98. unfold/templates/unfold/helpers/header.html +1 -1
  99. unfold/templates/unfold/helpers/history.html +4 -4
  100. unfold/templates/unfold/helpers/label.html +1 -1
  101. unfold/templates/unfold/helpers/language_switch.html +3 -3
  102. unfold/templates/unfold/helpers/messages/debug.html +3 -0
  103. unfold/templates/unfold/helpers/messages/error.html +5 -3
  104. unfold/templates/unfold/helpers/messages/errornote.html +1 -1
  105. unfold/templates/unfold/helpers/messages/info.html +2 -2
  106. unfold/templates/unfold/helpers/messages/success.html +3 -0
  107. unfold/templates/unfold/helpers/messages/warning.html +3 -0
  108. unfold/templates/unfold/helpers/messages.html +13 -14
  109. unfold/templates/unfold/helpers/navigation.html +3 -11
  110. unfold/templates/unfold/helpers/navigation_header.html +13 -0
  111. unfold/templates/unfold/helpers/pagination_ellipsis.html +1 -1
  112. unfold/templates/unfold/helpers/search.html +5 -5
  113. unfold/templates/unfold/helpers/search_results.html +2 -2
  114. unfold/templates/unfold/helpers/site_icon.html +7 -5
  115. unfold/templates/unfold/helpers/site_logo.html +1 -1
  116. unfold/templates/unfold/helpers/submit.html +1 -1
  117. unfold/templates/unfold/helpers/tab_action.html +2 -2
  118. unfold/templates/unfold/helpers/tab_list.html +9 -9
  119. unfold/templates/unfold/helpers/theme_switch.html +5 -5
  120. unfold/templates/unfold/helpers/userlinks.html +4 -0
  121. unfold/templates/unfold/helpers/welcomemsg.html +13 -1
  122. unfold/templates/unfold/layouts/base_simple.html +2 -2
  123. unfold/templates/unfold/layouts/skeleton.html +12 -6
  124. unfold/templates/unfold/widgets/clearable_file_input.html +6 -6
  125. unfold/templates/unfold/widgets/clearable_file_input_small.html +7 -7
  126. unfold/templates/unfold/widgets/foreign_key_raw_id.html +1 -1
  127. unfold/templates/unfold/widgets/radio.html +1 -1
  128. unfold/templates/unfold/widgets/range.html +1 -1
  129. unfold/templates/unfold/widgets/related_widget_wrapper.html +4 -4
  130. unfold/templates/unfold/widgets/textarea_expandable.html +1 -1
  131. unfold/templatetags/unfold.py +130 -7
  132. unfold/templatetags/unfold_list.py +9 -4
  133. unfold/widgets.py +31 -28
  134. django_unfold-0.42.0.dist-info/RECORD +0 -209
  135. unfold/templates/unfold/change_list_filter.html +0 -59
  136. {django_unfold-0.42.0.dist-info → django_unfold-0.44.0.dist-info}/LICENSE.md +0 -0
@@ -1,59 +0,0 @@
1
- {% load i18n admin_list unfold %}
2
-
3
- <div id="changelist-filter" class="backdrop-blur-sm bg-opacity-80 bg-gray-900 flex inset-0 z-50 fixed {% if not cl.model_admin.list_filter_sheet %}2xl:bg-transparent 2xl:relative 2xl:!block 2xl:z-10{% endif %}" x-show="filterOpen">
4
- <label for="show-filters" id="changelist-filter-close" class="flex-grow {% if not cl.model_admin.list_filter_sheet %}2xl:hidden{% endif %}" x-on:click="filterOpen = false"></label>
5
-
6
- <div class="bg-white flex m-4 overflow-hidden rounded shadow-sm w-80 dark:bg-gray-800 {% if not cl.model_admin.list_filter_sheet %} 2xl:border 2xl:sticky 2xl:top-4 2xl:dark:border-gray-800 2xl:bg-transparent 2xl:dark:!bg-transparent 2xl:m-0{% endif %}">
7
- <div class="flex-grow h-full overflow-auto relative">
8
- <h3 class="border-b flex font-semibold mb-4 px-4 py-4 text-font-important-light text-sm dark:text-font-important-dark dark:border-gray-800">
9
- {% trans "Filter" %}
10
-
11
- {% if cl.is_facets_optional %}
12
- <span id="changelist-filter-extra-actions" class="font-normal ml-3 text-primary-600 text-sm dark:text-primary-500">
13
- {% if cl.is_facets_optional %}
14
- {% if cl.add_facets %}
15
- <a href="{{ cl.remove_facet_link }}" class="hidelink">
16
- {% trans "Hide counts" %}
17
- </a>
18
- {% else %}
19
- <a href="{{ cl.add_facet_link }}" class="viewlink">
20
- {% trans "Show counts" %}
21
- </a>
22
- {% endif %}
23
- {% endif %}
24
- </span>
25
- {% endif %}
26
-
27
- {% if cl.has_active_filters %}
28
- <a href="{{ cl.clear_all_filters_qs }}" class="font-normal ml-3 text-sm text-red-600 dark:text-red-500">
29
- {% trans "Clear all filters" %}
30
- </a>
31
- {% endif %}
32
-
33
- <a class="cursor-pointer material-symbols-outlined md-18 ml-auto pl-4 text-gray-400 transition-colors hover:text-gray-500 dark:text-gray-500 dark:hover:text-gray-400 {% if not cl.model_admin.list_filter_sheet %}2xl:hidden{% endif %}" x-on:click="filterOpen = false">
34
- close
35
- </a>
36
- </h3>
37
-
38
- <div class="px-4{% if cl.model_admin.list_filter_submit %} {% endif %}">
39
- {% if cl.model_admin.list_filter_submit %}
40
- <form id="filter-form" method="get">
41
- {% preserve_filters %}
42
- {% endif %}
43
-
44
- {% for spec in cl.filter_specs %}
45
- {% admin_list_filter cl spec %}
46
- {% endfor %}
47
-
48
- {% if cl.model_admin.list_filter_submit %}
49
- <div class="bottom-4 absolute left-4 right-4 {% if not cl.model_admin.list_filter_sheet %}2xl:left-0 2xl:right-0 2xl:relative 2xl:mt-8{% endif %}">
50
- <button type="submit" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded-md self-end text-sm text-white w-full">
51
- {% trans "Apply Filters" %}
52
- </button>
53
- </div>
54
- </form>
55
- {% endif %}
56
- </div>
57
- </div>
58
- </div>
59
- </div>