django-spire 0.23.4__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.
Files changed (1202) hide show
  1. django_spire/__init__.py +0 -0
  2. django_spire/ai/__init__.py +0 -0
  3. django_spire/ai/admin.py +127 -0
  4. django_spire/ai/apps.py +18 -0
  5. django_spire/ai/chat/__init__.py +0 -0
  6. django_spire/ai/chat/admin.py +51 -0
  7. django_spire/ai/chat/apps.py +23 -0
  8. django_spire/ai/chat/auth/__init__.py +0 -0
  9. django_spire/ai/chat/auth/controller.py +8 -0
  10. django_spire/ai/chat/choices.py +9 -0
  11. django_spire/ai/chat/intelligence/__init__.py +0 -0
  12. django_spire/ai/chat/intelligence/decoders/__init__.py +0 -0
  13. django_spire/ai/chat/intelligence/decoders/intent_decoder.py +49 -0
  14. django_spire/ai/chat/intelligence/prompts.py +25 -0
  15. django_spire/ai/chat/intelligence/workflows/__init__.py +0 -0
  16. django_spire/ai/chat/intelligence/workflows/chat_workflow.py +42 -0
  17. django_spire/ai/chat/message_intel.py +47 -0
  18. django_spire/ai/chat/migrations/0001_initial.py +55 -0
  19. django_spire/ai/chat/migrations/0002_remove_chatmessage_content_chatmessage__content_and_more.py +29 -0
  20. django_spire/ai/chat/migrations/0003_rename__content_chatmessage__intel_data_and_more.py +28 -0
  21. django_spire/ai/chat/migrations/0004_chatmessage_response_type_chatmessage_sender.py +25 -0
  22. django_spire/ai/chat/migrations/__init__.py +0 -0
  23. django_spire/ai/chat/models.py +154 -0
  24. django_spire/ai/chat/querysets.py +34 -0
  25. django_spire/ai/chat/responses.py +74 -0
  26. django_spire/ai/chat/router.py +105 -0
  27. django_spire/ai/chat/templates/django_spire/ai/chat/card/chat_card.html +13 -0
  28. django_spire/ai/chat/templates/django_spire/ai/chat/dropdown/ellipsis_dropdown.html +18 -0
  29. django_spire/ai/chat/templates/django_spire/ai/chat/element/recent_chat_select_element.html +122 -0
  30. django_spire/ai/chat/templates/django_spire/ai/chat/message/default_message.html +5 -0
  31. django_spire/ai/chat/templates/django_spire/ai/chat/message/loading_response_message.html +53 -0
  32. django_spire/ai/chat/templates/django_spire/ai/chat/message/message.html +52 -0
  33. django_spire/ai/chat/templates/django_spire/ai/chat/message/request_message.html +11 -0
  34. django_spire/ai/chat/templates/django_spire/ai/chat/message/response_message.html +18 -0
  35. django_spire/ai/chat/templates/django_spire/ai/chat/page/chat_page.html +35 -0
  36. django_spire/ai/chat/templates/django_spire/ai/chat/section/confirm_delete_section.html +22 -0
  37. django_spire/ai/chat/templates/django_spire/ai/chat/widget/dialog_widget.html +126 -0
  38. django_spire/ai/chat/templates/django_spire/ai/chat/widget/recent_chat_list_widget.html +3 -0
  39. django_spire/ai/chat/templates/django_spire/ai/chat/widget/selection_widget.html +42 -0
  40. django_spire/ai/chat/tests/__init__.py +0 -0
  41. django_spire/ai/chat/tests/test_router/test_base_chat_router.py +110 -0
  42. django_spire/ai/chat/tests/test_router/test_chat_workflow.py +113 -0
  43. django_spire/ai/chat/tests/test_router/test_integration.py +147 -0
  44. django_spire/ai/chat/tests/test_router/test_intent_decoder.py +141 -0
  45. django_spire/ai/chat/tests/test_router/test_message_intel.py +67 -0
  46. django_spire/ai/chat/tests/test_router/test_spire_chat_router.py +92 -0
  47. django_spire/ai/chat/tests/test_urls/__init__.py +0 -0
  48. django_spire/ai/chat/tests/test_urls/factories.py +15 -0
  49. django_spire/ai/chat/tests/test_urls/test_json_urls.py +23 -0
  50. django_spire/ai/chat/urls/__init__.py +10 -0
  51. django_spire/ai/chat/urls/json_urls.py +12 -0
  52. django_spire/ai/chat/urls/message_request_urls.py +10 -0
  53. django_spire/ai/chat/urls/message_response_urls.py +10 -0
  54. django_spire/ai/chat/urls/message_urls.py +16 -0
  55. django_spire/ai/chat/urls/page_urls.py +10 -0
  56. django_spire/ai/chat/urls/template/__init__.py +0 -0
  57. django_spire/ai/chat/urls/template/template_urls.py +13 -0
  58. django_spire/ai/chat/views/__init__.py +0 -0
  59. django_spire/ai/chat/views/json_views.py +56 -0
  60. django_spire/ai/chat/views/message_request_views.py +82 -0
  61. django_spire/ai/chat/views/message_response_views.py +44 -0
  62. django_spire/ai/chat/views/message_views.py +35 -0
  63. django_spire/ai/chat/views/page_views.py +26 -0
  64. django_spire/ai/chat/views/template/__init__.py +0 -0
  65. django_spire/ai/chat/views/template/template_views.py +70 -0
  66. django_spire/ai/context/__init__.py +0 -0
  67. django_spire/ai/context/admin.py +15 -0
  68. django_spire/ai/context/apps.py +16 -0
  69. django_spire/ai/context/choices.py +11 -0
  70. django_spire/ai/context/intelligence/__init__.py +0 -0
  71. django_spire/ai/context/intelligence/prompts/__init__.py +0 -0
  72. django_spire/ai/context/intelligence/prompts/organization_prompts.py +19 -0
  73. django_spire/ai/context/migrations/0001_initial.py +67 -0
  74. django_spire/ai/context/migrations/__init__.py +0 -0
  75. django_spire/ai/context/models.py +67 -0
  76. django_spire/ai/context/querysets.py +15 -0
  77. django_spire/ai/context/seeding/__init__.py +0 -0
  78. django_spire/ai/context/seeding/seed.py +24 -0
  79. django_spire/ai/decorators.py +81 -0
  80. django_spire/ai/migrations/0001_initial.py +61 -0
  81. django_spire/ai/migrations/__init__.py +0 -0
  82. django_spire/ai/mixins.py +22 -0
  83. django_spire/ai/models.py +77 -0
  84. django_spire/ai/prompt/__init__.py +0 -0
  85. django_spire/ai/prompt/bots.py +26 -0
  86. django_spire/ai/prompt/intel.py +35 -0
  87. django_spire/ai/prompt/prompts.py +88 -0
  88. django_spire/ai/prompt/system/__init__.py +0 -0
  89. django_spire/ai/prompt/system/bots.py +76 -0
  90. django_spire/ai/prompt/system/intel.py +36 -0
  91. django_spire/ai/prompt/system/prompts.py +153 -0
  92. django_spire/ai/prompt/system/system_prompt_cli.py +43 -0
  93. django_spire/ai/prompt/tests/__init__.py +0 -0
  94. django_spire/ai/prompt/tests/test_bots.py +31 -0
  95. django_spire/ai/prompt/text_to_prompt_cli.py +8 -0
  96. django_spire/ai/prompt/tuning/__init__.py +0 -0
  97. django_spire/ai/prompt/tuning/bot_tuning_cli.py +56 -0
  98. django_spire/ai/prompt/tuning/bots.py +109 -0
  99. django_spire/ai/prompt/tuning/choices.py +10 -0
  100. django_spire/ai/prompt/tuning/intel.py +11 -0
  101. django_spire/ai/prompt/tuning/mixins.py +31 -0
  102. django_spire/ai/prompt/tuning/prompt_tuning_cli.py +40 -0
  103. django_spire/ai/prompt/tuning/prompts.py +204 -0
  104. django_spire/ai/sms/__init__.py +0 -0
  105. django_spire/ai/sms/admin.py +52 -0
  106. django_spire/ai/sms/apps.py +16 -0
  107. django_spire/ai/sms/decorators.py +31 -0
  108. django_spire/ai/sms/intel.py +7 -0
  109. django_spire/ai/sms/intelligence/__init__.py +0 -0
  110. django_spire/ai/sms/intelligence/workflows/__init__.py +0 -0
  111. django_spire/ai/sms/intelligence/workflows/sms_conversation_workflow.py +27 -0
  112. django_spire/ai/sms/migrations/0001_initial.py +56 -0
  113. django_spire/ai/sms/migrations/__init__.py +0 -0
  114. django_spire/ai/sms/models.py +128 -0
  115. django_spire/ai/sms/querysets.py +18 -0
  116. django_spire/ai/sms/tests/__init__.py +0 -0
  117. django_spire/ai/sms/tests/test_sms.py +30 -0
  118. django_spire/ai/sms/tests/test_webhook.py +38 -0
  119. django_spire/ai/sms/urls.py +12 -0
  120. django_spire/ai/sms/views.py +61 -0
  121. django_spire/ai/tests/__init__.py +0 -0
  122. django_spire/ai/tests/test_ai.py +28 -0
  123. django_spire/ai/urls.py +11 -0
  124. django_spire/auth/__init__.py +0 -0
  125. django_spire/auth/apps.py +17 -0
  126. django_spire/auth/controller/__init__.py +0 -0
  127. django_spire/auth/controller/controller.py +84 -0
  128. django_spire/auth/group/__init__.py +0 -0
  129. django_spire/auth/group/admin.py +53 -0
  130. django_spire/auth/group/apps.py +22 -0
  131. django_spire/auth/group/factories.py +15 -0
  132. django_spire/auth/group/forms.py +45 -0
  133. django_spire/auth/group/migrations/0001_initial.py +32 -0
  134. django_spire/auth/group/migrations/__init__.py +0 -0
  135. django_spire/auth/group/models.py +35 -0
  136. django_spire/auth/group/querysets.py +8 -0
  137. django_spire/auth/group/templates/django_spire/auth/group/card/detail_card.html +25 -0
  138. django_spire/auth/group/templates/django_spire/auth/group/card/form_card.html +9 -0
  139. django_spire/auth/group/templates/django_spire/auth/group/card/group_permission_list_card.html +13 -0
  140. django_spire/auth/group/templates/django_spire/auth/group/card/group_user_form_card.html +9 -0
  141. django_spire/auth/group/templates/django_spire/auth/group/card/list_card.html +24 -0
  142. django_spire/auth/group/templates/django_spire/auth/group/card/permission_user_groups_form_card.html +77 -0
  143. django_spire/auth/group/templates/django_spire/auth/group/card/user_list_card.html +26 -0
  144. django_spire/auth/group/templates/django_spire/auth/group/container/user_detail_card.html +51 -0
  145. django_spire/auth/group/templates/django_spire/auth/group/element/group_perm_element.html +63 -0
  146. django_spire/auth/group/templates/django_spire/auth/group/element/group_perm_level_badge.html +11 -0
  147. django_spire/auth/group/templates/django_spire/auth/group/element/group_special_role_element.html +65 -0
  148. django_spire/auth/group/templates/django_spire/auth/group/element/is_active_badge.html +5 -0
  149. django_spire/auth/group/templates/django_spire/auth/group/form/form.html +19 -0
  150. django_spire/auth/group/templates/django_spire/auth/group/form/group_user_form.html +20 -0
  151. django_spire/auth/group/templates/django_spire/auth/group/item/group_item.html +31 -0
  152. django_spire/auth/group/templates/django_spire/auth/group/item/group_perm_item.html +28 -0
  153. django_spire/auth/group/templates/django_spire/auth/group/item/group_user_item.html +24 -0
  154. django_spire/auth/group/templates/django_spire/auth/group/item/permission_user_group_form_item.html +15 -0
  155. django_spire/auth/group/templates/django_spire/auth/group/navigation/accordion/permission_nav_accordion.html +19 -0
  156. django_spire/auth/group/templates/django_spire/auth/group/page/detail_page.html +22 -0
  157. django_spire/auth/group/templates/django_spire/auth/group/page/form_page.html +9 -0
  158. django_spire/auth/group/templates/django_spire/auth/group/page/group_user_form_page.html +9 -0
  159. django_spire/auth/group/templates/django_spire/auth/group/page/list_page.html +9 -0
  160. django_spire/auth/group/templates/django_spire/auth/group/tab/user_list_card_tab_section.html +5 -0
  161. django_spire/auth/group/templates/django_spire/auth/group/tab/user_list_card_tabs.html +11 -0
  162. django_spire/auth/group/templatetags/__init__.py +0 -0
  163. django_spire/auth/group/templatetags/permission_tags.py +11 -0
  164. django_spire/auth/group/urls/__init__.py +10 -0
  165. django_spire/auth/group/urls/form_urls.py +21 -0
  166. django_spire/auth/group/urls/json_urls.py +16 -0
  167. django_spire/auth/group/urls/page_urls.py +17 -0
  168. django_spire/auth/group/utils.py +79 -0
  169. django_spire/auth/group/views/__init__.py +0 -0
  170. django_spire/auth/group/views/form_views.py +175 -0
  171. django_spire/auth/group/views/json_views.py +83 -0
  172. django_spire/auth/group/views/page_views.py +60 -0
  173. django_spire/auth/mfa/__init__.py +0 -0
  174. django_spire/auth/mfa/admin.py +21 -0
  175. django_spire/auth/mfa/apps.py +15 -0
  176. django_spire/auth/mfa/forms.py +28 -0
  177. django_spire/auth/mfa/migrations/0001_initial.py +31 -0
  178. django_spire/auth/mfa/migrations/__init__.py +0 -0
  179. django_spire/auth/mfa/models.py +63 -0
  180. django_spire/auth/mfa/querysets.py +9 -0
  181. django_spire/auth/mfa/tests/__init__.py +0 -0
  182. django_spire/auth/mfa/urls/__init__.py +9 -0
  183. django_spire/auth/mfa/urls/page_urls.py +12 -0
  184. django_spire/auth/mfa/urls/redirect_urls.py +12 -0
  185. django_spire/auth/mfa/utils.py +17 -0
  186. django_spire/auth/mfa/views/__init__.py +0 -0
  187. django_spire/auth/mfa/views/page_views.py +35 -0
  188. django_spire/auth/mfa/views/redirect_views.py +20 -0
  189. django_spire/auth/migrations/__init__.py +0 -0
  190. django_spire/auth/permissions/__init__.py +0 -0
  191. django_spire/auth/permissions/consts.py +30 -0
  192. django_spire/auth/permissions/decorators.py +60 -0
  193. django_spire/auth/permissions/permissions.py +192 -0
  194. django_spire/auth/permissions/tools.py +82 -0
  195. django_spire/auth/seeding/__init__.py +0 -0
  196. django_spire/auth/seeding/seed.py +3 -0
  197. django_spire/auth/seeding/seeder.py +23 -0
  198. django_spire/auth/templates/django_spire/auth/form/login_form.html +25 -0
  199. django_spire/auth/templates/django_spire/auth/mfa/mfa_form.html +23 -0
  200. django_spire/auth/templates/django_spire/auth/page/auth_page.html +25 -0
  201. django_spire/auth/templates/django_spire/auth/page/login_page.html +12 -0
  202. django_spire/auth/templates/django_spire/auth/page/logout_page.html +22 -0
  203. django_spire/auth/templates/django_spire/auth/page/password_change_done_page.html +11 -0
  204. django_spire/auth/templates/django_spire/auth/page/password_change_page.html +50 -0
  205. django_spire/auth/templates/django_spire/auth/page/password_reset_complete_page.html +10 -0
  206. django_spire/auth/templates/django_spire/auth/page/password_reset_confirmation_page.html +30 -0
  207. django_spire/auth/templates/django_spire/auth/page/password_reset_done_page.html +10 -0
  208. django_spire/auth/templates/django_spire/auth/page/password_reset_key_done_page.html +11 -0
  209. django_spire/auth/templates/django_spire/auth/page/password_reset_key_form_page.html +32 -0
  210. django_spire/auth/templates/django_spire/auth/page/password_reset_page.html +24 -0
  211. django_spire/auth/templates/django_spire/auth/page/password_set_form_page.html +20 -0
  212. django_spire/auth/templates/django_spire/auth/password_reset_email.html +14 -0
  213. django_spire/auth/tests/__init__.py +0 -0
  214. django_spire/auth/tests/test_url_endpoints.py +29 -0
  215. django_spire/auth/urls/__init__.py +12 -0
  216. django_spire/auth/urls/admin_urls.py +52 -0
  217. django_spire/auth/urls/redirect_urls.py +16 -0
  218. django_spire/auth/user/__init__.py +0 -0
  219. django_spire/auth/user/admin.py +0 -0
  220. django_spire/auth/user/apps.py +22 -0
  221. django_spire/auth/user/factories.py +18 -0
  222. django_spire/auth/user/forms.py +86 -0
  223. django_spire/auth/user/migrations/0001_initial.py +32 -0
  224. django_spire/auth/user/migrations/__init__.py +0 -0
  225. django_spire/auth/user/models.py +35 -0
  226. django_spire/auth/user/services/__init__.py +0 -0
  227. django_spire/auth/user/services/services.py +20 -0
  228. django_spire/auth/user/templates/django_spire/auth/user/card/detail_card.html +38 -0
  229. django_spire/auth/user/templates/django_spire/auth/user/card/form_card.html +9 -0
  230. django_spire/auth/user/templates/django_spire/auth/user/card/group_form_card.html +9 -0
  231. django_spire/auth/user/templates/django_spire/auth/user/card/group_list_card.html +26 -0
  232. django_spire/auth/user/templates/django_spire/auth/user/card/list_card.html +26 -0
  233. django_spire/auth/user/templates/django_spire/auth/user/card/register_form_card.html +9 -0
  234. django_spire/auth/user/templates/django_spire/auth/user/element/is_active_badge.html +5 -0
  235. django_spire/auth/user/templates/django_spire/auth/user/form/form.html +28 -0
  236. django_spire/auth/user/templates/django_spire/auth/user/form/group_form.html +18 -0
  237. django_spire/auth/user/templates/django_spire/auth/user/form/register_form.html +52 -0
  238. django_spire/auth/user/templates/django_spire/auth/user/item/user_item.html +34 -0
  239. django_spire/auth/user/templates/django_spire/auth/user/item/user_master_perm_item.html +18 -0
  240. django_spire/auth/user/templates/django_spire/auth/user/item/user_profile_item.html +17 -0
  241. django_spire/auth/user/templates/django_spire/auth/user/page/detail_page.html +17 -0
  242. django_spire/auth/user/templates/django_spire/auth/user/page/form_page.html +9 -0
  243. django_spire/auth/user/templates/django_spire/auth/user/page/group_form_page.html +9 -0
  244. django_spire/auth/user/templates/django_spire/auth/user/page/list_page.html +9 -0
  245. django_spire/auth/user/templates/django_spire/auth/user/page/register_form_page.html +9 -0
  246. django_spire/auth/user/templates/django_spire/auth/user/tab/list_card_tab_section.html +5 -0
  247. django_spire/auth/user/templates/django_spire/auth/user/tab/list_card_tabs.html +11 -0
  248. django_spire/auth/user/tests/__init__.py +0 -0
  249. django_spire/auth/user/tests/factories.py +37 -0
  250. django_spire/auth/user/tests/test_factories.py +7 -0
  251. django_spire/auth/user/tests/test_unit.py +9 -0
  252. django_spire/auth/user/tools.py +11 -0
  253. django_spire/auth/user/urls/__init__.py +9 -0
  254. django_spire/auth/user/urls/form_urls.py +11 -0
  255. django_spire/auth/user/urls/page_urls.py +10 -0
  256. django_spire/auth/user/views/__init__.py +0 -0
  257. django_spire/auth/user/views/form_views.py +123 -0
  258. django_spire/auth/user/views/page_views.py +47 -0
  259. django_spire/auth/views/__init__.py +0 -0
  260. django_spire/auth/views/admin_views.py +70 -0
  261. django_spire/auth/views/redirect_views.py +27 -0
  262. django_spire/comment/__init__.py +0 -0
  263. django_spire/comment/admin.py +43 -0
  264. django_spire/comment/apps.py +16 -0
  265. django_spire/comment/factories.py +11 -0
  266. django_spire/comment/forms.py +20 -0
  267. django_spire/comment/migrations/0001_initial.py +40 -0
  268. django_spire/comment/migrations/__init__.py +0 -0
  269. django_spire/comment/mixins.py +37 -0
  270. django_spire/comment/models.py +78 -0
  271. django_spire/comment/querysets.py +20 -0
  272. django_spire/comment/templates/django_spire/comment/card/comment_list_card.html +30 -0
  273. django_spire/comment/templates/django_spire/comment/card/comment_textarea_card.html +7 -0
  274. django_spire/comment/templates/django_spire/comment/container/comment_container.html +21 -0
  275. django_spire/comment/templates/django_spire/comment/container/comment_reply_list_container.html +7 -0
  276. django_spire/comment/templates/django_spire/comment/element/comment_button_element.html +165 -0
  277. django_spire/comment/templates/django_spire/comment/element/comment_edit_link.html +5 -0
  278. django_spire/comment/templates/django_spire/comment/element/comment_reply_element.html +8 -0
  279. django_spire/comment/templates/django_spire/comment/element/comment_reply_link.html +5 -0
  280. django_spire/comment/templates/django_spire/comment/element/comment_textarea_element.html +120 -0
  281. django_spire/comment/templates/django_spire/comment/form/comment_form.html +18 -0
  282. django_spire/comment/templates/django_spire/comment/form/content/comment_form_content.html +13 -0
  283. django_spire/comment/templates/django_spire/comment/item/comment_item.html +42 -0
  284. django_spire/comment/templates/django_spire/comment/item/comment_item_ellipsis.html +22 -0
  285. django_spire/comment/templates/django_spire/comment/item/comment_reply_item.html +30 -0
  286. django_spire/comment/templates/django_spire/comment/modal/comment_edit_modal.html +17 -0
  287. django_spire/comment/templates/django_spire/comment/modal/comment_modal.html +17 -0
  288. django_spire/comment/templates/django_spire/comment/modal/comment_reply_modal.html +23 -0
  289. django_spire/comment/templates/django_spire/comment/widget/tagging_widget.html +130 -0
  290. django_spire/comment/templatetags/__init__.py +0 -0
  291. django_spire/comment/templatetags/comment_tags.py +29 -0
  292. django_spire/comment/tests/__init__.py +0 -0
  293. django_spire/comment/urls.py +20 -0
  294. django_spire/comment/utils.py +45 -0
  295. django_spire/comment/views.py +136 -0
  296. django_spire/comment/widgets.py +28 -0
  297. django_spire/conf.py +32 -0
  298. django_spire/consts.py +5 -0
  299. django_spire/contrib/__init__.py +5 -0
  300. django_spire/contrib/breadcrumb/__init__.py +5 -0
  301. django_spire/contrib/breadcrumb/apps.py +7 -0
  302. django_spire/contrib/breadcrumb/breadcrumbs.py +76 -0
  303. django_spire/contrib/breadcrumb/tests/__init__.py +0 -0
  304. django_spire/contrib/constructor/__init__.py +9 -0
  305. django_spire/contrib/constructor/constructor.py +86 -0
  306. django_spire/contrib/constructor/django_model_constructor.py +40 -0
  307. django_spire/contrib/constructor/exceptions.py +5 -0
  308. django_spire/contrib/form/__init__.py +0 -0
  309. django_spire/contrib/form/confirmation_forms.py +46 -0
  310. django_spire/contrib/form/templates/django_spire/contrib/form/button/form_submit_button.html +46 -0
  311. django_spire/contrib/form/utils.py +40 -0
  312. django_spire/contrib/gamification/__init__.py +0 -0
  313. django_spire/contrib/gamification/static/django_spire/css/contrib/gamification/gamification.css +0 -0
  314. django_spire/contrib/gamification/templates/django_spire/contrib/gamification/effect/kapow.html +0 -0
  315. django_spire/contrib/generic_views/__init__.py +7 -0
  316. django_spire/contrib/generic_views/modal_views.py +67 -0
  317. django_spire/contrib/generic_views/portal_views.py +297 -0
  318. django_spire/contrib/help/__init__.py +0 -0
  319. django_spire/contrib/help/apps.py +7 -0
  320. django_spire/contrib/help/templates/django_spire/contrib/help/help_button.html +8 -0
  321. django_spire/contrib/help/templates/django_spire/contrib/help/help_modal.html +41 -0
  322. django_spire/contrib/help/templatetags/__init__.py +0 -0
  323. django_spire/contrib/help/templatetags/help.py +32 -0
  324. django_spire/contrib/options/__init__.py +0 -0
  325. django_spire/contrib/options/mixins.py +44 -0
  326. django_spire/contrib/options/options.py +116 -0
  327. django_spire/contrib/options/tests/__init__.py +0 -0
  328. django_spire/contrib/options/tests/factories.py +60 -0
  329. django_spire/contrib/options/tests/test_unit.py +148 -0
  330. django_spire/contrib/ordering/__init__.py +0 -0
  331. django_spire/contrib/ordering/exceptions.py +5 -0
  332. django_spire/contrib/ordering/mixins.py +14 -0
  333. django_spire/contrib/ordering/querysets.py +5 -0
  334. django_spire/contrib/ordering/services/__init__.py +0 -0
  335. django_spire/contrib/ordering/services/processor_service.py +94 -0
  336. django_spire/contrib/ordering/services/service.py +16 -0
  337. django_spire/contrib/ordering/validators.py +46 -0
  338. django_spire/contrib/pagination/__init__.py +0 -0
  339. django_spire/contrib/pagination/pagination.py +12 -0
  340. django_spire/contrib/pagination/templatetags/__init__.py +0 -0
  341. django_spire/contrib/pagination/templatetags/pagination_tags.py +44 -0
  342. django_spire/contrib/performance/__init__.py +0 -0
  343. django_spire/contrib/performance/decorators.py +21 -0
  344. django_spire/contrib/progress/__init__.py +10 -0
  345. django_spire/contrib/progress/mixins.py +35 -0
  346. django_spire/contrib/progress/static/django_spire/css/contrib/progress/progress.css +0 -0
  347. django_spire/contrib/progress/static/django_spire/js/contrib/progress/progress.js +62 -0
  348. django_spire/contrib/progress/templates/django_spire/contrib/progress/card/card.html +81 -0
  349. django_spire/contrib/progress/templates/django_spire/contrib/progress/modal/content.html +90 -0
  350. django_spire/contrib/progress/tracker.py +39 -0
  351. django_spire/contrib/progress/views.py +50 -0
  352. django_spire/contrib/queryset/__init__.py +0 -0
  353. django_spire/contrib/queryset/enums.py +6 -0
  354. django_spire/contrib/queryset/filter_tools.py +36 -0
  355. django_spire/contrib/queryset/mixins.py +72 -0
  356. django_spire/contrib/seeding/__init__.py +3 -0
  357. django_spire/contrib/seeding/field/__init__.py +0 -0
  358. django_spire/contrib/seeding/field/base.py +43 -0
  359. django_spire/contrib/seeding/field/callable.py +12 -0
  360. django_spire/contrib/seeding/field/cleaners.py +35 -0
  361. django_spire/contrib/seeding/field/custom.py +65 -0
  362. django_spire/contrib/seeding/field/django/__init__.py +0 -0
  363. django_spire/contrib/seeding/field/django/seeder.py +139 -0
  364. django_spire/contrib/seeding/field/enums.py +9 -0
  365. django_spire/contrib/seeding/field/llm.py +43 -0
  366. django_spire/contrib/seeding/field/override.py +33 -0
  367. django_spire/contrib/seeding/field/static.py +11 -0
  368. django_spire/contrib/seeding/field/tests/__init__.py +0 -0
  369. django_spire/contrib/seeding/field/tests/test_base.py +24 -0
  370. django_spire/contrib/seeding/field/tests/test_callable.py +18 -0
  371. django_spire/contrib/seeding/field/tests/test_cleaners.py +61 -0
  372. django_spire/contrib/seeding/field/tests/test_static.py +18 -0
  373. django_spire/contrib/seeding/intelligence/__init__.py +0 -0
  374. django_spire/contrib/seeding/intelligence/bots/__init__.py +0 -0
  375. django_spire/contrib/seeding/intelligence/bots/field_seeding_bots.py +31 -0
  376. django_spire/contrib/seeding/intelligence/bots/seeder_generator_bot.py +33 -0
  377. django_spire/contrib/seeding/intelligence/intel.py +13 -0
  378. django_spire/contrib/seeding/intelligence/prompts/__init__.py +4 -0
  379. django_spire/contrib/seeding/intelligence/prompts/factory.py +22 -0
  380. django_spire/contrib/seeding/intelligence/prompts/foreign_key_selection_prompt.py +22 -0
  381. django_spire/contrib/seeding/intelligence/prompts/generate_django_model_seeder_prompts.py +72 -0
  382. django_spire/contrib/seeding/intelligence/prompts/generic_relationship_selection_prompt.py +44 -0
  383. django_spire/contrib/seeding/intelligence/prompts/hierarchical_selection_prompt.py +55 -0
  384. django_spire/contrib/seeding/intelligence/prompts/model_field_choices_prompt.py +17 -0
  385. django_spire/contrib/seeding/intelligence/prompts/negation_prompt.py +12 -0
  386. django_spire/contrib/seeding/intelligence/prompts/objective_prompt.py +17 -0
  387. django_spire/contrib/seeding/management/__init__.py +0 -0
  388. django_spire/contrib/seeding/management/commands/__init__.py +0 -0
  389. django_spire/contrib/seeding/management/commands/seeding.py +49 -0
  390. django_spire/contrib/seeding/management/example.py +17 -0
  391. django_spire/contrib/seeding/model/__init__.py +0 -0
  392. django_spire/contrib/seeding/model/base.py +119 -0
  393. django_spire/contrib/seeding/model/config.py +64 -0
  394. django_spire/contrib/seeding/model/django/__init__.py +0 -0
  395. django_spire/contrib/seeding/model/django/config.py +58 -0
  396. django_spire/contrib/seeding/model/django/seeder.py +62 -0
  397. django_spire/contrib/seeding/model/django/tests/__init__.py +0 -0
  398. django_spire/contrib/seeding/model/django/tests/test_seeder.py +53 -0
  399. django_spire/contrib/seeding/model/enums.py +8 -0
  400. django_spire/contrib/seeding/tests/__init__.py +0 -0
  401. django_spire/contrib/seeding/tests/test_seeding.py +25 -0
  402. django_spire/contrib/service/__init__.py +7 -0
  403. django_spire/contrib/service/django_model_service.py +83 -0
  404. django_spire/contrib/service/exceptions.py +5 -0
  405. django_spire/contrib/session/__init__.py +0 -0
  406. django_spire/contrib/session/apps.py +7 -0
  407. django_spire/contrib/session/controller.py +94 -0
  408. django_spire/contrib/session/templatetags/__init__.py +0 -0
  409. django_spire/contrib/session/templatetags/session_tags.py +15 -0
  410. django_spire/contrib/session/tests/__init__.py +0 -0
  411. django_spire/contrib/session/tests/test_session_controller.py +105 -0
  412. django_spire/contrib/utils.py +2 -0
  413. django_spire/core/__init__.py +0 -0
  414. django_spire/core/apps.py +10 -0
  415. django_spire/core/context_processors.py +54 -0
  416. django_spire/core/converters/__init__.py +7 -0
  417. django_spire/core/converters/tests/__init__.py +0 -0
  418. django_spire/core/converters/tests/test_to_enums.py +75 -0
  419. django_spire/core/converters/tests/test_to_pydantic.py +234 -0
  420. django_spire/core/converters/to_data.py +131 -0
  421. django_spire/core/converters/to_enums.py +9 -0
  422. django_spire/core/converters/to_pydantic.py +169 -0
  423. django_spire/core/decorators.py +25 -0
  424. django_spire/core/forms/__init__.py +0 -0
  425. django_spire/core/forms/widgets.py +21 -0
  426. django_spire/core/management/__init__.py +0 -0
  427. django_spire/core/management/commands/__init__.py +0 -0
  428. django_spire/core/management/commands/spire_remove_migration.py +62 -0
  429. django_spire/core/management/commands/spire_startapp.py +118 -0
  430. django_spire/core/management/commands/spire_startapp_pkg/__init__.py +44 -0
  431. django_spire/core/management/commands/spire_startapp_pkg/builder.py +91 -0
  432. django_spire/core/management/commands/spire_startapp_pkg/config.py +115 -0
  433. django_spire/core/management/commands/spire_startapp_pkg/filesystem.py +107 -0
  434. django_spire/core/management/commands/spire_startapp_pkg/generator.py +167 -0
  435. django_spire/core/management/commands/spire_startapp_pkg/maps.py +793 -0
  436. django_spire/core/management/commands/spire_startapp_pkg/permissions.py +147 -0
  437. django_spire/core/management/commands/spire_startapp_pkg/processor.py +171 -0
  438. django_spire/core/management/commands/spire_startapp_pkg/registry.py +73 -0
  439. django_spire/core/management/commands/spire_startapp_pkg/reporter.py +297 -0
  440. django_spire/core/management/commands/spire_startapp_pkg/resolver.py +71 -0
  441. django_spire/core/management/commands/spire_startapp_pkg/template/__init__.py +0 -0
  442. django_spire/core/management/commands/spire_startapp_pkg/template/app/__init__.py.template +0 -0
  443. django_spire/core/management/commands/spire_startapp_pkg/template/app/apps.py.template +15 -0
  444. django_spire/core/management/commands/spire_startapp_pkg/template/app/forms.py.template +18 -0
  445. django_spire/core/management/commands/spire_startapp_pkg/template/app/intelligence/__init__.py.template +0 -0
  446. django_spire/core/management/commands/spire_startapp_pkg/template/app/intelligence/bots.py.template +18 -0
  447. django_spire/core/management/commands/spire_startapp_pkg/template/app/intelligence/intel.py.template +7 -0
  448. django_spire/core/management/commands/spire_startapp_pkg/template/app/intelligence/prompts.py.template +32 -0
  449. django_spire/core/management/commands/spire_startapp_pkg/template/app/migrations/__init__.py.template +0 -0
  450. django_spire/core/management/commands/spire_startapp_pkg/template/app/models.py.template +52 -0
  451. django_spire/core/management/commands/spire_startapp_pkg/template/app/querysets.py.template +20 -0
  452. django_spire/core/management/commands/spire_startapp_pkg/template/app/seeding/__init__.py.template +0 -0
  453. django_spire/core/management/commands/spire_startapp_pkg/template/app/seeding/seed.py.template +6 -0
  454. django_spire/core/management/commands/spire_startapp_pkg/template/app/seeding/seeder.py.template +26 -0
  455. django_spire/core/management/commands/spire_startapp_pkg/template/app/services/__init__.py.template +0 -0
  456. django_spire/core/management/commands/spire_startapp_pkg/template/app/services/factory_service.py.template +12 -0
  457. django_spire/core/management/commands/spire_startapp_pkg/template/app/services/intelligence_service.py.template +12 -0
  458. django_spire/core/management/commands/spire_startapp_pkg/template/app/services/processor_service.py.template +12 -0
  459. django_spire/core/management/commands/spire_startapp_pkg/template/app/services/service.py.template +22 -0
  460. django_spire/core/management/commands/spire_startapp_pkg/template/app/services/transformation_service.py.template +12 -0
  461. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/__init__.py.template +0 -0
  462. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_intelligence/__init__.py.template +0 -0
  463. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_intelligence/test_bots.py.template +8 -0
  464. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_models.py.template +8 -0
  465. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_services/__init__.py.template +0 -0
  466. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_services/test_factory_service.py.template +8 -0
  467. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_services/test_intelligence_service.py.template +8 -0
  468. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_services/test_processor_service.py.template +8 -0
  469. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_services/test_service.py.template +8 -0
  470. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_services/test_transformation_service.py.template +8 -0
  471. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_urls/__init__.py.template +0 -0
  472. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_urls/test_form_urls.py.template +8 -0
  473. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_urls/test_page_urls.py.template +8 -0
  474. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_views/__init__.py.template +0 -0
  475. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_views/test_form_views.py.template +8 -0
  476. django_spire/core/management/commands/spire_startapp_pkg/template/app/tests/test_views/test_page_views.py.template +8 -0
  477. django_spire/core/management/commands/spire_startapp_pkg/template/app/urls/__init__.py.template +9 -0
  478. django_spire/core/management/commands/spire_startapp_pkg/template/app/urls/form_urls.py.template +15 -0
  479. django_spire/core/management/commands/spire_startapp_pkg/template/app/urls/page_urls.py.template +11 -0
  480. django_spire/core/management/commands/spire_startapp_pkg/template/app/views/__init__.py.template +0 -0
  481. django_spire/core/management/commands/spire_startapp_pkg/template/app/views/form_views.py.template +134 -0
  482. django_spire/core/management/commands/spire_startapp_pkg/template/app/views/page_views.py.template +44 -0
  483. django_spire/core/management/commands/spire_startapp_pkg/template/templates/card/${detail_card_template_name}.html.template +24 -0
  484. django_spire/core/management/commands/spire_startapp_pkg/template/templates/card/${form_card_template_name}.html.template +9 -0
  485. django_spire/core/management/commands/spire_startapp_pkg/template/templates/card/${list_card_template_name}.html.template +18 -0
  486. django_spire/core/management/commands/spire_startapp_pkg/template/templates/form/${form_template_name}.html.template +22 -0
  487. django_spire/core/management/commands/spire_startapp_pkg/template/templates/item/${item_template_name}.html.template +24 -0
  488. django_spire/core/management/commands/spire_startapp_pkg/template/templates/page/${detail_page_template_name}.html.template +13 -0
  489. django_spire/core/management/commands/spire_startapp_pkg/template/templates/page/${form_page_template_name}.html.template +13 -0
  490. django_spire/core/management/commands/spire_startapp_pkg/template/templates/page/${list_page_template_name}.html.template +9 -0
  491. django_spire/core/management/commands/spire_startapp_pkg/user_input.py +255 -0
  492. django_spire/core/management/commands/spire_startapp_pkg/validator.py +96 -0
  493. django_spire/core/maps.py +42 -0
  494. django_spire/core/middleware/__init__.py +6 -0
  495. django_spire/core/middleware/maintenance.py +30 -0
  496. django_spire/core/middleware.py +30 -0
  497. django_spire/core/migrations/0001_initial.py +26 -0
  498. django_spire/core/migrations/__init__.py +0 -0
  499. django_spire/core/models.py +9 -0
  500. django_spire/core/redirect/__init__.py +1 -0
  501. django_spire/core/redirect/generic_redirect.py +38 -0
  502. django_spire/core/redirect/safe_redirect.py +97 -0
  503. django_spire/core/shortcuts.py +98 -0
  504. django_spire/core/static/django_spire/css/app-background.css +383 -0
  505. django_spire/core/static/django_spire/css/app-border.css +130 -0
  506. django_spire/core/static/django_spire/css/app-button.css +287 -0
  507. django_spire/core/static/django_spire/css/app-default.css +17 -0
  508. django_spire/core/static/django_spire/css/app-import.css +13 -0
  509. django_spire/core/static/django_spire/css/app-layout.css +15 -0
  510. django_spire/core/static/django_spire/css/app-navigation.css +110 -0
  511. django_spire/core/static/django_spire/css/app-offcanvas.css +7 -0
  512. django_spire/core/static/django_spire/css/app-override.css +0 -0
  513. django_spire/core/static/django_spire/css/app-page.css +17 -0
  514. django_spire/core/static/django_spire/css/app-side-panel.css +57 -0
  515. django_spire/core/static/django_spire/css/app-template.css +25 -0
  516. django_spire/core/static/django_spire/css/app-text.css +340 -0
  517. django_spire/core/static/django_spire/css/app-theme.css +18 -0
  518. django_spire/core/static/django_spire/css/bootstrap-extension.css +831 -0
  519. django_spire/core/static/django_spire/css/bootstrap-override.css +300 -0
  520. django_spire/core/static/django_spire/css/bootstrap.css +7 -0
  521. django_spire/core/static/django_spire/css/flatpickr.min.css +13 -0
  522. django_spire/core/static/django_spire/css/themes/ayu/app-dark.css +76 -0
  523. django_spire/core/static/django_spire/css/themes/ayu/app-light.css +71 -0
  524. django_spire/core/static/django_spire/css/themes/catppuccin/app-dark.css +76 -0
  525. django_spire/core/static/django_spire/css/themes/catppuccin/app-light.css +71 -0
  526. django_spire/core/static/django_spire/css/themes/default/app-dark.css +76 -0
  527. django_spire/core/static/django_spire/css/themes/default/app-light.css +76 -0
  528. django_spire/core/static/django_spire/css/themes/gruvbox/app-dark.css +76 -0
  529. django_spire/core/static/django_spire/css/themes/gruvbox/app-light.css +71 -0
  530. django_spire/core/static/django_spire/css/themes/input.css +21 -0
  531. django_spire/core/static/django_spire/css/themes/material/app-dark.css +76 -0
  532. django_spire/core/static/django_spire/css/themes/material/app-light.css +71 -0
  533. django_spire/core/static/django_spire/css/themes/nord/app-dark.css +76 -0
  534. django_spire/core/static/django_spire/css/themes/nord/app-light.css +71 -0
  535. django_spire/core/static/django_spire/css/themes/one-dark/app-dark.css +76 -0
  536. django_spire/core/static/django_spire/css/themes/one-dark/app-light.css +71 -0
  537. django_spire/core/static/django_spire/css/themes/palenight/app-dark.css +76 -0
  538. django_spire/core/static/django_spire/css/themes/palenight/app-light.css +71 -0
  539. django_spire/core/static/django_spire/css/themes/rose-pine/app-dark.css +76 -0
  540. django_spire/core/static/django_spire/css/themes/rose-pine/app-light.css +71 -0
  541. django_spire/core/static/django_spire/css/themes/tokyo-night/app-dark.css +76 -0
  542. django_spire/core/static/django_spire/css/themes/tokyo-night/app-light.css +71 -0
  543. django_spire/core/static/django_spire/favicons/android-chrome-192x192.png +0 -0
  544. django_spire/core/static/django_spire/favicons/android-chrome-256x256.png +0 -0
  545. django_spire/core/static/django_spire/favicons/apple-touch-icon.png +0 -0
  546. django_spire/core/static/django_spire/favicons/favicon-16x16.png +0 -0
  547. django_spire/core/static/django_spire/favicons/favicon-32x32.png +0 -0
  548. django_spire/core/static/django_spire/favicons/mstile-150x150.png +0 -0
  549. django_spire/core/static/django_spire/font/Poppins-Black.ttf +0 -0
  550. django_spire/core/static/django_spire/font/Poppins-BlackItalic.ttf +0 -0
  551. django_spire/core/static/django_spire/font/Poppins-Bold.ttf +0 -0
  552. django_spire/core/static/django_spire/font/Poppins-BoldItalic.ttf +0 -0
  553. django_spire/core/static/django_spire/font/Poppins-ExtraBold.ttf +0 -0
  554. django_spire/core/static/django_spire/font/Poppins-ExtraBoldItalic.ttf +0 -0
  555. django_spire/core/static/django_spire/font/Poppins-ExtraLight.ttf +0 -0
  556. django_spire/core/static/django_spire/font/Poppins-ExtraLightItalic.ttf +0 -0
  557. django_spire/core/static/django_spire/font/Poppins-Italic.ttf +0 -0
  558. django_spire/core/static/django_spire/font/Poppins-Light.ttf +0 -0
  559. django_spire/core/static/django_spire/font/Poppins-LightItalic.ttf +0 -0
  560. django_spire/core/static/django_spire/font/Poppins-Medium.ttf +0 -0
  561. django_spire/core/static/django_spire/font/Poppins-MediumItalic.ttf +0 -0
  562. django_spire/core/static/django_spire/font/Poppins-Regular.ttf +0 -0
  563. django_spire/core/static/django_spire/font/Poppins-SemiBold.ttf +0 -0
  564. django_spire/core/static/django_spire/font/Poppins-SemiBoldItalic.ttf +0 -0
  565. django_spire/core/static/django_spire/font/Poppins-Thin.ttf +0 -0
  566. django_spire/core/static/django_spire/font/Poppins-ThinItalic.ttf +0 -0
  567. django_spire/core/static/django_spire/js/Chart.min.js +13 -0
  568. django_spire/core/static/django_spire/js/ajax.js +11 -0
  569. django_spire/core/static/django_spire/js/alpine-plugins.min.js +9 -0
  570. django_spire/core/static/django_spire/js/alpine.min.js +5 -0
  571. django_spire/core/static/django_spire/js/axios.min.js +3 -0
  572. django_spire/core/static/django_spire/js/bootstrap.bundle.min.js +7 -0
  573. django_spire/core/static/django_spire/js/cookie.js +18 -0
  574. django_spire/core/static/django_spire/js/dropdown.js +33 -0
  575. django_spire/core/static/django_spire/js/modal.js +16 -0
  576. django_spire/core/static/django_spire/js/session_controller.js +10 -0
  577. django_spire/core/static/django_spire/js/theme.js +262 -0
  578. django_spire/core/static/django_spire/js/ui.js +24 -0
  579. django_spire/core/table/__init__.py +0 -0
  580. django_spire/core/table/enums.py +18 -0
  581. django_spire/core/tag/__init__.py +0 -0
  582. django_spire/core/tag/intelligence/__init__.py +0 -0
  583. django_spire/core/tag/intelligence/tag_set_bot.py +42 -0
  584. django_spire/core/tag/mixins.py +23 -0
  585. django_spire/core/tag/models.py +37 -0
  586. django_spire/core/tag/querysets.py +9 -0
  587. django_spire/core/tag/service/__init__.py +0 -0
  588. django_spire/core/tag/service/tag_service.py +72 -0
  589. django_spire/core/tag/tests/__init__.py +0 -0
  590. django_spire/core/tag/tests/test_intelligence.py +28 -0
  591. django_spire/core/tag/tests/test_tags.py +102 -0
  592. django_spire/core/tag/tools.py +66 -0
  593. django_spire/core/templates/django_spire/403.html +1 -0
  594. django_spire/core/templates/django_spire/404.html +5 -0
  595. django_spire/core/templates/django_spire/500.html +5 -0
  596. django_spire/core/templates/django_spire/accordion/accordion.html +23 -0
  597. django_spire/core/templates/django_spire/accordion/view_glue_accordion.html +34 -0
  598. django_spire/core/templates/django_spire/badge/accent_badge.html +3 -0
  599. django_spire/core/templates/django_spire/badge/base_badge.html +14 -0
  600. django_spire/core/templates/django_spire/badge/danger_badge.html +3 -0
  601. django_spire/core/templates/django_spire/badge/primary_badge.html +3 -0
  602. django_spire/core/templates/django_spire/badge/primary_outlined_badge.html +3 -0
  603. django_spire/core/templates/django_spire/badge/secondary_badge.html +3 -0
  604. django_spire/core/templates/django_spire/badge/secondary_outlined_badge.html +3 -0
  605. django_spire/core/templates/django_spire/badge/success_badge.html +3 -0
  606. django_spire/core/templates/django_spire/badge/warning_badge.html +3 -0
  607. django_spire/core/templates/django_spire/base/base.html +96 -0
  608. django_spire/core/templates/django_spire/button/accent_button.html +3 -0
  609. django_spire/core/templates/django_spire/button/accent_dark_button.html +3 -0
  610. django_spire/core/templates/django_spire/button/accent_outlined_button.html +3 -0
  611. django_spire/core/templates/django_spire/button/base_button.html +16 -0
  612. django_spire/core/templates/django_spire/button/danger_button.html +3 -0
  613. django_spire/core/templates/django_spire/button/danger_dark_button.html +3 -0
  614. django_spire/core/templates/django_spire/button/danger_outlined_button.html +3 -0
  615. django_spire/core/templates/django_spire/button/primary_button.html +3 -0
  616. django_spire/core/templates/django_spire/button/primary_dark_button.html +3 -0
  617. django_spire/core/templates/django_spire/button/primary_dark_outlined_button.html +3 -0
  618. django_spire/core/templates/django_spire/button/primary_outlined_button.html +3 -0
  619. django_spire/core/templates/django_spire/button/secondary_button.html +3 -0
  620. django_spire/core/templates/django_spire/button/secondary_dark_button.html +3 -0
  621. django_spire/core/templates/django_spire/button/secondary_outlined_button.html +3 -0
  622. django_spire/core/templates/django_spire/button/success_button.html +3 -0
  623. django_spire/core/templates/django_spire/button/success_dark_button.html +3 -0
  624. django_spire/core/templates/django_spire/button/success_outlined_button.html +3 -0
  625. django_spire/core/templates/django_spire/button/warning_button.html +3 -0
  626. django_spire/core/templates/django_spire/button/warning_dark_button.html +3 -0
  627. django_spire/core/templates/django_spire/button/warning_outlined_button.html +3 -0
  628. django_spire/core/templates/django_spire/card/card.html +7 -0
  629. django_spire/core/templates/django_spire/card/delete_confirmation_form_card.html +28 -0
  630. django_spire/core/templates/django_spire/card/delete_form_card.html +9 -0
  631. django_spire/core/templates/django_spire/card/form_card.html +19 -0
  632. django_spire/core/templates/django_spire/card/infinite_scroll_card.html +7 -0
  633. django_spire/core/templates/django_spire/card/title_card.html +32 -0
  634. django_spire/core/templates/django_spire/container/container.html +27 -0
  635. django_spire/core/templates/django_spire/container/form_container.html +13 -0
  636. django_spire/core/templates/django_spire/container/infinite_scroll_container.html +64 -0
  637. django_spire/core/templates/django_spire/dropdown/dropdown.html +15 -0
  638. django_spire/core/templates/django_spire/dropdown/element/dropdown_link_element.html +32 -0
  639. django_spire/core/templates/django_spire/dropdown/element/ellipsis_dropdown_modal_link_element.html +12 -0
  640. django_spire/core/templates/django_spire/dropdown/ellipsis_dropdown.html +32 -0
  641. django_spire/core/templates/django_spire/dropdown/ellipsis_modal_dropdown.html +25 -0
  642. django_spire/core/templates/django_spire/dropdown/ellipsis_table_dropdown.html +26 -0
  643. django_spire/core/templates/django_spire/element/attribute_element.html +41 -0
  644. django_spire/core/templates/django_spire/element/breadcrumb_element.html +19 -0
  645. django_spire/core/templates/django_spire/element/divider_element.html +11 -0
  646. django_spire/core/templates/django_spire/element/grabber_element.html +7 -0
  647. django_spire/core/templates/django_spire/element/no_data_element.html +3 -0
  648. django_spire/core/templates/django_spire/element/page_loading_element.html +10 -0
  649. django_spire/core/templates/django_spire/element/pagination_element.html +47 -0
  650. django_spire/core/templates/django_spire/error/error.html +16 -0
  651. django_spire/core/templates/django_spire/filtering/form/base_session_filter_form.html +29 -0
  652. django_spire/core/templates/django_spire/filtering/form/filter_form.html +7 -0
  653. django_spire/core/templates/django_spire/filtering/form/search_form.html +7 -0
  654. django_spire/core/templates/django_spire/footer/footer.html +9 -0
  655. django_spire/core/templates/django_spire/form/delete_form.html +18 -0
  656. django_spire/core/templates/django_spire/forms/elements/dict_element.html +37 -0
  657. django_spire/core/templates/django_spire/forms/elements/list_element.html +18 -0
  658. django_spire/core/templates/django_spire/forms/elements/value_element.html +3 -0
  659. django_spire/core/templates/django_spire/forms/widgets/json_tree_widget.html +45 -0
  660. django_spire/core/templates/django_spire/infinite_scroll/base.html +348 -0
  661. django_spire/core/templates/django_spire/infinite_scroll/element/footer.html +11 -0
  662. django_spire/core/templates/django_spire/infinite_scroll/scroll.html +142 -0
  663. django_spire/core/templates/django_spire/item/element/item_ellipsis_spacer_element.html +1 -0
  664. django_spire/core/templates/django_spire/item/infinite_scroll_item.html +33 -0
  665. django_spire/core/templates/django_spire/item/item.html +29 -0
  666. django_spire/core/templates/django_spire/item/no_data_item.html +11 -0
  667. django_spire/core/templates/django_spire/lazy_tab/element/lazy_tab_section_element.html +19 -0
  668. django_spire/core/templates/django_spire/lazy_tab/element/lazy_tab_trigger_element.html +15 -0
  669. django_spire/core/templates/django_spire/lazy_tab/lazy_tab.html +157 -0
  670. django_spire/core/templates/django_spire/maintenance.html +21 -0
  671. django_spire/core/templates/django_spire/messages/element/messages_element.html +48 -0
  672. django_spire/core/templates/django_spire/messages/messages.html +28 -0
  673. django_spire/core/templates/django_spire/modal/center_modal.html +17 -0
  674. django_spire/core/templates/django_spire/modal/content/dispatch_modal_delete_confirmation_content.html +32 -0
  675. django_spire/core/templates/django_spire/modal/content/modal_title_content.html +26 -0
  676. django_spire/core/templates/django_spire/modal/dispatch_modal.html +8 -0
  677. django_spire/core/templates/django_spire/modal/element/model_close_element.html +1 -0
  678. django_spire/core/templates/django_spire/modal/modal.html +67 -0
  679. django_spire/core/templates/django_spire/modal/title_modal.html +22 -0
  680. django_spire/core/templates/django_spire/navigation/accordion/nav_accordion.html +42 -0
  681. django_spire/core/templates/django_spire/navigation/accordion/settings_nav_accordion.html +19 -0
  682. django_spire/core/templates/django_spire/navigation/elements/nav_link.html +4 -0
  683. django_spire/core/templates/django_spire/navigation/elements/nav_title_divider.html +8 -0
  684. django_spire/core/templates/django_spire/navigation/elements/search_bar_element.html +15 -0
  685. django_spire/core/templates/django_spire/navigation/mobile_navigation.html +33 -0
  686. django_spire/core/templates/django_spire/navigation/navigation_links.html +0 -0
  687. django_spire/core/templates/django_spire/navigation/side_navigation.html +64 -0
  688. django_spire/core/templates/django_spire/navigation/top_navigation.html +94 -0
  689. django_spire/core/templates/django_spire/note/info_note.html +3 -0
  690. django_spire/core/templates/django_spire/note/note.html +14 -0
  691. django_spire/core/templates/django_spire/page/center_card_page.html +19 -0
  692. django_spire/core/templates/django_spire/page/delete_confirmation_form_page.html +5 -0
  693. django_spire/core/templates/django_spire/page/delete_form_page.html +9 -0
  694. django_spire/core/templates/django_spire/page/form_full_page.html +15 -0
  695. django_spire/core/templates/django_spire/page/full_page.html +270 -0
  696. django_spire/core/templates/django_spire/page/infinite_scroll_list_page.html +7 -0
  697. django_spire/core/templates/django_spire/page/page.html +18 -0
  698. django_spire/core/templates/django_spire/speech/speech_recognition.html +24 -0
  699. django_spire/core/templates/django_spire/speech/speech_synthesis.html +30 -0
  700. django_spire/core/templates/django_spire/tab/element/tab_section_element.html +8 -0
  701. django_spire/core/templates/django_spire/tab/element/tab_trigger_element.html +14 -0
  702. django_spire/core/templates/django_spire/tab/tab.html +67 -0
  703. django_spire/core/templates/django_spire/table/base.html +221 -0
  704. django_spire/core/templates/django_spire/table/element/child_row.html +59 -0
  705. django_spire/core/templates/django_spire/table/element/expandable_row.html +45 -0
  706. django_spire/core/templates/django_spire/table/element/footer.html +9 -0
  707. django_spire/core/templates/django_spire/table/element/header.html +9 -0
  708. django_spire/core/templates/django_spire/table/element/loading_skeleton.html +13 -0
  709. django_spire/core/templates/django_spire/table/element/refreshing_skeleton.html +13 -0
  710. django_spire/core/templates/django_spire/table/element/row.html +102 -0
  711. django_spire/core/templates/django_spire/table/element/trigger.html +1 -0
  712. django_spire/core/templates/django_spire/table/item/no_data_item.html +11 -0
  713. django_spire/core/templates/django_spire/tag/element/tag.html +1 -0
  714. django_spire/core/templates/django_spire/wizard/wizard.html +66 -0
  715. django_spire/core/templates/django_spire/wizard/wizard_page.html +3 -0
  716. django_spire/core/templatetags/__init__.py +0 -0
  717. django_spire/core/templatetags/json.py +14 -0
  718. django_spire/core/templatetags/message.py +24 -0
  719. django_spire/core/templatetags/spire_core_tags.py +172 -0
  720. django_spire/core/templatetags/string_formating.py +23 -0
  721. django_spire/core/templatetags/variable_types.py +43 -0
  722. django_spire/core/tests/__init__.py +0 -0
  723. django_spire/core/tests/test_cases.py +22 -0
  724. django_spire/core/tests/test_templatetags.py +117 -0
  725. django_spire/core/tests/tests_redirect.py +215 -0
  726. django_spire/core/tests/tests_shortcuts.py +73 -0
  727. django_spire/core/urls.py +11 -0
  728. django_spire/core/utils.py +32 -0
  729. django_spire/exceptions.py +2 -0
  730. django_spire/file/__init__.py +0 -0
  731. django_spire/file/admin.py +33 -0
  732. django_spire/file/apps.py +29 -0
  733. django_spire/file/fields.py +46 -0
  734. django_spire/file/forms.py +22 -0
  735. django_spire/file/interfaces.py +209 -0
  736. django_spire/file/migrations/0001_initial.py +39 -0
  737. django_spire/file/migrations/__init__.py +0 -0
  738. django_spire/file/mixins.py +21 -0
  739. django_spire/file/models.py +48 -0
  740. django_spire/file/queryset.py +11 -0
  741. django_spire/file/templates/django_spire/file/card/demo_detail_card.html +9 -0
  742. django_spire/file/templates/django_spire/file/card/demo_file_list_card.html +20 -0
  743. django_spire/file/templates/django_spire/file/card/demo_filler_card.html +9 -0
  744. django_spire/file/templates/django_spire/file/card/demo_list_card.html +20 -0
  745. django_spire/file/templates/django_spire/file/item/demo_item.html +16 -0
  746. django_spire/file/templates/django_spire/file/item/file_item.html +22 -0
  747. django_spire/file/templates/django_spire/file/navigation/file_navigation.html +2 -0
  748. django_spire/file/templates/django_spire/file/page/demo_detail_page.html +19 -0
  749. django_spire/file/templates/django_spire/file/page/demo_list_page.html +9 -0
  750. django_spire/file/templates/django_spire/file/page/version_list_page.html +9 -0
  751. django_spire/file/templates/django_spire/file/widget/multiple_file_widget.html +1 -0
  752. django_spire/file/templates/django_spire/file/widget/single_file_widget.html +1 -0
  753. django_spire/file/tests/__init__.py +0 -0
  754. django_spire/file/tools.py +34 -0
  755. django_spire/file/urls.py +18 -0
  756. django_spire/file/utils.py +8 -0
  757. django_spire/file/views.py +33 -0
  758. django_spire/file/widgets.py +39 -0
  759. django_spire/help_desk/__init__.py +0 -0
  760. django_spire/help_desk/apps.py +24 -0
  761. django_spire/help_desk/auth/__init__.py +0 -0
  762. django_spire/help_desk/auth/controller.py +15 -0
  763. django_spire/help_desk/choices.py +19 -0
  764. django_spire/help_desk/enums.py +7 -0
  765. django_spire/help_desk/exceptions.py +5 -0
  766. django_spire/help_desk/forms.py +17 -0
  767. django_spire/help_desk/migrations/0001_initial.py +37 -0
  768. django_spire/help_desk/migrations/__init__.py +0 -0
  769. django_spire/help_desk/models.py +47 -0
  770. django_spire/help_desk/querysets.py +4 -0
  771. django_spire/help_desk/services/__init__.py +0 -0
  772. django_spire/help_desk/services/notification_service.py +169 -0
  773. django_spire/help_desk/services/service.py +25 -0
  774. django_spire/help_desk/templates/django_spire/help_desk/card/ticket_detail_card.html +34 -0
  775. django_spire/help_desk/templates/django_spire/help_desk/card/ticket_form_card.html +13 -0
  776. django_spire/help_desk/templates/django_spire/help_desk/card/ticket_list_card.html +24 -0
  777. django_spire/help_desk/templates/django_spire/help_desk/element/icon.html +3 -0
  778. django_spire/help_desk/templates/django_spire/help_desk/element/ticket_priority_badge.html +9 -0
  779. django_spire/help_desk/templates/django_spire/help_desk/element/ticket_purpose_badge.html +5 -0
  780. django_spire/help_desk/templates/django_spire/help_desk/element/ticket_status_badge.html +7 -0
  781. django_spire/help_desk/templates/django_spire/help_desk/form/ticket_form.html +31 -0
  782. django_spire/help_desk/templates/django_spire/help_desk/item/ticket_item.html +38 -0
  783. django_spire/help_desk/templates/django_spire/help_desk/page/ticket_detail_page.html +9 -0
  784. django_spire/help_desk/templates/django_spire/help_desk/page/ticket_form_page.html +9 -0
  785. django_spire/help_desk/templates/django_spire/help_desk/page/ticket_list_page.html +9 -0
  786. django_spire/help_desk/tests/__init__.py +0 -0
  787. django_spire/help_desk/tests/factories.py +25 -0
  788. django_spire/help_desk/tests/test_services/__init__.py +0 -0
  789. django_spire/help_desk/tests/test_services/test_notification_service.py +62 -0
  790. django_spire/help_desk/tests/test_urls/__init__.py +0 -0
  791. django_spire/help_desk/tests/test_urls/test_form_urls.py +21 -0
  792. django_spire/help_desk/tests/test_urls/test_page_urls.py +36 -0
  793. django_spire/help_desk/tests/test_views/__init__.py +0 -0
  794. django_spire/help_desk/tests/test_views/test_form_views.py +56 -0
  795. django_spire/help_desk/tests/test_views/test_page_views.py +46 -0
  796. django_spire/help_desk/urls/__init__.py +8 -0
  797. django_spire/help_desk/urls/form_urls.py +10 -0
  798. django_spire/help_desk/urls/page_urls.py +11 -0
  799. django_spire/help_desk/views/__init__.py +0 -0
  800. django_spire/help_desk/views/form_views.py +74 -0
  801. django_spire/help_desk/views/page_views.py +48 -0
  802. django_spire/history/__init__.py +0 -0
  803. django_spire/history/activity/__init__.py +0 -0
  804. django_spire/history/activity/admin.py +50 -0
  805. django_spire/history/activity/apps.py +14 -0
  806. django_spire/history/activity/migrations/0001_initial.py +53 -0
  807. django_spire/history/activity/migrations/__init__.py +0 -0
  808. django_spire/history/activity/mixins.py +46 -0
  809. django_spire/history/activity/models.py +86 -0
  810. django_spire/history/activity/querysets.py +6 -0
  811. django_spire/history/activity/tests.py +3 -0
  812. django_spire/history/activity/utils.py +25 -0
  813. django_spire/history/activity/views.py +3 -0
  814. django_spire/history/admin.py +25 -0
  815. django_spire/history/apps.py +16 -0
  816. django_spire/history/choices.py +9 -0
  817. django_spire/history/migrations/0001_initial.py +32 -0
  818. django_spire/history/migrations/__init__.py +0 -0
  819. django_spire/history/mixins.py +52 -0
  820. django_spire/history/models.py +38 -0
  821. django_spire/history/querysets.py +14 -0
  822. django_spire/history/static/django_spire/js/history.js +0 -0
  823. django_spire/history/templates/django_spire/activity/card/list_card.html +17 -0
  824. django_spire/history/templates/django_spire/activity/item/activity_item.html +15 -0
  825. django_spire/history/tests/__init__.py +0 -0
  826. django_spire/history/viewed/__init__.py +0 -0
  827. django_spire/history/viewed/admin.py +31 -0
  828. django_spire/history/viewed/apps.py +14 -0
  829. django_spire/history/viewed/migrations/0001_initial.py +34 -0
  830. django_spire/history/viewed/migrations/__init__.py +0 -0
  831. django_spire/history/viewed/mixins.py +28 -0
  832. django_spire/history/viewed/models.py +29 -0
  833. django_spire/knowledge/__init__.py +0 -0
  834. django_spire/knowledge/admin.py +8 -0
  835. django_spire/knowledge/apps.py +27 -0
  836. django_spire/knowledge/auth/__init__.py +0 -0
  837. django_spire/knowledge/auth/controller.py +27 -0
  838. django_spire/knowledge/collection/__init__.py +0 -0
  839. django_spire/knowledge/collection/admin.py +41 -0
  840. django_spire/knowledge/collection/forms.py +11 -0
  841. django_spire/knowledge/collection/models.py +86 -0
  842. django_spire/knowledge/collection/querysets.py +67 -0
  843. django_spire/knowledge/collection/seeding/__init__.py +0 -0
  844. django_spire/knowledge/collection/seeding/seed.py +8 -0
  845. django_spire/knowledge/collection/seeding/seeder.py +49 -0
  846. django_spire/knowledge/collection/services/__init__.py +0 -0
  847. django_spire/knowledge/collection/services/factory_service.py +42 -0
  848. django_spire/knowledge/collection/services/ordering_service.py +40 -0
  849. django_spire/knowledge/collection/services/processor_service.py +30 -0
  850. django_spire/knowledge/collection/services/service.py +55 -0
  851. django_spire/knowledge/collection/services/tag_service.py +54 -0
  852. django_spire/knowledge/collection/services/tool_services.py +37 -0
  853. django_spire/knowledge/collection/services/transformation_service.py +108 -0
  854. django_spire/knowledge/collection/tests/__init__.py +0 -0
  855. django_spire/knowledge/collection/tests/factories.py +15 -0
  856. django_spire/knowledge/collection/tests/test_services/__init__.py +0 -0
  857. django_spire/knowledge/collection/tests/test_services/test_transformation_service.py +71 -0
  858. django_spire/knowledge/collection/tests/test_urls/__init__.py +0 -0
  859. django_spire/knowledge/collection/tests/test_urls/test_form_urls.py +19 -0
  860. django_spire/knowledge/collection/tests/test_urls/test_json_urls.py +25 -0
  861. django_spire/knowledge/collection/tests/test_urls/test_page_urls.py +29 -0
  862. django_spire/knowledge/collection/urls/__init__.py +11 -0
  863. django_spire/knowledge/collection/urls/form_urls.py +12 -0
  864. django_spire/knowledge/collection/urls/json_urls.py +10 -0
  865. django_spire/knowledge/collection/urls/page_urls.py +11 -0
  866. django_spire/knowledge/collection/views/__init__.py +0 -0
  867. django_spire/knowledge/collection/views/form_views.py +94 -0
  868. django_spire/knowledge/collection/views/json_views.py +32 -0
  869. django_spire/knowledge/collection/views/page_views.py +57 -0
  870. django_spire/knowledge/entry/__init__.py +0 -0
  871. django_spire/knowledge/entry/admin.py +44 -0
  872. django_spire/knowledge/entry/forms.py +14 -0
  873. django_spire/knowledge/entry/models.py +75 -0
  874. django_spire/knowledge/entry/querysets.py +37 -0
  875. django_spire/knowledge/entry/seeding/__init__.py +0 -0
  876. django_spire/knowledge/entry/seeding/seed.py +3 -0
  877. django_spire/knowledge/entry/seeding/seeder.py +64 -0
  878. django_spire/knowledge/entry/services/__init__.py +0 -0
  879. django_spire/knowledge/entry/services/automation_service.py +51 -0
  880. django_spire/knowledge/entry/services/factory_service.py +45 -0
  881. django_spire/knowledge/entry/services/processor_service.py +18 -0
  882. django_spire/knowledge/entry/services/service.py +51 -0
  883. django_spire/knowledge/entry/services/tag_service.py +34 -0
  884. django_spire/knowledge/entry/services/tool_service.py +39 -0
  885. django_spire/knowledge/entry/services/transformation_services.py +80 -0
  886. django_spire/knowledge/entry/tests/__init__.py +0 -0
  887. django_spire/knowledge/entry/tests/factories.py +16 -0
  888. django_spire/knowledge/entry/tests/test_urls/__init__.py +0 -0
  889. django_spire/knowledge/entry/tests/test_urls/test_form_urls.py +54 -0
  890. django_spire/knowledge/entry/tests/test_urls/test_json_urls.py +30 -0
  891. django_spire/knowledge/entry/tests/test_urls/test_page_urls.py +30 -0
  892. django_spire/knowledge/entry/urls/__init__.py +12 -0
  893. django_spire/knowledge/entry/urls/form_urls.py +12 -0
  894. django_spire/knowledge/entry/urls/json_urls.py +11 -0
  895. django_spire/knowledge/entry/urls/page_urls.py +10 -0
  896. django_spire/knowledge/entry/urls/template_urls.py +10 -0
  897. django_spire/knowledge/entry/version/__init__.py +0 -0
  898. django_spire/knowledge/entry/version/admin.py +18 -0
  899. django_spire/knowledge/entry/version/block/__init__.py +0 -0
  900. django_spire/knowledge/entry/version/block/admin.py +15 -0
  901. django_spire/knowledge/entry/version/block/choices.py +7 -0
  902. django_spire/knowledge/entry/version/block/constants.py +1 -0
  903. django_spire/knowledge/entry/version/block/data/__init__.py +0 -0
  904. django_spire/knowledge/entry/version/block/data/data.py +34 -0
  905. django_spire/knowledge/entry/version/block/data/heading_data.py +15 -0
  906. django_spire/knowledge/entry/version/block/data/list/__init__.py +0 -0
  907. django_spire/knowledge/entry/version/block/data/list/choices.py +17 -0
  908. django_spire/knowledge/entry/version/block/data/list/data.py +101 -0
  909. django_spire/knowledge/entry/version/block/data/list/maps.py +14 -0
  910. django_spire/knowledge/entry/version/block/data/list/meta.py +15 -0
  911. django_spire/knowledge/entry/version/block/data/maps.py +21 -0
  912. django_spire/knowledge/entry/version/block/data/text_data.py +13 -0
  913. django_spire/knowledge/entry/version/block/models.py +62 -0
  914. django_spire/knowledge/entry/version/block/querysets.py +25 -0
  915. django_spire/knowledge/entry/version/block/seeding/__init__.py +0 -0
  916. django_spire/knowledge/entry/version/block/seeding/constants.py +315 -0
  917. django_spire/knowledge/entry/version/block/services/__init__.py +0 -0
  918. django_spire/knowledge/entry/version/block/services/factory_service.py +51 -0
  919. django_spire/knowledge/entry/version/block/services/service.py +15 -0
  920. django_spire/knowledge/entry/version/block/tests/__init__.py +0 -0
  921. django_spire/knowledge/entry/version/block/tests/factories.py +42 -0
  922. django_spire/knowledge/entry/version/choices.py +7 -0
  923. django_spire/knowledge/entry/version/consts.py +1 -0
  924. django_spire/knowledge/entry/version/converters/__init__.py +0 -0
  925. django_spire/knowledge/entry/version/converters/converter.py +19 -0
  926. django_spire/knowledge/entry/version/converters/docx_converter.py +66 -0
  927. django_spire/knowledge/entry/version/converters/markdown_converter.py +221 -0
  928. django_spire/knowledge/entry/version/intelligence/__init__.py +0 -0
  929. django_spire/knowledge/entry/version/intelligence/bots/__init__.py +0 -0
  930. django_spire/knowledge/entry/version/intelligence/bots/markdown_format_llm_bot.py +26 -0
  931. django_spire/knowledge/entry/version/maps.py +11 -0
  932. django_spire/knowledge/entry/version/models.py +45 -0
  933. django_spire/knowledge/entry/version/querysets.py +17 -0
  934. django_spire/knowledge/entry/version/seeding/__init__.py +0 -0
  935. django_spire/knowledge/entry/version/seeding/seeder.py +72 -0
  936. django_spire/knowledge/entry/version/services/__init__.py +0 -0
  937. django_spire/knowledge/entry/version/services/processor_service.py +64 -0
  938. django_spire/knowledge/entry/version/services/service.py +16 -0
  939. django_spire/knowledge/entry/version/services/tests/__init__.py +0 -0
  940. django_spire/knowledge/entry/version/services/tests/test_processor_service.py +0 -0
  941. django_spire/knowledge/entry/version/tests/__init__.py +0 -0
  942. django_spire/knowledge/entry/version/tests/factories.py +18 -0
  943. django_spire/knowledge/entry/version/tests/test_converters/__init__.py +0 -0
  944. django_spire/knowledge/entry/version/tests/test_converters/test_docx_converter.py +45 -0
  945. django_spire/knowledge/entry/version/tests/test_urls/__init__.py +0 -0
  946. django_spire/knowledge/entry/version/tests/test_urls/test_json_urls.py +34 -0
  947. django_spire/knowledge/entry/version/tests/test_urls/test_page_urls.py +30 -0
  948. django_spire/knowledge/entry/version/urls/__init__.py +9 -0
  949. django_spire/knowledge/entry/version/urls/json_urls.py +20 -0
  950. django_spire/knowledge/entry/version/urls/page_urls.py +10 -0
  951. django_spire/knowledge/entry/version/urls/redirect_urls.py +10 -0
  952. django_spire/knowledge/entry/version/views/__init__.py +0 -0
  953. django_spire/knowledge/entry/version/views/json_views.py +32 -0
  954. django_spire/knowledge/entry/version/views/page_views.py +46 -0
  955. django_spire/knowledge/entry/version/views/redirect_views.py +22 -0
  956. django_spire/knowledge/entry/views/__init__.py +0 -0
  957. django_spire/knowledge/entry/views/form_views.py +124 -0
  958. django_spire/knowledge/entry/views/json_views.py +55 -0
  959. django_spire/knowledge/entry/views/page_views.py +23 -0
  960. django_spire/knowledge/entry/views/template_views.py +33 -0
  961. django_spire/knowledge/exceptions.py +4 -0
  962. django_spire/knowledge/intelligence/__init__.py +0 -0
  963. django_spire/knowledge/intelligence/bots/__init__.py +0 -0
  964. django_spire/knowledge/intelligence/bots/knowledge_answer_bot.py +44 -0
  965. django_spire/knowledge/intelligence/bots/knowledge_entries_bot.py +45 -0
  966. django_spire/knowledge/intelligence/intel/__init__.py +0 -0
  967. django_spire/knowledge/intelligence/intel/answer_intel.py +6 -0
  968. django_spire/knowledge/intelligence/intel/entry_intel.py +26 -0
  969. django_spire/knowledge/intelligence/intel/message_intel.py +14 -0
  970. django_spire/knowledge/intelligence/router.py +26 -0
  971. django_spire/knowledge/intelligence/workflows/__init__.py +0 -0
  972. django_spire/knowledge/intelligence/workflows/knowledge_workflow.py +84 -0
  973. django_spire/knowledge/migrations/0001_initial.py +95 -0
  974. django_spire/knowledge/migrations/0002_alter_entryversionblock_type.py +18 -0
  975. django_spire/knowledge/migrations/0003_alter_collection_order_alter_entry_order_and_more.py +28 -0
  976. django_spire/knowledge/migrations/0004_alter_collection_options_collectiongroup.py +27 -0
  977. django_spire/knowledge/migrations/0005_entryversionblock__tunes_data_and_more.py +23 -0
  978. django_spire/knowledge/migrations/0006_alter_entryversionblock_type.py +18 -0
  979. django_spire/knowledge/migrations/0007_alter_collection_options.py +17 -0
  980. django_spire/knowledge/migrations/0008_collection_tags_entry_tags.py +24 -0
  981. django_spire/knowledge/migrations/__init__.py +0 -0
  982. django_spire/knowledge/models.py +16 -0
  983. django_spire/knowledge/seeding/__init__.py +0 -0
  984. django_spire/knowledge/seeding/seed.py +3 -0
  985. django_spire/knowledge/static/django_spire/knowledge/collection/js/managers.js +148 -0
  986. django_spire/knowledge/static/django_spire/knowledge/collection/js/x_component.js +26 -0
  987. django_spire/knowledge/static/django_spire/knowledge/css/editor.css +93 -0
  988. django_spire/knowledge/static/django_spire/knowledge/css/navigation_items.css +9 -0
  989. django_spire/knowledge/static/django_spire/knowledge/entry/version/js/editor.js +105 -0
  990. django_spire/knowledge/static/django_spire/knowledge/entry/version/js/managers.js +98 -0
  991. django_spire/knowledge/static/django_spire/knowledge/entry/version/js/null_paragraph.js +15 -0
  992. django_spire/knowledge/templates/django_spire/knowledge/collection/card/form_card.html +5 -0
  993. django_spire/knowledge/templates/django_spire/knowledge/collection/card/top_level_list_card.html +20 -0
  994. django_spire/knowledge/templates/django_spire/knowledge/collection/component/x_collection_navigation.html +49 -0
  995. django_spire/knowledge/templates/django_spire/knowledge/collection/container/detail_container.html +13 -0
  996. django_spire/knowledge/templates/django_spire/knowledge/collection/element/ellipsis_dropdown.html +22 -0
  997. django_spire/knowledge/templates/django_spire/knowledge/collection/form/form.html +49 -0
  998. django_spire/knowledge/templates/django_spire/knowledge/collection/item/collection_item.html +19 -0
  999. django_spire/knowledge/templates/django_spire/knowledge/collection/page/display_page.html +67 -0
  1000. django_spire/knowledge/templates/django_spire/knowledge/collection/page/form_page.html +9 -0
  1001. django_spire/knowledge/templates/django_spire/knowledge/container/container.html +33 -0
  1002. django_spire/knowledge/templates/django_spire/knowledge/entry/badge/entry_status_badge.html +11 -0
  1003. django_spire/knowledge/templates/django_spire/knowledge/entry/card/form_card.html +5 -0
  1004. django_spire/knowledge/templates/django_spire/knowledge/entry/card/list_card.html +52 -0
  1005. django_spire/knowledge/templates/django_spire/knowledge/entry/container/import_form_container.html +9 -0
  1006. django_spire/knowledge/templates/django_spire/knowledge/entry/file/card/list_card.html +35 -0
  1007. django_spire/knowledge/templates/django_spire/knowledge/entry/file/item/list_item.html +21 -0
  1008. django_spire/knowledge/templates/django_spire/knowledge/entry/file/page/list_page.html +9 -0
  1009. django_spire/knowledge/templates/django_spire/knowledge/entry/form/form.html +19 -0
  1010. django_spire/knowledge/templates/django_spire/knowledge/entry/form/import_form.html +54 -0
  1011. django_spire/knowledge/templates/django_spire/knowledge/entry/item/list_item.html +41 -0
  1012. django_spire/knowledge/templates/django_spire/knowledge/entry/modal/publish_confirm_modal.html +21 -0
  1013. django_spire/knowledge/templates/django_spire/knowledge/entry/page/form_page.html +9 -0
  1014. django_spire/knowledge/templates/django_spire/knowledge/entry/page/import_form_page.html +9 -0
  1015. django_spire/knowledge/templates/django_spire/knowledge/entry/version/container/editor_container.html +80 -0
  1016. django_spire/knowledge/templates/django_spire/knowledge/entry/version/page/editor_page.html +76 -0
  1017. django_spire/knowledge/templates/django_spire/knowledge/message/knowledge_message_intel.html +32 -0
  1018. django_spire/knowledge/templates/django_spire/knowledge/page/full_page.html +37 -0
  1019. django_spire/knowledge/templates/django_spire/knowledge/page/home_page.html +11 -0
  1020. django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/element/collection_sub_navigation_ellipsis_dropdown.html +15 -0
  1021. django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/element/entry_sub_navigation_ellipsis_dropdown.html +12 -0
  1022. django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/item/collection_sub_navigation_item.html +29 -0
  1023. django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/item/entry_sub_navigation_item.html +21 -0
  1024. django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/widget/collection_entry_sub_navigation_widget.html +168 -0
  1025. django_spire/knowledge/templatetags/__init__.py +0 -0
  1026. django_spire/knowledge/templatetags/spire_knowledge_tags.py +28 -0
  1027. django_spire/knowledge/urls/__init__.py +10 -0
  1028. django_spire/knowledge/urls/page_urls.py +10 -0
  1029. django_spire/knowledge/views/__init__.py +0 -0
  1030. django_spire/knowledge/views/page_views.py +24 -0
  1031. django_spire/notification/__init__.py +0 -0
  1032. django_spire/notification/admin.py +32 -0
  1033. django_spire/notification/app/__init__.py +0 -0
  1034. django_spire/notification/app/admin.py +10 -0
  1035. django_spire/notification/app/apps.py +14 -0
  1036. django_spire/notification/app/context_data.py +36 -0
  1037. django_spire/notification/app/exceptions.py +5 -0
  1038. django_spire/notification/app/migrations/0001_initial.py +34 -0
  1039. django_spire/notification/app/migrations/__init__.py +0 -0
  1040. django_spire/notification/app/models.py +63 -0
  1041. django_spire/notification/app/processor.py +74 -0
  1042. django_spire/notification/app/querysets.py +43 -0
  1043. django_spire/notification/app/templates/django_spire/notification/app/card/list_card.html +11 -0
  1044. django_spire/notification/app/templates/django_spire/notification/app/dropdown/notification_dropdown.html +48 -0
  1045. django_spire/notification/app/templates/django_spire/notification/app/dropdown/notification_dropdown_content.html +33 -0
  1046. django_spire/notification/app/templates/django_spire/notification/app/element/notification_bell.html +8 -0
  1047. django_spire/notification/app/templates/django_spire/notification/app/item/notification_item.html +25 -0
  1048. django_spire/notification/app/templates/django_spire/notification/app/page/list_page.html +5 -0
  1049. django_spire/notification/app/tests.py +3 -0
  1050. django_spire/notification/app/urls/__init__.py +10 -0
  1051. django_spire/notification/app/urls/json_urls.py +16 -0
  1052. django_spire/notification/app/urls/page_urls.py +13 -0
  1053. django_spire/notification/app/urls/template_urls.py +12 -0
  1054. django_spire/notification/app/views/__init__.py +0 -0
  1055. django_spire/notification/app/views/json_views.py +52 -0
  1056. django_spire/notification/app/views/page_views.py +32 -0
  1057. django_spire/notification/app/views/template_views.py +39 -0
  1058. django_spire/notification/apps.py +22 -0
  1059. django_spire/notification/automations.py +11 -0
  1060. django_spire/notification/choices.py +24 -0
  1061. django_spire/notification/email/__init__.py +0 -0
  1062. django_spire/notification/email/admin.py +10 -0
  1063. django_spire/notification/email/apps.py +14 -0
  1064. django_spire/notification/email/exceptions.py +5 -0
  1065. django_spire/notification/email/helper.py +72 -0
  1066. django_spire/notification/email/migrations/0001_initial.py +29 -0
  1067. django_spire/notification/email/migrations/0002_emailnotification_bcc_emailnotification_cc_and_more.py +33 -0
  1068. django_spire/notification/email/migrations/0003_emailnotification_attachments.py +19 -0
  1069. django_spire/notification/email/migrations/__init__.py +0 -0
  1070. django_spire/notification/email/models.py +42 -0
  1071. django_spire/notification/email/processor.py +86 -0
  1072. django_spire/notification/email/querysets.py +30 -0
  1073. django_spire/notification/exceptions.py +5 -0
  1074. django_spire/notification/managers.py +47 -0
  1075. django_spire/notification/maps.py +12 -0
  1076. django_spire/notification/migrations/0001_initial.py +45 -0
  1077. django_spire/notification/migrations/0002_pushnotification.py +28 -0
  1078. django_spire/notification/migrations/0003_delete_pushnotification.py +16 -0
  1079. django_spire/notification/migrations/__init__.py +0 -0
  1080. django_spire/notification/mixins.py +11 -0
  1081. django_spire/notification/models.py +66 -0
  1082. django_spire/notification/processors/__init__.py +1 -0
  1083. django_spire/notification/processors/notification.py +60 -0
  1084. django_spire/notification/processors/processor.py +29 -0
  1085. django_spire/notification/push/__init__.py +0 -0
  1086. django_spire/notification/push/admin.py +3 -0
  1087. django_spire/notification/push/apps.py +14 -0
  1088. django_spire/notification/push/migrations/0001_initial.py +29 -0
  1089. django_spire/notification/push/migrations/__init__.py +0 -0
  1090. django_spire/notification/push/models.py +11 -0
  1091. django_spire/notification/querysets.py +117 -0
  1092. django_spire/notification/sms/__init__.py +0 -0
  1093. django_spire/notification/sms/admin.py +36 -0
  1094. django_spire/notification/sms/apps.py +19 -0
  1095. django_spire/notification/sms/automations.py +15 -0
  1096. django_spire/notification/sms/choices.py +6 -0
  1097. django_spire/notification/sms/consts.py +3 -0
  1098. django_spire/notification/sms/exceptions.py +17 -0
  1099. django_spire/notification/sms/helper.py +112 -0
  1100. django_spire/notification/sms/migrations/0001_initial.py +29 -0
  1101. django_spire/notification/sms/migrations/0002_smstemporarymedia_smsnotification_media_url_and_more.py +40 -0
  1102. django_spire/notification/sms/migrations/__init__.py +0 -0
  1103. django_spire/notification/sms/models.py +75 -0
  1104. django_spire/notification/sms/processor.py +73 -0
  1105. django_spire/notification/sms/querysets.py +11 -0
  1106. django_spire/notification/sms/tests/__init__.py +0 -0
  1107. django_spire/notification/sms/tests/test_tools.py +55 -0
  1108. django_spire/notification/sms/tools.py +39 -0
  1109. django_spire/notification/sms/urls/__init__.py +8 -0
  1110. django_spire/notification/sms/urls/media_urls.py +12 -0
  1111. django_spire/notification/sms/views/__init__.py +0 -0
  1112. django_spire/notification/sms/views/media_views.py +35 -0
  1113. django_spire/notification/urls.py +9 -0
  1114. django_spire/notification/utils.py +7 -0
  1115. django_spire/profiling/__init__.py +13 -0
  1116. django_spire/profiling/middleware/__init__.py +6 -0
  1117. django_spire/profiling/middleware/profiling.py +196 -0
  1118. django_spire/profiling/panel.py +345 -0
  1119. django_spire/profiling/templates/panel.html +166 -0
  1120. django_spire/settings.py +25 -0
  1121. django_spire/testing/__init__.py +0 -0
  1122. django_spire/testing/playwright/__init__.py +64 -0
  1123. django_spire/testing/playwright/components/__init__.py +45 -0
  1124. django_spire/testing/playwright/components/accordion.py +55 -0
  1125. django_spire/testing/playwright/components/attribute_element.py +73 -0
  1126. django_spire/testing/playwright/components/base_session_filter_form.py +57 -0
  1127. django_spire/testing/playwright/components/breadcrumb_element.py +56 -0
  1128. django_spire/testing/playwright/components/card.py +102 -0
  1129. django_spire/testing/playwright/components/dropdown.py +87 -0
  1130. django_spire/testing/playwright/components/infinite_scroll.py +158 -0
  1131. django_spire/testing/playwright/components/lazy_tab.py +92 -0
  1132. django_spire/testing/playwright/components/modal.py +101 -0
  1133. django_spire/testing/playwright/components/navigation.py +119 -0
  1134. django_spire/testing/playwright/components/notification_bell.py +59 -0
  1135. django_spire/testing/playwright/components/theme_selector.py +46 -0
  1136. django_spire/testing/playwright/components/toast.py +72 -0
  1137. django_spire/testing/playwright/fixtures.py +54 -0
  1138. django_spire/testing/playwright/pages/__init__.py +6 -0
  1139. django_spire/testing/playwright/pages/base.py +24 -0
  1140. django_spire/theme/__init__.py +0 -0
  1141. django_spire/theme/apps.py +19 -0
  1142. django_spire/theme/enums.py +21 -0
  1143. django_spire/theme/models.py +141 -0
  1144. django_spire/theme/templates/django_spire/theme/card/badges_preview_card.html +29 -0
  1145. django_spire/theme/templates/django_spire/theme/card/base_preview_card.html +24 -0
  1146. django_spire/theme/templates/django_spire/theme/card/borders_preview_card.html +42 -0
  1147. django_spire/theme/templates/django_spire/theme/card/buttons_preview_card.html +42 -0
  1148. django_spire/theme/templates/django_spire/theme/card/colors_preview_card.html +40 -0
  1149. django_spire/theme/templates/django_spire/theme/card/django_glue_preview_card.html +42 -0
  1150. django_spire/theme/templates/django_spire/theme/card/example_preview_card.html +34 -0
  1151. django_spire/theme/templates/django_spire/theme/card/preview_card.html +35 -0
  1152. django_spire/theme/templates/django_spire/theme/card/typography_preview_card.html +30 -0
  1153. django_spire/theme/templates/django_spire/theme/element/theme_selector.html +33 -0
  1154. django_spire/theme/templates/django_spire/theme/element/theme_toggle_element.html +8 -0
  1155. django_spire/theme/templates/django_spire/theme/example/card/example_title_card.html +25 -0
  1156. django_spire/theme/templates/django_spire/theme/example/container/example_container.html +17 -0
  1157. django_spire/theme/templates/django_spire/theme/example/form/example_form.html +97 -0
  1158. django_spire/theme/templates/django_spire/theme/example/form/example_form_card.html +5 -0
  1159. django_spire/theme/templates/django_spire/theme/example/item/example_item.html +25 -0
  1160. django_spire/theme/templates/django_spire/theme/example/page/example_page.html +12 -0
  1161. django_spire/theme/templates/django_spire/theme/example/tab/element/example_tab_section_element.html +10 -0
  1162. django_spire/theme/templates/django_spire/theme/example/tab/example_tab.html +13 -0
  1163. django_spire/theme/templates/django_spire/theme/page/badges_page.html +10 -0
  1164. django_spire/theme/templates/django_spire/theme/page/borders_page.html +9 -0
  1165. django_spire/theme/templates/django_spire/theme/page/buttons_page.html +9 -0
  1166. django_spire/theme/templates/django_spire/theme/page/colors_page.html +9 -0
  1167. django_spire/theme/templates/django_spire/theme/page/dashboard_page.html +85 -0
  1168. django_spire/theme/templates/django_spire/theme/page/django_glue_page.html +10 -0
  1169. django_spire/theme/templates/django_spire/theme/page/theme_page.html +24 -0
  1170. django_spire/theme/templates/django_spire/theme/page/typography_page.html +9 -0
  1171. django_spire/theme/templates/django_spire/theme/section/badge_section.html +57 -0
  1172. django_spire/theme/templates/django_spire/theme/section/badge_section_card.html +5 -0
  1173. django_spire/theme/templates/django_spire/theme/section/border_section.html +52 -0
  1174. django_spire/theme/templates/django_spire/theme/section/border_section_card.html +5 -0
  1175. django_spire/theme/templates/django_spire/theme/section/button_section.html +58 -0
  1176. django_spire/theme/templates/django_spire/theme/section/button_section_card.html +5 -0
  1177. django_spire/theme/templates/django_spire/theme/section/color_section.html +342 -0
  1178. django_spire/theme/templates/django_spire/theme/section/color_section_card.html +5 -0
  1179. django_spire/theme/templates/django_spire/theme/section/typography_section.html +149 -0
  1180. django_spire/theme/templates/django_spire/theme/section/typography_section_card.html +5 -0
  1181. django_spire/theme/tests/__init__.py +0 -0
  1182. django_spire/theme/tests/test_context_processor.py +84 -0
  1183. django_spire/theme/tests/test_enums.py +29 -0
  1184. django_spire/theme/tests/test_filesystem.py +181 -0
  1185. django_spire/theme/tests/test_integration.py +48 -0
  1186. django_spire/theme/tests/test_model.py +173 -0
  1187. django_spire/theme/tests/test_views/__init__.py +0 -0
  1188. django_spire/theme/tests/test_views/test_json_views.py +120 -0
  1189. django_spire/theme/urls/__init__.py +9 -0
  1190. django_spire/theme/urls/json_urls.py +10 -0
  1191. django_spire/theme/urls/page_urls.py +16 -0
  1192. django_spire/theme/utils.py +14 -0
  1193. django_spire/theme/views/__init__.py +0 -0
  1194. django_spire/theme/views/json_views.py +73 -0
  1195. django_spire/theme/views/page_views.py +132 -0
  1196. django_spire/urls.py +21 -0
  1197. django_spire/utils.py +31 -0
  1198. django_spire-0.23.4.dist-info/METADATA +116 -0
  1199. django_spire-0.23.4.dist-info/RECORD +1202 -0
  1200. django_spire-0.23.4.dist-info/WHEEL +5 -0
  1201. django_spire-0.23.4.dist-info/licenses/LICENSE.md +22 -0
  1202. django_spire-0.23.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,41 @@
1
+ {% extends 'django_spire/item/item.html' %}
2
+
3
+ {% block item_title %}
4
+ <div class="row m-0">
5
+ {% include 'django_spire/element/grabber_element.html' with grabber_class='col-auto align-self-center' %}
6
+ <div class="col">
7
+ {% url 'django_spire:knowledge:entry:version:page:editor' pk=entry.current_version_id as entry_detail_url %}
8
+ {% include 'django_spire/element/attribute_element.html' with attribute_value=entry.name attribute_href=entry_detail_url %}
9
+ </div>
10
+ </div>
11
+ {% endblock %}
12
+
13
+ {% block item_row_content %}
14
+ <div class="col">
15
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Author' attribute_value=entry.current_version.author.get_full_name %}
16
+ </div>
17
+ {% if entry.current_version.published_datetime %}
18
+ <div class="col">
19
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Published' attribute_value=entry.current_version.published_datetime %}
20
+ </div>
21
+ {% endif %}
22
+ <div class="col">
23
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Last Edit' attribute_value=entry.current_version.last_edit_datetime %}
24
+ </div>
25
+ <div class="col-auto">
26
+ {% include 'django_spire/knowledge/entry/badge/entry_status_badge.html' with status=entry.current_version.status %}
27
+ </div>
28
+ {% endblock %}
29
+
30
+ {% block item_button %}
31
+ {% if AuthController.knowledge.can_view %}
32
+ {% url 'django_spire:knowledge:entry:version:page:editor' pk=entry.current_version_id as entry_detail_url %}
33
+ {% endif %}
34
+ {% if AuthController.knowledge.can_change %}
35
+ {% url 'django_spire:knowledge:entry:form:update' pk=entry.pk collection_pk=collection.pk as entry_edit_url %}
36
+ {% endif %}
37
+ {% if AuthController.knowledge.can_delete %}
38
+ {% url 'django_spire:knowledge:entry:page:delete' pk=entry.pk as entry_delete_url %}
39
+ {% endif %}
40
+ {% include 'django_spire/dropdown/ellipsis_dropdown.html' with view_url=entry_detail_url edit_url=entry_edit_url delete_url=entry_delete_url %}
41
+ {% endblock %}
@@ -0,0 +1,21 @@
1
+ {% extends 'django_spire/modal/center_modal.html' %}
2
+
3
+ {% block modal_trigger %}
4
+ {% include 'django_spire/button/primary_button.html' with button_text='Publish' button_class='btn-md' %}
5
+ {% endblock %}
6
+
7
+ {% block modal_content %}
8
+ <form
9
+ class="row text-center"
10
+ method="post"
11
+ action="{% url 'django_spire:knowledge:entry:version:redirect:publish' pk=entry.current_version_id %}"
12
+ >
13
+ {% csrf_token %}
14
+ <div class="col-12">
15
+ Are you sure you want to publish {{ entry }}?
16
+ </div>
17
+ <div class="col-12 mt-2">
18
+ {% include 'django_spire/contrib/form/button/form_submit_button.html' with button_text='Publish' %}
19
+ </div>
20
+ </form>
21
+ {% endblock %}
@@ -0,0 +1,9 @@
1
+ {% extends 'django_spire/knowledge/navigation/page/../../page/full_page.html' %}
2
+
3
+ {% block knowledge_full_page_content %}
4
+ <div class="row">
5
+ <div class="col-12">
6
+ {% include 'django_spire/knowledge/entry/card/form_card.html' %}
7
+ </div>
8
+ </div>
9
+ {% endblock %}
@@ -0,0 +1,9 @@
1
+ {% extends 'django_spire/knowledge/navigation/page/../../page/full_page.html' %}
2
+
3
+ {% block knowledge_full_page_content %}
4
+ <div class="row">
5
+ <div class="col-12">
6
+ {% include 'django_spire/knowledge/entry/container/import_form_container.html' %}
7
+ </div>
8
+ </div>
9
+ {% endblock %}
@@ -0,0 +1,80 @@
1
+ {% extends 'django_spire/knowledge/container/container.html' %}
2
+
3
+ {% block container_title %}
4
+ {{ entry.name }}
5
+ {% endblock %}
6
+
7
+ {% block container_subtitle %}
8
+ <div class="row">
9
+ <div class="col text-end">
10
+ {% if not entry.current_version.is_published and AuthController.knowledge.can_change %}
11
+ {% include 'django_spire/knowledge/entry/modal/publish_confirm_modal.html' %}
12
+ {% else %}
13
+ {% include 'django_spire/knowledge/entry/badge/entry_status_badge.html' with status=entry.current_version.status %}
14
+ {% endif %}
15
+ </div>
16
+ {% if AuthController.knowledge.can_change %}
17
+ <div class="col text-start"
18
+ x-data="{
19
+ editor_is_readonly: !should_init_editor_in_edit_mode(),
20
+ toggle_editor_readonly() {
21
+ KNOWLEDGE_ENTRY_VERSION_EDITOR?.readOnly?.toggle()
22
+ this.editor_is_readonly = KNOWLEDGE_ENTRY_VERSION_EDITOR?.readOnly?.isEnabled
23
+
24
+ if (this.editor_is_readonly) {
25
+ django_glue_fetch(
26
+ '{% url "django_spire:knowledge:entry:version:json:update_entry_from_version" pk=entry.id %}',
27
+ )
28
+ }
29
+
30
+ let view_mode = this.editor_is_readonly ? 'readonly' : 'edit'
31
+
32
+ let url = new URL(window.location)
33
+ url.searchParams.set('view_mode', view_mode)
34
+ history.pushState(null, '', url);
35
+ }
36
+ }"
37
+ >
38
+ <div
39
+ @click="toggle_editor_readonly();"
40
+ class="btn btn-app-primary btn-sm shadow-sm"
41
+ >
42
+ <i :class="editor_is_readonly ? 'bi bi-pencil' : 'bi bi-check-lg'" class="me-1"></i>
43
+ <span x-text="editor_is_readonly ? 'Edit' : 'Save'"></span>
44
+ </div>
45
+ </div>
46
+ {% endif %}
47
+ </div>
48
+ {% endblock %}
49
+
50
+
51
+ {% block container_content %}
52
+ <div class="container">
53
+ <div class="row px-3">
54
+ <div class="col">
55
+ <script>
56
+ // Define editor instance outside of alpine js scope to avoid potential issues caused by reactivity
57
+ // and to allow above button to access
58
+ let KNOWLEDGE_ENTRY_VERSION_EDITOR;
59
+ </script>
60
+
61
+ {# The EditorJS will be attached to this div #}
62
+ <div
63
+ :id="editor_element_id"
64
+ x-data="{
65
+ editor_element_id: 'knowledge-entry-version-editor',
66
+ init() {
67
+ KNOWLEDGE_ENTRY_VERSION_EDITOR = create_editorjs_instance({
68
+ holder_id: this.editor_element_id,
69
+ initial_editor_blocks: {{ version_blocks }},
70
+ update_url: '{% url "django_spire:knowledge:entry:version:json:update_blocks" pk=entry.id %}'
71
+ })
72
+ }
73
+
74
+ }"
75
+ >
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ {% endblock %}
@@ -0,0 +1,76 @@
1
+ {% extends 'django_spire/knowledge/page/full_page.html' %}
2
+
3
+ {% load static %}
4
+ {% load spire_core_tags %}
5
+
6
+ {% block base_head_additional_css %}
7
+ <link href="{% static 'django_spire/knowledge/css/editor.css' %}?v={{ DJANGO_SPIRE_VERSION }}" rel="stylesheet">
8
+ {% endblock %}
9
+
10
+ {% block base_body_additional_top_js %}
11
+ {{ block.super }}
12
+
13
+ <script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@2.31.0/dist/editorjs.umd.min.js"></script>
14
+ <script src="https://cdn.jsdelivr.net/npm/@editorjs/paragraph@2.11.7/dist/paragraph.umd.min.js"></script>
15
+ <script src="https://cdn.jsdelivr.net/npm/@editorjs/list@2.0.8/dist/editorjs-list.umd.min.js"></script>
16
+ <script src="https://cdn.jsdelivr.net/npm/@editorjs/header@2.8.8/dist/header.umd.min.js"></script>
17
+ {% endblock %}
18
+
19
+ {% block full_page_sub_navigation %}
20
+ {% include 'django_spire/knowledge/sub_navigation/widget/collection_entry_sub_navigation_widget.html' with current_collection_id=entry.collection.id current_version_id=current_version.id %}
21
+ {% endblock %}
22
+
23
+ {% block full_page_info_navigation %}
24
+ <div class="row">
25
+ <div class="col-12 mb-3">
26
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Author' attribute_value=entry.current_version.author.get_full_name %}
27
+ </div>
28
+ </div>
29
+
30
+ <div class="row">
31
+ <div class="col-12 mb-3">
32
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Status' %}
33
+ {% include 'django_spire/knowledge/entry/badge/entry_status_badge.html' with status=entry.current_version.status %}
34
+ </div>
35
+ </div>
36
+
37
+ {% if entry.current_version.published_datetime %}
38
+ <div class="row">
39
+ <div class="col-12 mb-3">
40
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Published' attribute_value=entry.current_version.published_datetime %}
41
+ </div>
42
+ </div>
43
+ {% endif %}
44
+
45
+ <div class="row">
46
+ <div class="col-12 mb-3">
47
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Last Edit' attribute_value=entry.current_version.last_edit_datetime %}
48
+ </div>
49
+ </div>
50
+
51
+ <div class="row">
52
+ <div class="col-12 mb-3">
53
+ {% include 'django_spire/element/attribute_element.html' with attribute_title='Tags' %}
54
+ {% for tag, weight in entry.simplified_and_weighted_tag_dict|safe_dict_items %}
55
+ {% include 'django_spire/tag/element/tag.html' %}
56
+ {% endfor %}
57
+ </div>
58
+ </div>
59
+ {% endblock %}
60
+
61
+ {% block knowledge_full_page_content %}
62
+ <div class="row justify-content-center ps-3">
63
+ <div class="col-12">
64
+ {% include 'django_spire/knowledge/entry/version/container/editor_container.html' %}
65
+ </div>
66
+ </div>
67
+ {% endblock %}
68
+
69
+ {% block base_body_additional_bottom_js %}
70
+ {{ block.super }}
71
+
72
+ <script src="{% static 'django_spire/knowledge/entry/version/js/null_paragraph.js' %}?v={{ DJANGO_SPIRE_VERSION }}"
73
+ type="application/javascript"></script>
74
+ <script src="{% static 'django_spire/knowledge/entry/version/js/editor.js' %}?v={{ DJANGO_SPIRE_VERSION }}"
75
+ type="application/javascript"></script>
76
+ {% endblock %}
@@ -0,0 +1,32 @@
1
+ {% extends 'django_spire/ai/chat/message/message.html' %}
2
+
3
+ {% block message_content %}
4
+ <div class="row">
5
+ <div class="col">
6
+ {{ message_intel.answer_intel.answer|linebreaksbr }}
7
+ </div>
8
+ </div>
9
+
10
+ <div class="row mt-2 p-1" x-data="{show_resources: false}">
11
+ <div class="col-auto mx-2 ps-1 pe-2 py-1 fs-7 rounded-3 border border-primary-subtle">
12
+ <span class="text-muted cursor-pointer" x-on:click="show_resources = !show_resources">
13
+ <i class="bi bi-caret-right" x-show="!show_resources"></i>
14
+ <i class="bi bi-caret-down" x-show="show_resources"></i>
15
+ Sources
16
+ </span>
17
+
18
+ <ul class="my-0 me-3" x-show="show_resources">
19
+ {% for entry_intel in message_intel.entries_intel %}
20
+ <li class="pb-1">
21
+ <a href="{% url 'django_spire:knowledge:entry:version:page:editor' pk=entry_intel.entry.id %}?show_sub_nav=false&block_id={{ entry_intel.relevant_block_id }}"
22
+ target="_blank">
23
+ {{ entry_intel.relevant_heading_text }}
24
+ </a>
25
+ </li>
26
+ {% endfor %}
27
+ </ul>
28
+
29
+ </div>
30
+ </div>
31
+
32
+ {% endblock %}
@@ -0,0 +1,37 @@
1
+ {% extends 'django_spire/page/full_page.html' %}
2
+
3
+ {% load static %}
4
+
5
+ {% block base_head_additional_css %}
6
+ <link href="{% static 'django_spire/knowledge/css/navigation_items.css' %}?v={{ DJANGO_SPIRE_VERSION }}" rel="stylesheet">
7
+ {% endblock %}
8
+
9
+ {% block base_body_top_js %}
10
+ <script src="{% static 'django_spire/knowledge/collection/js/managers.js' %}?v={{ DJANGO_SPIRE_VERSION }}" type="application/javascript"></script>
11
+ {% endblock %}
12
+
13
+ {% block full_page_sub_navigation_title %}
14
+ {{ collection.name_short }}
15
+ {% endblock %}
16
+
17
+ {% block full_page_sub_navigation_buttons %}
18
+ {% if AuthController.knowledge.can_add %}
19
+ {% url 'django_spire:knowledge:collection:form:create' as create_url %}
20
+ {% include 'django_spire/button/primary_button.html' with button_text='Add' button_href=create_url button_icon="bi bi-plus" %}
21
+ {% endif %}
22
+ {% endblock %}
23
+
24
+ {% block full_page_info_navigation_title %}
25
+ More Info
26
+ {% endblock %}
27
+
28
+ {% block full_page_content %}
29
+ <div class="main-content-with-panels">
30
+ {% block knowledge_full_page_content %}
31
+ {% endblock %}
32
+ </div>
33
+ {% endblock %}
34
+
35
+ {% block base_body_additional_bottom_js %}
36
+ <script src="{% static 'django_spire/knowledge/collection/js/x_component.js' %}?v={{ DJANGO_SPIRE_VERSION }}" type="application/javascript"></script>
37
+ {% endblock %}
@@ -0,0 +1,11 @@
1
+ {% extends 'django_spire/knowledge/page/full_page.html' %}
2
+
3
+ {% load static %}
4
+
5
+ {% block full_page_content %}
6
+ <div class="row">
7
+ <div class="col-12">
8
+ {% include 'django_spire/knowledge/collection/card/top_level_list_card.html' %}
9
+ </div>
10
+ </div>
11
+ {% endblock %}
@@ -0,0 +1,15 @@
1
+ {% extends 'django_spire/dropdown/ellipsis_dropdown.html' %}
2
+
3
+ {% block dropdown_content %}
4
+ {% if AuthController.knowledge.can_change %}
5
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='collection.edit_url' link_icon='bi bi-pencil' link_text='Edit Collection' %}
6
+ {% endif %}
7
+ {% if AuthController.knowledge.can_add %}
8
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='collection.create_entry_url' link_icon='bi bi-plus' link_text='Add Entry' %}
9
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='collection.import_entry_url' link_icon='bi bi-upload' link_text='Import Entry' %}
10
+ {% endif %}
11
+ {% if AuthController.knowledge.can_delete %}
12
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='collection.delete_url' link_icon='bi bi-trash3' link_text='Delete Collection' link_css='text-app-danger' %}
13
+ {% endif %}
14
+ {% endblock %}
15
+
@@ -0,0 +1,12 @@
1
+ {% extends 'django_spire/dropdown/ellipsis_dropdown.html' %}
2
+
3
+ {% block dropdown_content %}
4
+ {% if AuthController.knowledge.can_change %}
5
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='entry.edit_url' link_icon='bi bi-input-cursor-text' link_text='Rename' %}
6
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='entry.edit_version_url' link_icon='bi bi-pencil' link_text='Edit' %}
7
+ {% endif %}
8
+ {% if AuthController.knowledge.can_delete %}
9
+ {% include 'django_spire/dropdown/element/dropdown_link_element.html' with x_link_url='entry.delete_url' link_icon='bi bi-trash3' link_text='Delete' link_css='text-app-danger' %}
10
+ {% endif %}
11
+ {% endblock %}
12
+
@@ -0,0 +1,29 @@
1
+ <div
2
+ class="knowledge-nav-item cursor-pointer row pt-2 pb-1 fs-7"
3
+ :class="collection.id === current_collection_id && !current_version_id ? 'bg-app-primary-soft rounded-2' : ''"
4
+ >
5
+ <div
6
+ class="col d-flex align-items-center overflow-hidden"
7
+ @click="toggle_expand(collection.id)"
8
+ >
9
+ <i
10
+ :class="is_expanded(collection.id) ? 'bi bi-chevron-down' : 'bi bi-chevron-right'"
11
+ class="flex-shrink-0"
12
+ {% if hide_chevron %}
13
+ style="visibility: hidden"
14
+ {% else %}
15
+ :style="{visibility: (collection.has_child_collections() || collection.has_entries()) ? 'visible' : 'hidden'}"
16
+ {% endif %}
17
+ ></i>
18
+ <i
19
+ :class="is_expanded(collection.id) ? 'bi-folder2-open' : 'bi-folder2'"
20
+ class="bi flex-shrink-0 ms-1"
21
+ ></i>
22
+ <span class="text-truncate ms-1" x-text="collection.name"></span>
23
+ </div>
24
+ {% if AuthController.knowledge.can_view %}
25
+ <div class="col-auto">
26
+ {% include 'django_spire/knowledge/sub_navigation/element/collection_sub_navigation_ellipsis_dropdown.html' %}
27
+ </div>
28
+ {% endif %}
29
+ </div>
@@ -0,0 +1,21 @@
1
+ <div
2
+ class="row ms-2 pt-2 pb-1 knowledge-nav-item cursor-pointer fs-7"
3
+ :class="entry.version_id === current_version_id ? 'bg-app-primary-soft rounded-2' : ''"
4
+ >
5
+ <a
6
+ class="col d-flex align-items-center overflow-hidden text-decoration-none text-app-default-text-color"
7
+ {% if AuthController.knowledge.can_view %}
8
+ :href="'{% url "django_spire:knowledge:entry:version:page:editor" pk=0 %}'.replace(0, entry.version_id)"
9
+ {% endif %}
10
+ data-closes-nav
11
+ >
12
+ <i class="bi bi-file-earmark-text flex-shrink-0"></i>
13
+ <span class="text-truncate ms-1" x-text="entry.name"></span>
14
+ </a>
15
+
16
+ {% if AuthController.knowledge.can_view %}
17
+ <div class="col-auto">
18
+ {% include 'django_spire/knowledge/sub_navigation/element/entry_sub_navigation_ellipsis_dropdown.html' %}
19
+ </div>
20
+ {% endif %}
21
+ </div>
@@ -0,0 +1,168 @@
1
+ <div
2
+ x-data="{
3
+ user_search: '',
4
+ found_items: new Map(),
5
+ manager: new CollectionManager({{ collection_tree_json }}),
6
+ is_dragging: false,
7
+ current_collection_id: {{ current_collection_id|default:'null' }},
8
+ current_version_id: {{ current_version_id|default:'null' }},
9
+ top_level_collection_id: {{ collection.id }},
10
+ expanded_ids: [],
11
+
12
+ init() {
13
+ if (this.current_collection_id) {
14
+ this.expand_path_to(this.current_collection_id)
15
+ }
16
+ },
17
+
18
+ expand_path_to(collection_id) {
19
+ const collection = this.manager.collection_lookup_map.get(collection_id)
20
+ if (!collection) return
21
+
22
+ let current = collection
23
+ let ids_to_expand = []
24
+
25
+ while (current && current.id !== -1) {
26
+ ids_to_expand.push(current.id)
27
+ current = current.parent
28
+ }
29
+
30
+ this.expanded_ids = ids_to_expand
31
+ },
32
+
33
+ is_expanded(collection_id) {
34
+ return this.expanded_ids.includes(collection_id)
35
+ },
36
+
37
+ toggle_expand(collection_id) {
38
+ if (this.is_expanded(collection_id)) {
39
+ this.expanded_ids = this.expanded_ids.filter(id => id !== collection_id)
40
+ } else {
41
+ this.expanded_ids.push(collection_id)
42
+ }
43
+ },
44
+
45
+ toggle_dragging(value) {
46
+ this.is_dragging = value
47
+ },
48
+
49
+ async move_collection({collection, order, new_parent}) {
50
+ let response = null
51
+ if (new_parent === null) {
52
+ new_parent = this.top_level_collection_id
53
+ }
54
+ try {
55
+ response = await django_glue_fetch(
56
+ '{% url "django_spire:knowledge:collection:json:reorder" %}',
57
+ {payload: {collection_id: collection.id, order: order, parent: new_parent}}
58
+ )
59
+ } catch (e) {
60
+ $dispatch('notify', {'type': 'error', 'message': 'An unexpected error has occured. Please refresh the page and try again.'})
61
+ }
62
+
63
+ if (response.type === 'error') {
64
+ $dispatch('notify', {'type': response.type, 'message': response.message})
65
+ }
66
+
67
+ this.manager.set_parent({collection: collection, parent_id: new_parent})
68
+ },
69
+
70
+ async move_entry({entry, collection, order}) {
71
+ let response = null
72
+ try {
73
+ response = await django_glue_fetch(
74
+ '{% url "django_spire:knowledge:entry:json:reorder" %}',
75
+ {payload: {entry_id: entry.entry_id, order: order, collection_id: collection.id}}
76
+ )
77
+ } catch (e) {
78
+ $dispatch('notify', {'type': 'error', 'message': 'An unexpected error has occured. Please refresh the page and try again.'})
79
+ }
80
+
81
+ if (response.type === 'error') {
82
+ $dispatch('notify', {'type': response.type, 'message': response.message})
83
+ }
84
+ },
85
+
86
+ search() {
87
+ let item_map = new Map()
88
+ const query = this.user_search.toLocaleLowerCase()
89
+ document.querySelector('.search-items').style.display = query ? 'block' : 'none'
90
+ document.querySelector('.navigation-items').style.display = query ? 'none' : 'block'
91
+ document.querySelectorAll('.collection, .entry').forEach(div => {
92
+ let div_id = div.id.toLocaleLowerCase()
93
+
94
+ let item = {}
95
+ if (div.classList.contains('collection')) {
96
+ item = Alpine.$data(div).collection
97
+ } else {
98
+ item = Alpine.$data(div).entry
99
+ }
100
+
101
+ if (div_id.includes(query)) {
102
+ item_map.set(item, item)
103
+ } else {
104
+ item_map.delete(item)
105
+ }
106
+ })
107
+
108
+ if (!query) {
109
+ this.found_items.clear()
110
+ } else {
111
+ this.found_items = item_map
112
+ }
113
+ },
114
+ }"
115
+ >
116
+ <div class="container-fluid">
117
+ <div class="row align-items-center mx-1 pb-2">
118
+ <div class="col-12 px-0">
119
+ <input
120
+ class="rounded-2 p-1 form-control"
121
+ type="text"
122
+ placeholder="Search ..."
123
+ x-model="user_search"
124
+ @input.debounce.300ms="search"
125
+ >
126
+ </div>
127
+ </div>
128
+ </div>
129
+ <div
130
+ class="user-select-none px-2"
131
+ x-sort:config="{
132
+ handle: '[x-sort\\:handle]',
133
+ distance: 20,
134
+ swapThreshold: 0.01
135
+ }"
136
+ >
137
+ {% include 'django_spire/knowledge/collection/component/x_collection_navigation.html' %}
138
+
139
+ <div class="navigation-items">
140
+ <x-collection-navigation :data="{items: manager.collection_map, id: null}"></x-collection-navigation>
141
+ </div>
142
+
143
+ <div class="search-items">
144
+ <template x-for="(item, index) in Array.from(found_items.values())" :key="index">
145
+ <div>
146
+ <template x-if="item?.constructor.name === 'Collection'">
147
+ <div
148
+ x-data="{
149
+ collection: item
150
+ }"
151
+ >
152
+ {% include 'django_spire/knowledge/sub_navigation/item/collection_sub_navigation_item.html' with hide_chevron=True %}
153
+ </div>
154
+ </template>
155
+ <template x-if="item?.constructor.name === 'Entry'">
156
+ <div
157
+ x-data="{
158
+ entry: item
159
+ }"
160
+ >
161
+ {% include 'django_spire/knowledge/sub_navigation/item/entry_sub_navigation_item.html' %}
162
+ </div>
163
+ </template>
164
+ </div>
165
+ </template>
166
+ </div>
167
+ </div>
168
+ </div>
File without changes
@@ -0,0 +1,28 @@
1
+ from __future__ import annotations
2
+
3
+ import re
4
+
5
+ from django import template
6
+
7
+
8
+ register = template.Library()
9
+
10
+
11
+ @register.filter
12
+ def format_to_html(value: str) -> str:
13
+ if not value:
14
+ return '&nbsp;'
15
+
16
+ line_break_html = re.sub(r'\n', '<br>', value)
17
+ bolded_html = re.sub(
18
+ r'\*\*(.*?)\*\*', r'<span class="fw-bold">\1</span>',
19
+ line_break_html
20
+ )
21
+ italicized_html = re.sub(
22
+ r'\*(.*?)\*', r'<span class="fst-italic">\1</span>',
23
+ bolded_html
24
+ )
25
+ return re.sub(
26
+ r'~~(.*?)~~', r'<span class="text-decoration-line-through">\1</span>',
27
+ italicized_html
28
+ )
@@ -0,0 +1,10 @@
1
+ from django.urls import include, path
2
+
3
+
4
+ app_name = 'knowledge'
5
+
6
+ urlpatterns = [
7
+ path('page/', include('django_spire.knowledge.urls.page_urls', namespace='page')),
8
+ path('collection/', include('django_spire.knowledge.collection.urls', namespace='collection')),
9
+ path('entry/', include('django_spire.knowledge.entry.urls', namespace='entry')),
10
+ ]
@@ -0,0 +1,10 @@
1
+ from django.urls import path
2
+
3
+ from django_spire.knowledge.views import page_views
4
+
5
+
6
+ app_name = 'page'
7
+
8
+ urlpatterns = [
9
+ path('', page_views.home_view, name='home'),
10
+ ]
File without changes
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+
3
+ from django.core.handlers.wsgi import WSGIRequest
4
+ from django.template.response import TemplateResponse
5
+
6
+ from django_spire.auth.controller.controller import AppAuthController
7
+ from django_spire.contrib.generic_views import portal_views
8
+ from django_spire.knowledge.collection.models import Collection
9
+
10
+
11
+ @AppAuthController('knowledge').permission_required('can_view')
12
+ def home_view(request: WSGIRequest) -> TemplateResponse:
13
+ def breadcrumbs_func(breadcrumbs):
14
+ breadcrumbs.add_breadcrumb(name='Knowledge')
15
+
16
+ return portal_views.list_view(
17
+ request,
18
+ model=Collection,
19
+ breadcrumbs_func=breadcrumbs_func,
20
+ context_data={
21
+ 'collections': Collection.objects.active().parentless().request_user_has_access(request),
22
+ },
23
+ template='django_spire/knowledge/page/home_page.html',
24
+ )
File without changes