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.
- enap_designsystem/migrations/0440_capsulaindexpage_capsulapage_alter_areaaluno_body_and_more.py +56561 -0
- enap_designsystem/models.py +513 -0
- enap_designsystem/static/enap_designsystem/blocks/capsulas.css +708 -0
- enap_designsystem/static/enap_designsystem/blocks/pages/page_search.css +6 -11
- enap_designsystem/templates/enap_designsystem/base.html +2 -0
- enap_designsystem/templates/enap_designsystem/blocks/feature_estrutura.html +22 -23
- enap_designsystem/templates/enap_designsystem/pages/capsula_index_page.html +1012 -0
- enap_designsystem/templates/enap_designsystem/pages/capsula_page.html +1164 -0
- enap_designsystem/templates/enap_designsystem/pages/page_search.html +103 -93
- enap_designsystem/templatetags/capsula_tags.py +11 -0
- {wagtail_enap_designsystem-1.2.1.167.dist-info → wagtail_enap_designsystem-1.2.1.169.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.167.dist-info → wagtail_enap_designsystem-1.2.1.169.dist-info}/RECORD +15 -10
- {wagtail_enap_designsystem-1.2.1.167.dist-info → wagtail_enap_designsystem-1.2.1.169.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.167.dist-info → wagtail_enap_designsystem-1.2.1.169.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.167.dist-info → wagtail_enap_designsystem-1.2.1.169.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
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"
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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 %}
|