django-spire 0.20.3__py3-none-any.whl → 0.20.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.
django_spire/consts.py CHANGED
@@ -1,4 +1,4 @@
1
- __VERSION__ = '0.20.3'
1
+ __VERSION__ = '0.20.4'
2
2
 
3
3
  MAINTENANCE_MODE_SETTINGS_NAME = 'MAINTENANCE_MODE'
4
4
 
@@ -184,6 +184,9 @@ document.addEventListener('alpine:init', () => {
184
184
  }
185
185
 
186
186
  this.apply_input_icon_theme();
187
+
188
+ let theme = this.get_current_theme();
189
+ window.dispatchEvent(new CustomEvent('theme-changed', { detail: theme }));
187
190
  };
188
191
 
189
192
  document.head.appendChild(link);
@@ -238,3 +241,22 @@ document.addEventListener('alpine:init', () => {
238
241
  }
239
242
  });
240
243
  });
244
+
245
+ window.get_echarts_theme = function() {
246
+ let styles = getComputedStyle(document.documentElement);
247
+ let is_dark = document.documentElement.getAttribute('data-theme') === 'dark';
248
+
249
+ return {
250
+ text: styles.getPropertyValue('--app-default-text-color').trim(),
251
+ primary: styles.getPropertyValue('--app-primary').trim(),
252
+ primary_dark: styles.getPropertyValue('--app-primary-dark').trim(),
253
+ secondary: styles.getPropertyValue('--app-secondary').trim(),
254
+ secondary_dark: styles.getPropertyValue('--app-secondary-dark').trim(),
255
+ border: styles.getPropertyValue('--bs-border-color').trim(),
256
+ bg: styles.getPropertyValue('--app-layer-one').trim(),
257
+ layer_two: styles.getPropertyValue('--app-layer-two').trim(),
258
+ layer_three: styles.getPropertyValue('--app-layer-three').trim(),
259
+ layer_four: styles.getPropertyValue('--app-layer-four').trim(),
260
+ is_dark: is_dark,
261
+ };
262
+ };
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-spire
3
- Version: 0.20.3
3
+ Version: 0.20.4
4
4
  Summary: A project for Django Spire
5
5
  Author-email: Brayden Carlson <braydenc@stratusadv.com>, Nathan Johnson <nathanj@stratusadv.com>
6
6
  License: Copyright (c) 2024 Stratus Advanced Technologies and Contributors.
@@ -1,6 +1,6 @@
1
1
  django_spire/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  django_spire/conf.py,sha256=c5Hs-7lk9T15254tOasiQ2ZTFLQIVJof9_QJDfm1PAI,933
3
- django_spire/consts.py,sha256=mYYUa0o4UzderI1zTwJJ7vbGKz77PDNmsO-cG9cqKc8,171
3
+ django_spire/consts.py,sha256=qn1nhKvfR2RiFZ_lpUQp8S6AENmF1_vMwTDOdVQ85yA,171
4
4
  django_spire/exceptions.py,sha256=L5ndRO5ftMmh0pHkO2z_NG3LSGZviJ-dDHNT73SzTNw,48
5
5
  django_spire/settings.py,sha256=5gzQCMKAHcBYFREPrYLkQcqFj5gSSgyduUU1H2ztWN8,685
6
6
  django_spire/urls.py,sha256=mKeZszb5U4iIGqddMb5Tt5fRC72U2wABEOi6mvOfEBU,656
@@ -572,7 +572,7 @@ django_spire/core/static/django_spire/js/cookie.js,sha256=N9ifDzqmJHRDwYI2Lqia1y
572
572
  django_spire/core/static/django_spire/js/dropdown.js,sha256=cSvzdsct8-45gIWZlO5MzmbW2vDuxJVttLZjOBl14GE,934
573
573
  django_spire/core/static/django_spire/js/modal.js,sha256=ay0Sovi0HhedEz3dRhB_INhkh1PEJ7zPc5POYo_Wwg0,370
574
574
  django_spire/core/static/django_spire/js/session_controller.js,sha256=aMom087y00MUhdxrZlrg89f88mBC7cWEhGWopeb5hlQ,232
575
- django_spire/core/static/django_spire/js/theme.js,sha256=APZnTjuhgXV7m1vVlmvNIMZACJ0gG8uGeiyWSmhZTmQ,8512
575
+ django_spire/core/static/django_spire/js/theme.js,sha256=Aq3KOJarjCr_Qjn0HyJlEFG0FWW1C948ppVvWxW554o,9606
576
576
  django_spire/core/static/django_spire/js/ui.js,sha256=Xrnw6cMmddCiUKC7iAJn1U7lk3nMJYxFJJO-J5zCqSw,673
577
577
  django_spire/core/tags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
578
578
  django_spire/core/tags/mixins.py,sha256=ibnPcLmdB0js8ha4M93CqRv5kOQ7fijKBCLoxM9F7C0,1979
@@ -1143,8 +1143,8 @@ django_spire/theme/urls/page_urls.py,sha256=S8nkKkgbhG3XHI3uMUL-piOjXIrRkuY2UlM_
1143
1143
  django_spire/theme/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1144
1144
  django_spire/theme/views/json_views.py,sha256=W1khC2K_EMbEzAFmMxC_P76_MFnkRH4-eVdodrRfAhw,1904
1145
1145
  django_spire/theme/views/page_views.py,sha256=pHr8iekjtR99xs7w1taj35HEo133Svq1dvDD0y0VL1c,3933
1146
- django_spire-0.20.3.dist-info/licenses/LICENSE.md,sha256=tlTbOtgKoy-xAQpUk9gPeh9O4oRXCOzoWdW3jJz0wnA,1091
1147
- django_spire-0.20.3.dist-info/METADATA,sha256=T_ep3Ot_z22dxlznx_fMgn22xFzMjxUXtRETiMK1J1Y,4967
1148
- django_spire-0.20.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1149
- django_spire-0.20.3.dist-info/top_level.txt,sha256=xf3QV1e--ONkVpgMDQE9iqjQ1Vg4--_6C8wmO-KxPHQ,13
1150
- django_spire-0.20.3.dist-info/RECORD,,
1146
+ django_spire-0.20.4.dist-info/licenses/LICENSE.md,sha256=tlTbOtgKoy-xAQpUk9gPeh9O4oRXCOzoWdW3jJz0wnA,1091
1147
+ django_spire-0.20.4.dist-info/METADATA,sha256=BBWf_tjXeIVVWOToiW5ijC0YUclFyG1DxO67-GTYtc4,4967
1148
+ django_spire-0.20.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1149
+ django_spire-0.20.4.dist-info/top_level.txt,sha256=xf3QV1e--ONkVpgMDQE9iqjQ1Vg4--_6C8wmO-KxPHQ,13
1150
+ django_spire-0.20.4.dist-info/RECORD,,