wagtail-enap-designsystem 1.2.1.167__py3-none-any.whl → 1.2.1.169__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.
@@ -769,7 +769,7 @@ z-index: 1;
769
769
  gap: 8px;
770
770
  }
771
771
 
772
- .paginacao a {
772
+ .paginacao a, .paginacao button {
773
773
  display: inline-flex;
774
774
  align-items: center;
775
775
  justify-content: center;
@@ -785,18 +785,18 @@ z-index: 1;
785
785
  font-size: 14px;
786
786
  }
787
787
 
788
- .paginacao a:hover {
788
+ .paginacao a:hover, .paginacao button:hover {
789
789
  background-color: #f1f7f5;
790
790
  }
791
791
 
792
- .paginacao a.ativo {
792
+ .paginacao a.ativo, .paginacao button.ativo {
793
793
  background-color: #06665D;
794
794
  color: white;
795
795
  font-weight: 700;
796
796
  border-color: #06665D;
797
797
  }
798
798
 
799
- .paginacao a.disabled {
799
+ .paginacao a.disabled, .paginacao button.disabled {
800
800
  pointer-events: none;
801
801
  opacity: 0.4;
802
802
  border-style: dashed;
@@ -956,11 +956,11 @@ z-index: 1;
956
956
  .filtro-limpar {
957
957
  background-color: transparent;
958
958
  color: #007D7A;
959
- border: 2px solid #007D7A;
959
+ border: none;
960
960
  padding: 10px;
961
- border-radius: 32px;
962
961
  cursor: pointer;
963
962
  font-weight: 600;
963
+ font-size: 16px;
964
964
  width: 100%;
965
965
  display: flex;
966
966
  align-items: center;
@@ -968,8 +968,3 @@ z-index: 1;
968
968
  gap: 8px;
969
969
  transition: all 0.3s ease;
970
970
  }
971
-
972
- .filtro-limpar:hover {
973
- background-color: #007D7A;
974
- color: white;
975
- }
@@ -185,6 +185,7 @@
185
185
 
186
186
  <!-- CSS Componentes -->
187
187
  <link rel="stylesheet" href="{% static 'enap_designsystem/blocks/lia.css' %}">
188
+ <link rel="stylesheet" href="{% static 'enap_designsystem/blocks/capsulas.css' %}">
188
189
  <link rel="stylesheet" href="{% static 'enap_designsystem/blocks/carousel_images.css' %}">
189
190
  <link rel="stylesheet" href="{% static 'enap_designsystem/blocks/apresentacao_block.css' %}">
190
191
  <link rel="stylesheet" href="{% static 'enap_designsystem/blocks/cards_section.css' %}">
@@ -338,6 +339,7 @@
338
339
 
339
340
  <!-- Scripts Externos -->
340
341
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
342
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
341
343
  <script src="{% static 'static/simple-dashboard.js' %}"></script>
342
344
  <script src="https://kit.fontawesome.com/2e8803d931.js" crossorigin="anonymous"></script>
343
345
  <script src="{% static 'enap_designsystem/blocks/pages/page_search.js' %}" crossorigin="anonymous"></script>
@@ -16,7 +16,7 @@
16
16
 
17
17
  <div class="modules-grid">
18
18
  {% for module in value.modules %}
19
- <div class="accordion-item-v2" id="accordion-{{ forloop.counter }}">
19
+ <div class="accordion-item-v2">
20
20
  <div class="accordion-header-v2">
21
21
  <h3 class="module-heading">{{ module.module_title }}</h3>
22
22
  <span class="toggle-icon">+</span>
@@ -37,32 +37,31 @@
37
37
  </div>
38
38
  </div>
39
39
  </section>
40
+ {% endblock %}
40
41
 
42
+ {% block scriptinline %}
41
43
  <script>
42
- document.addEventListener('DOMContentLoaded', function() {
43
- // Seleciona todos os headers de accordion
44
- const headers = document.querySelectorAll('.accordion-header-v2');
45
-
46
- // Adiciona o evento de clique a cada header
47
- headers.forEach(header => {
48
- header.addEventListener('click', function() {
49
- // Pega o elemento pai (o accordion item)
50
- const parentItem = this.parentElement;
51
-
52
- // Verifica se este item já está ativo
53
- const isActive = parentItem.classList.contains('active');
54
-
55
- // Remove a classe active de TODOS os accordions
56
- document.querySelectorAll('.accordion-item-v2').forEach(item => {
57
- item.classList.remove('active');
44
+ if (!window.accordionScriptInitialized) {
45
+ document.addEventListener('DOMContentLoaded', function() {
46
+ const headers = document.querySelectorAll('.accordion-header-v2');
47
+
48
+ headers.forEach(header => {
49
+ header.addEventListener('click', function() {
50
+ const parentItem = this.parentElement;
51
+ const isActive = parentItem.classList.contains('active');
52
+
53
+ document.querySelectorAll('.accordion-item-v2').forEach(item => {
54
+ item.classList.remove('active');
55
+ });
56
+
57
+ if (!isActive) {
58
+ parentItem.classList.add('active');
59
+ }
58
60
  });
59
-
60
- // Adiciona a classe active apenas ao item clicado, SE não estava ativo antes
61
- if (!isActive) {
62
- parentItem.classList.add('active');
63
- }
64
61
  });
65
62
  });
66
- });
63
+
64
+ window.accordionScriptInitialized = true;
65
+ }
67
66
  </script>
68
67
  {% endblock %}