@openeuropa/bcl-theme-default 0.19.0 → 0.22.0

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 (169) hide show
  1. package/bcl-builder.config.js +11 -4
  2. package/css/oe-bcl-default.css +1288 -400
  3. package/css/oe-bcl-default.css.map +1 -1
  4. package/css/oe-bcl-default.min.css +1 -1
  5. package/css/oe-bcl-default.min.css.map +1 -1
  6. package/icons/bcl-default-icons.svg +1 -0
  7. package/icons/icons-flag.svg +1 -1
  8. package/js/oe-bcl-default.bundle.js +242 -76
  9. package/js/oe-bcl-default.bundle.js.map +1 -1
  10. package/js/oe-bcl-default.bundle.min.js +1 -1
  11. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  12. package/js/oe-bcl-default.esm.js +236 -75
  13. package/js/oe-bcl-default.esm.js.map +1 -1
  14. package/js/oe-bcl-default.esm.min.js +1 -1
  15. package/js/oe-bcl-default.esm.min.js.map +1 -1
  16. package/js/oe-bcl-default.umd.js +242 -76
  17. package/js/oe-bcl-default.umd.js.map +1 -1
  18. package/js/oe-bcl-default.umd.min.js +1 -1
  19. package/js/oe-bcl-default.umd.min.js.map +1 -1
  20. package/logos/ec/{logo-ec--ar.svg → positive/logo-ec--ar.svg} +0 -0
  21. package/logos/ec/{logo-ec--bg.svg → positive/logo-ec--bg.svg} +0 -0
  22. package/logos/ec/{logo-ec--ca.svg → positive/logo-ec--ca.svg} +0 -0
  23. package/logos/ec/{logo-ec--cs.svg → positive/logo-ec--cs.svg} +0 -0
  24. package/logos/ec/{logo-ec--da.svg → positive/logo-ec--da.svg} +0 -0
  25. package/logos/ec/{logo-ec--de.svg → positive/logo-ec--de.svg} +0 -0
  26. package/logos/ec/{logo-ec--el.svg → positive/logo-ec--el.svg} +0 -0
  27. package/logos/ec/{logo-ec--en.svg → positive/logo-ec--en.svg} +0 -0
  28. package/logos/ec/{logo-ec--es.svg → positive/logo-ec--es.svg} +0 -0
  29. package/logos/ec/{logo-ec--et.svg → positive/logo-ec--et.svg} +0 -0
  30. package/logos/ec/{logo-ec--fi.svg → positive/logo-ec--fi.svg} +0 -0
  31. package/logos/ec/{logo-ec--fr.svg → positive/logo-ec--fr.svg} +0 -0
  32. package/logos/ec/{logo-ec--ga.svg → positive/logo-ec--ga.svg} +0 -0
  33. package/logos/ec/{logo-ec--hr.svg → positive/logo-ec--hr.svg} +0 -0
  34. package/logos/ec/{logo-ec--hu.svg → positive/logo-ec--hu.svg} +0 -0
  35. package/logos/ec/{logo-ec--is.svg → positive/logo-ec--is.svg} +0 -0
  36. package/logos/ec/{logo-ec--it.svg → positive/logo-ec--it.svg} +0 -0
  37. package/logos/ec/{logo-ec--lt.svg → positive/logo-ec--lt.svg} +0 -0
  38. package/logos/ec/{logo-ec--lv.svg → positive/logo-ec--lv.svg} +0 -0
  39. package/logos/ec/{logo-ec--mt.svg → positive/logo-ec--mt.svg} +0 -0
  40. package/logos/ec/{logo-ec--nl.svg → positive/logo-ec--nl.svg} +0 -0
  41. package/logos/ec/{logo-ec--no.svg → positive/logo-ec--no.svg} +0 -0
  42. package/logos/ec/{logo-ec--pl.svg → positive/logo-ec--pl.svg} +0 -0
  43. package/logos/ec/{logo-ec--pt.svg → positive/logo-ec--pt.svg} +0 -0
  44. package/logos/ec/{logo-ec--ro.svg → positive/logo-ec--ro.svg} +0 -0
  45. package/logos/ec/{logo-ec--sk.svg → positive/logo-ec--sk.svg} +0 -0
  46. package/logos/ec/{logo-ec--sl.svg → positive/logo-ec--sl.svg} +0 -0
  47. package/logos/ec/{logo-ec--sv.svg → positive/logo-ec--sv.svg} +0 -0
  48. package/logos/ec/{logo-ec--tr.svg → positive/logo-ec--tr.svg} +0 -0
  49. package/logos/eu/condensed-version/negative/logo-eu--ar.svg +18 -0
  50. package/logos/eu/condensed-version/negative/logo-eu--bg.svg +7 -0
  51. package/logos/eu/condensed-version/negative/logo-eu--ca.svg +7 -0
  52. package/logos/eu/condensed-version/negative/logo-eu--cs.svg +7 -0
  53. package/logos/eu/condensed-version/negative/logo-eu--da.svg +7 -0
  54. package/logos/eu/condensed-version/negative/logo-eu--de.svg +7 -0
  55. package/logos/eu/condensed-version/negative/logo-eu--el.svg +7 -0
  56. package/logos/eu/condensed-version/negative/logo-eu--en.svg +7 -0
  57. package/logos/eu/condensed-version/negative/logo-eu--es.svg +7 -0
  58. package/logos/eu/condensed-version/negative/logo-eu--et.svg +7 -0
  59. package/logos/eu/condensed-version/negative/logo-eu--fi.svg +7 -0
  60. package/logos/eu/condensed-version/negative/logo-eu--fr.svg +7 -0
  61. package/logos/eu/condensed-version/negative/logo-eu--ga.svg +7 -0
  62. package/logos/eu/condensed-version/negative/logo-eu--hr.svg +7 -0
  63. package/logos/eu/condensed-version/negative/logo-eu--hu.svg +7 -0
  64. package/logos/eu/condensed-version/negative/logo-eu--is.svg +8 -0
  65. package/logos/eu/condensed-version/negative/logo-eu--it.svg +7 -0
  66. package/logos/eu/condensed-version/negative/logo-eu--lt.svg +7 -0
  67. package/logos/eu/condensed-version/negative/logo-eu--lv.svg +7 -0
  68. package/logos/eu/condensed-version/negative/logo-eu--mt.svg +7 -0
  69. package/logos/eu/condensed-version/negative/logo-eu--nl.svg +7 -0
  70. package/logos/eu/condensed-version/negative/logo-eu--no.svg +7 -0
  71. package/logos/eu/condensed-version/negative/logo-eu--pl.svg +7 -0
  72. package/logos/eu/condensed-version/negative/logo-eu--pt.svg +7 -0
  73. package/logos/eu/condensed-version/negative/logo-eu--ro.svg +7 -0
  74. package/logos/eu/condensed-version/negative/logo-eu--sk.svg +7 -0
  75. package/logos/eu/condensed-version/negative/logo-eu--sl.svg +7 -0
  76. package/logos/eu/condensed-version/negative/logo-eu--sv.svg +7 -0
  77. package/logos/eu/condensed-version/negative/logo-eu--tr.svg +7 -0
  78. package/logos/eu/standard-version/negative/logo-eu--ar.svg +18 -0
  79. package/logos/eu/standard-version/negative/logo-eu--bg.svg +17 -0
  80. package/logos/eu/standard-version/negative/logo-eu--ca.svg +16 -0
  81. package/logos/eu/standard-version/negative/logo-eu--cs.svg +17 -0
  82. package/logos/eu/standard-version/negative/logo-eu--da.svg +23 -0
  83. package/logos/eu/standard-version/negative/logo-eu--de.svg +21 -0
  84. package/logos/eu/standard-version/negative/logo-eu--el.svg +19 -0
  85. package/logos/eu/standard-version/negative/logo-eu--en.svg +18 -0
  86. package/logos/eu/standard-version/negative/logo-eu--es.svg +17 -0
  87. package/logos/eu/standard-version/negative/logo-eu--et.svg +16 -0
  88. package/logos/eu/standard-version/negative/logo-eu--fi.svg +19 -0
  89. package/logos/eu/standard-version/negative/logo-eu--fr.svg +20 -0
  90. package/logos/eu/standard-version/negative/logo-eu--ga.svg +21 -0
  91. package/logos/eu/standard-version/negative/logo-eu--hr.svg +18 -0
  92. package/logos/eu/standard-version/negative/logo-eu--hu.svg +16 -0
  93. package/logos/eu/standard-version/negative/logo-eu--is.svg +20 -0
  94. package/logos/eu/standard-version/negative/logo-eu--it.svg +18 -0
  95. package/logos/eu/standard-version/negative/logo-eu--lt.svg +19 -0
  96. package/logos/eu/standard-version/negative/logo-eu--lv.svg +21 -0
  97. package/logos/eu/standard-version/negative/logo-eu--mt.svg +19 -0
  98. package/logos/eu/standard-version/negative/logo-eu--nl.svg +17 -0
  99. package/logos/eu/standard-version/negative/logo-eu--no.svg +20 -0
  100. package/logos/eu/standard-version/negative/logo-eu--pl.svg +19 -0
  101. package/logos/eu/standard-version/negative/logo-eu--pt.svg +18 -0
  102. package/logos/eu/standard-version/negative/logo-eu--ro.svg +21 -0
  103. package/logos/eu/standard-version/negative/logo-eu--sk.svg +17 -0
  104. package/logos/eu/standard-version/negative/logo-eu--sl.svg +18 -0
  105. package/logos/eu/standard-version/negative/logo-eu--sv.svg +22 -0
  106. package/logos/eu/standard-version/negative/logo-eu--tr.svg +18 -0
  107. package/package.json +14 -9
  108. package/src/icons/icons.js +356 -0
  109. package/src/js/gallery/gallery.js +168 -0
  110. package/src/js/index.esm.js +2 -0
  111. package/src/js/index.umd.js +2 -0
  112. package/src/scss/_badge.scss +5 -5
  113. package/src/scss/_banners.scss +4 -4
  114. package/src/scss/_bcl-offcanvas.scss +7 -0
  115. package/src/scss/_carousel.scss +85 -0
  116. package/src/scss/_circular-progress-bar.scss +122 -0
  117. package/src/scss/_gallery.scss +269 -0
  118. package/src/scss/_header.scss +46 -45
  119. package/src/scss/_inpage-navigation.scss +6 -0
  120. package/src/scss/_language-list.scss +51 -0
  121. package/src/scss/_pagination.scss +8 -0
  122. package/src/scss/_reset.scss +9 -0
  123. package/src/scss/_search-form.scss +4 -2
  124. package/src/scss/base/_colors.scss +17 -6
  125. package/src/scss/base/_utilities.scss +35 -4
  126. package/src/scss/base/_variables.scss +10 -1
  127. package/src/scss/oe-bcl-default.scss +5 -0
  128. package/templates/bcl-alert/alert.html.twig +13 -5
  129. package/templates/bcl-badge/badge.html.twig +4 -4
  130. package/templates/bcl-banner/banner.html.twig +16 -9
  131. package/templates/bcl-base-templates/listing-page.html.twig +13 -13
  132. package/templates/bcl-breadcrumb/breadcrumb.html.twig +2 -2
  133. package/templates/bcl-card/card.html.twig +42 -20
  134. package/templates/bcl-card-layout/card-layout.html.twig +6 -1
  135. package/templates/bcl-carousel/carousel.html.twig +26 -5
  136. package/templates/bcl-content-banner/content-banner.html.twig +39 -33
  137. package/templates/bcl-date-block/date-block.html.twig +29 -9
  138. package/templates/bcl-description-list/description-list.html.twig +23 -12
  139. package/templates/bcl-fact-figures/fact-figures.html.twig +9 -5
  140. package/templates/bcl-file/file.html.twig +11 -8
  141. package/templates/bcl-footer/footer.html.twig +3 -1
  142. package/templates/bcl-form/form.html.twig +7 -4
  143. package/templates/bcl-gallery/gallery.html.twig +206 -0
  144. package/templates/bcl-header/header.html.twig +31 -15
  145. package/templates/bcl-heading/heading.html.twig +42 -0
  146. package/templates/bcl-language-list/language-list-grid.html.twig +68 -0
  147. package/templates/bcl-language-list/language-list-modal.html.twig +58 -0
  148. package/templates/bcl-language-list/language-list.html.twig +111 -0
  149. package/templates/bcl-language-switcher/language-switcher.html.twig +44 -0
  150. package/templates/bcl-link/link.html.twig +1 -1
  151. package/templates/bcl-links-block/links-block.html.twig +9 -3
  152. package/templates/bcl-listing/listing.html.twig +12 -8
  153. package/templates/bcl-modal/modal.html.twig +12 -1
  154. package/templates/bcl-navbar/navbar.html.twig +39 -28
  155. package/templates/bcl-page/page.html.twig +1 -1
  156. package/templates/bcl-pagination/pagination.html.twig +123 -9
  157. package/templates/bcl-person/person.html.twig +44 -0
  158. package/templates/bcl-project/project-lists.html.twig +67 -0
  159. package/templates/bcl-project/project.html.twig +84 -49
  160. package/templates/bcl-project-status/project-contributions.html.twig +56 -0
  161. package/templates/bcl-project-status/project-status.html.twig +13 -24
  162. package/templates/bcl-select/select.html.twig +13 -3
  163. package/templates/bcl-subscription/subscription-modal.html.twig +24 -0
  164. package/templates/bcl-subscription/subscription.html.twig +10 -0
  165. package/templates/bcl-subscription-block/subscription-block.html.twig +36 -0
  166. package/templates/bcl-timeline/timeline.html.twig +10 -7
  167. package/templates/bcl-user/user-view-compact.html.twig +9 -2
  168. package/templates/bcl-user/user-view.html.twig +0 -10
  169. package/icons/bootstrap-icons.svg +0 -1
@@ -5,56 +5,91 @@
5
5
  {% endblock %}
6
6
 
7
7
  {% block content %}
8
- {% include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_details|merge({ charts: charts }) %}
8
+ {% if project_status_title is not empty %}
9
+ {% set _project_title_attributes = create_attribute().addClass(['fw-bold', 'mb-4']) %}
10
+ {% if project_status_id is not empty %}
11
+ {% set _project_title_attributes = _project_title_attributes.setAttribute('id', project_status_id) %}
12
+ {% endif %}
13
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
14
+ title: project_status_title,
15
+ title_tag: 'h3',
16
+ attributes: _project_title_attributes,
17
+ } only %}
18
+ {% endif %}
19
+ {% if project_status is not empty %}
20
+ {% include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
21
+ {% endif %}
22
+ {% if project_contributions is not empty %}
23
+ {% include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
24
+ {% endif %}
9
25
 
10
- <div class="border-bottom mb-4">
11
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with details_list only %}
26
+ {% if status_lists is not empty %}
27
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
28
+ {% endif %}
29
+
30
+ {% if first_paragraphs is defined and first_paragraphs is not empty %}
31
+ {% for _paragraph in first_paragraphs %}
32
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
33
+ title: _paragraph.title,
34
+ title_tag: 'h3',
35
+ attributes: create_attribute().addClass(['fw-bold', 'mb-4', 'pt-3'])
36
+ .setAttribute('id', _paragraph.title_id),
37
+ } only %}
38
+ {{- _paragraph.content -}}
39
+ {% endfor %}
40
+ {% endif %}
41
+
42
+ {% if featured_lists is not empty %}
43
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
44
+ {% endif %}
45
+
46
+ {% if content_lists is not empty %}
47
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
48
+ {% endif %}
49
+
50
+ {% if second_paragraphs is defined and second_paragraphs is not empty %}
51
+ {% for _paragraph in second_paragraphs %}
52
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
53
+ title: _paragraph.title,
54
+ title_tag: 'h3',
55
+ attributes: create_attribute().addClass(['fw-bold', 'mb-4', 'pt-3'])
56
+ .setAttribute('id', _paragraph.title_id),
57
+ } only %}
58
+ {{- _paragraph.content -}}
59
+ {% endfor %}
60
+ {% endif %}
61
+
62
+ {% if gallery.main_title is not empty %}
63
+ {% set _gallery_title_attributes = create_attribute().addClass(['fw-bold', 'my-4']) %}
64
+ {% if gallery.main_title_id is not empty %}
65
+ {% set _gallery_title_attributes = _gallery_title_attributes.setAttribute('id', gallery.main_title_id) %}
66
+ {% endif %}
67
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
68
+ title: gallery.main_title,
69
+ title_tag: 'h3',
70
+ attributes: _gallery_title_attributes,
71
+ } only %}
72
+ {% endif %}
73
+ {% if gallery.items is defined and gallery.items is not empty %}
74
+ <div class="mt-3">
75
+ {% for _showcase in gallery.items %}
76
+ <div class="mb-2-5 pb-4">
77
+ {% if _showcase.carousel %}
78
+ {% include '@oe-bcl/bcl-carousel/carousel.html.twig' with _showcase only %}
79
+ {% else %}
80
+ {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with _showcase only %}
81
+ {% endif %}
82
+ </div>
83
+ {% endfor %}
12
84
  </div>
85
+ {% endif %}
86
+
87
+ {% if social_block is not empty %}
88
+ {% block social_block %}
89
+ {{ social_buttons }}
90
+ {% include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
91
+ {% include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
92
+ {% endblock %}
93
+ {% endif %}
13
94
 
14
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with coordinator_list only %}
15
-
16
- {% for paragraph in paragraphs %}
17
- <h3
18
- class="fw-bold mb-4 pt-3"
19
- id="{{ paragraph.title_id }}"
20
- >
21
- {{ paragraph.title }}
22
- </h3>
23
-
24
- {{ paragraph.content }}
25
- {% endfor %}
26
-
27
- <h3
28
- class="fw-bold mb-4 pt-2"
29
- id="{{ contributors.main_title_id }}"
30
- >
31
- {{ contributors.main_title }}
32
- </h3>
33
-
34
- {% for contributor in contributors.listing %}
35
- <h4 class="fw-bold mb-3">{{ contributor.title }}</h4>
36
-
37
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with contributor.list only %}
38
-
39
- {% endfor %}
40
-
41
- {% for achievement in achievements %}
42
- <h3
43
- class="fw-bold mb-4 pt-2"
44
- id="{{ achievement.title_id }}"
45
- >
46
- {{ achievement.title }}
47
- </h3>
48
- {{ achievement.content }}
49
- {% endfor %}
50
-
51
- <h3
52
- class="fw-bold mb-4 pt-2"
53
- id="{{ gallery.title_id }}"
54
- >
55
- {{ gallery.title }}
56
- </h3>
57
-
58
- {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with gallery.featured only %}
59
- {% include '@oe-bcl/bcl-carousel/carousel.html.twig' with gallery.carousel only %}
60
95
  {% endblock %}
@@ -0,0 +1,56 @@
1
+ {% spaceless %}
2
+
3
+ {# Parameters:
4
+ - corporate_contributions (string) (default: '') // value every 5 percent
5
+ - legend (boolean or object (default: false)
6
+ - chart (boolean) (default: false)
7
+
8
+ Blocks -
9
+ project_status_contrib_chart
10
+ project_status_contrib_legend
11
+ #}
12
+
13
+ {% set _corporate_contributions = corporate_contributions|default('') %}
14
+ {% set _legend = legend|default(false) %}
15
+ {% set _chart = chart|default(false) %}
16
+
17
+ {% if attributes is empty %}
18
+ {% set attributes = create_attribute() %}
19
+ {% endif %}
20
+
21
+ {% set attributes = attributes.addClass([
22
+ 'bcl-project-contributions',
23
+ 'border-bottom',
24
+ 'pb-4',
25
+ 'mb-4'
26
+ ]) %}
27
+
28
+ <div {{ attributes }}>
29
+ <div class="row">
30
+
31
+ {% if _chart is not empty %}
32
+ <div class="bcl-project-contributions-chart col-5 col-md-3">
33
+ {% block project_status_contrib_chart %}
34
+ <div class="circular-progress" data-percentage="{{ _corporate_contributions }}">
35
+ <span class="circular-progress-left">
36
+ <span class="circular-progress-bar"></span>
37
+ </span>
38
+ <span class="circular-progress-right">
39
+ <span class="circular-progress-bar"></span>
40
+ </span>
41
+ </div>
42
+ {% endblock %}
43
+ </div>
44
+ {% endif %}
45
+
46
+ {% if _legend is not empty %}
47
+ <div class="bcl-project-contributions-legend col-7 col-md-9 align-self-center">
48
+ {% block project_status_contrib_legend %}
49
+ {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _legend only %}
50
+ {% endblock %}
51
+ </div>
52
+ {% endif %}
53
+ </div>
54
+ </div>
55
+
56
+ {% endspaceless %}
@@ -1,9 +1,6 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title_id (string) (default: "")
5
- - title (string) (default: "")
6
- - title_tag (string) (default: "h3")
7
4
  - status (string) (default: 'planned')
8
5
  - start_date (string) (default: '')
9
6
  - start_label (string) (default: '')
@@ -12,14 +9,9 @@
12
9
  - label (string) (default: '')
13
10
  - badge (string) (default: ''),
14
11
  - progress (string) (default: '')
15
-
16
- Blocks - charts
17
12
  #}
18
13
 
19
- {% set _title_id = title_id|default('') %}
20
- {% set _title = title|default('') %}
21
14
  {% set _label = label|default('') %}
22
- {% set _title_tag = title_tag|default('h3') %}
23
15
  {% set _status = status|default('planned') %}
24
16
  {% set _charts = charts|default('') %}
25
17
  {% set _badge = badge|default('') %}
@@ -29,6 +21,17 @@
29
21
  {% set _end_label = end_label|default('') %}
30
22
  {% set _progress = progress|default('') %}
31
23
 
24
+ {% if attributes is empty %}
25
+ {% set attributes = create_attribute() %}
26
+ {% endif %}
27
+
28
+ {% set attributes = attributes.addClass([
29
+ 'bcl-project-status',
30
+ 'border-bottom',
31
+ 'pb-4',
32
+ 'mb-4'
33
+ ]) %}
34
+
32
35
  {% set _bgs = {
33
36
  ongoing: 'info',
34
37
  closed: 'dark',
@@ -36,17 +39,7 @@
36
39
  } %}
37
40
  {% set _bg = _bgs[_status]|default('secondary') %}
38
41
 
39
-
40
- <{{ _title_tag }}
41
- class="fw-bold mb-4"
42
- {% if title_id is not empty %}
43
- id="{{ title_id }}"
44
- {% endif %}
45
- >
46
- {{- title -}}
47
- </{{ _title_tag }}>
48
-
49
- <div class="border-bottom pb-4 mb-4">
42
+ <div {{ attributes }}>
50
43
  <div class="row">
51
44
  <div class="col-12 col-md-3">
52
45
  {% if _label is not empty %}
@@ -100,10 +93,6 @@
100
93
  </div>
101
94
  </div>
102
95
 
103
- {% if _charts is not empty %}
104
- <div class="border-bottom pb-4 mb-4">
105
- {%- block charts _charts -%}
106
- </div>
107
- {% endif %}
96
+
108
97
 
109
98
  {% endspaceless %}
@@ -4,6 +4,7 @@
4
4
  Parameters:
5
5
  - "id" (string) (default: '')
6
6
  - "label" (string) (default: '')
7
+ - "label_extra_classes" (string) (default: '')
7
8
  - "hidden_label" (boolean) (default: false)
8
9
  - "helper_text" (string) (default: '')
9
10
  - "helper_text_id" (string) (default: '')
@@ -16,6 +17,7 @@
16
17
  - "multiple" (boolean) (default: false)
17
18
  - "options": (array of objects with value and label keys) (default: [])
18
19
  - "aria_label": (string) (default: '')
20
+ - "clean_class": (boolean) (default: false) - removes 'form-select' class
19
21
  #}
20
22
 
21
23
  {% set _classes = ['form-select'] %}
@@ -32,11 +34,12 @@
32
34
  {% set _helper_text = helper_text|default('') %}
33
35
  {% set _helper_text_id = helper_text_id|default('') %}
34
36
  {% set _label = label|default('') %}
35
- {% set _extra_classes = extra_classes|default('') %}
37
+ {% set _label_extra_classes = label_extra_classes|default('') %}
36
38
  {% set _clean_class = clean_class|default(false) %}
37
- {% set _label_class = 'form-label' %}
38
39
  {% set _hidden_label = hidden_label|default(false) %}
39
40
 
41
+ {% set _label_class = 'form-label' %}
42
+
40
43
  {% if _clean_class %}
41
44
  {% set _classes = [] %}
42
45
  {% endif %}
@@ -53,6 +56,10 @@
53
56
  {% set attributes = create_attribute() %}
54
57
  {% endif %}
55
58
 
59
+ {% if _label_extra_classes is not empty %}
60
+ {% set _label_class = _label_class ~ ' ' ~ _label_extra_classes %}
61
+ {% endif %}
62
+
56
63
  {% if _aria_label is not empty %}
57
64
  {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
58
65
  {% endif %}
@@ -78,7 +85,7 @@
78
85
  {% endif %}
79
86
 
80
87
  {% if _classes is not empty %}
81
- {% set attributes = attributes.addClass(_classes) %}
88
+ {% set attributes = attributes.addClass(_classes) %}
82
89
  {% endif %}
83
90
 
84
91
  {% if _label is not empty %}
@@ -129,6 +136,9 @@
129
136
  {% if _option.disabled %}
130
137
  disabled
131
138
  {% endif %}
139
+ {% if _option.hidden %}
140
+ hidden
141
+ {% endif %}
132
142
  >
133
143
  {{- _option.label -}}
134
144
  </option>
@@ -0,0 +1,24 @@
1
+ {# Parameters:
2
+ - form: (form object) (default: {})
3
+ - success_alert: (alert object) (default: {})
4
+ - error_alert: (button Object) (default: {})
5
+
6
+ Blocks:
7
+ - body
8
+ - messages
9
+ #}
10
+
11
+ {% set _form = form|default({}) %}
12
+ {% set _success_alert = success_alert|default({}) %}
13
+ {% set _error_alert = error_alert|default({}) %}
14
+
15
+ {% extends "@oe-bcl/bcl-modal/modal.html.twig" %}
16
+
17
+ {% block body %}
18
+ {% include '@oe-bcl/bcl-form/form.html.twig' with _form only %}
19
+ {% endblock %}
20
+
21
+ {% block messages %}
22
+ {% include '@oe-bcl/bcl-alert/alert.html.twig' with _success_alert only %}
23
+ {% include '@oe-bcl/bcl-alert/alert.html.twig' with _error_alert only %}
24
+ {% endblock %}
@@ -0,0 +1,10 @@
1
+ {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
2
+
3
+ {% block sidebar %}
4
+ {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
+ {% endblock %}
6
+
7
+ {% block content_bottom %}
8
+ {% include '@oe-bcl/bcl-subscription-block/subscription-block.html.twig' with subscription only %}
9
+ {% include '@oe-bcl/bcl-subscription/subscription-modal.html.twig' with modal only %}
10
+ {% endblock %}
@@ -0,0 +1,36 @@
1
+ {% spaceless %}
2
+
3
+ {# Parameters:
4
+ - title: (string) (default: '')
5
+ - content: (string) (default: '')
6
+ - button: (button Object) (default: {})
7
+ #}
8
+
9
+ {% set _title = title|default(false) %}
10
+ {% set _content = content|default('') %}
11
+ {% set _button = button|default({}) %}
12
+ {% set _modal = modal|default({}) %}
13
+
14
+ {% if attributes is empty %}
15
+ {% set attributes = create_attribute() %}
16
+ {% endif %}
17
+
18
+ {% set attributes = attributes.addClass(['bg-light', 'px-4-5', 'pt-4', 'pb-4-5']) %}
19
+
20
+ <div
21
+ {{ attributes }}
22
+ >
23
+ {% if _title is not empty %}
24
+ <div class="fs-2 fw-normal">{{ _title }}</div>
25
+ {% endif %}
26
+ {% if _content is not empty %}
27
+ {{ _content }}
28
+ {% endif %}
29
+ {% if _button is not empty %}
30
+ <div class="pb-2">
31
+ {% include '@oe-bcl/bcl-button/button.html.twig' with _button only %}
32
+ </div>
33
+ {% endif %}
34
+ </div>
35
+
36
+ {% endspaceless %}
@@ -10,12 +10,13 @@ Parameters:
10
10
  - "to": (integer) (default: items.length) Item index after which to resume displaying timeline items
11
11
  - title: (string) (default: "")
12
12
  - title_tag: (string) (default: "h2")
13
+ - title_attributes (drupal attrs)
13
14
  - "items" (array) (default: []):
14
15
  - "id": (string) (default: '')
15
16
  - "label": (string) (default: '')
16
17
  - "title": (string) (default: '')
17
18
  - "content": (block) (default: '')
18
- - "icons_path" (string) (default: ''): file containing the svg icons
19
+ - "icon_path" (string) (default: ''): file containing the svg icons
19
20
  #}
20
21
 
21
22
  {# Internal properties #}
@@ -23,8 +24,9 @@ Parameters:
23
24
  {% set _id = id|default(random(1000)) %}
24
25
  {% set _title = title|default('') %}
25
26
  {% set _title_tag = title_tag|default('h2') %}
27
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
26
28
  {% set _items = items|default([]) %}
27
- {% set _icons_path = icons_path|default('') %}
29
+ {% set _icon_path = icon_path|default('') %}
28
30
  {% set _toggle_collapsed = toggle_collapsed|default('') %}
29
31
  {% set _toggle_expanded = toggle_expanded|default('') %}
30
32
  {% set _hide_from = hide.from|default(items|length) %}
@@ -57,10 +59,11 @@ Parameters:
57
59
  {% endif %}
58
60
 
59
61
  {% if _title is not empty %}
60
- {% set _title_classes = 'fw-bold mb-4' %}
61
- <{{ _title_tag }} class="{{ _title_classes }}">
62
- {{- _title -}}
63
- </{{ _title_tag }}>
62
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
63
+ title: _title,
64
+ title_tag: _title_tag,
65
+ attributes: _title_attributes,
66
+ } only %}
64
67
  {% endif %}
65
68
 
66
69
  {# Print the result #}
@@ -100,7 +103,7 @@ Parameters:
100
103
  {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
101
104
  name: 'chevron-down',
102
105
  size: 'fluid',
103
- path: _icons_path,
106
+ path: _icon_path,
104
107
  attributes: create_attribute().addClass('ms-2-5'),
105
108
  } only %}
106
109
  </button>
@@ -4,6 +4,7 @@
4
4
  - picture (object) format: {
5
5
  - "path" (string) (default: '')
6
6
  - "alt" (string) (default: '')
7
+ - "classes": (string) (default: '')
7
8
  }
8
9
  - name (object) format: {
9
10
  - "text" (string) (default: '')
@@ -12,25 +13,31 @@
12
13
  - infos (array of strings) (default: [])
13
14
  #}
14
15
 
16
+ {% set _picture_classes = "rounded-pill" %}
17
+
15
18
  {% if attributes is empty %}
16
19
  {% set attributes = create_attribute() %}
17
20
  {% endif %}
18
21
 
19
22
  {% set attributes = attributes.addClass(["d-flex", "mb-3"]) %}
20
23
 
24
+ {% if picture is not empty and picture.classes is not empty %}
25
+ {% set _picture_classes = _picture_classes ~ ' ' ~ picture.classes %}
26
+ {% endif %}
27
+
21
28
  <div
22
29
  {{ attributes }}
23
30
  >
24
31
  <div class="flex-shrink-0">
25
32
  <img
26
- class="rounded-pill"
33
+ class="{{ _picture_classes }}"
27
34
  src="{{ picture.path }}"
28
35
  alt="{{ picture.alt }}"
29
36
  >
30
37
  </div>
31
38
  <div class="flex-grow-1 ms-3">
32
39
  {% if name.link is not empty %}
33
- <a href="{{ name.link }}" class="fs-5 text-underline-hover mb-0">{{ name.text }}</a>
40
+ <a href="{{ name.link }}" class="fs-5 standalone mb-0">{{ name.text }}</a>
34
41
  {% else %}
35
42
  <p class="fs-5 mb-0 text-primary">{{ name.text }}</p>
36
43
  {% endif %}
@@ -1,16 +1,6 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
2
2
 
3
3
  {% block content %}
4
- <div class="row">
5
- <div class="col-12 col-md-10">
6
- {% include '@oe-bcl/bcl-card/card.html.twig' with user only %}
7
- </div>
8
- <div class="col-12 col-md-2 text-end">
9
- <div class="d-grid d-md-block">
10
- {% include '@oe-bcl/bcl-button/button.html.twig' with edit_button only %}
11
- </div>
12
- </div>
13
- </div>
14
4
  <div class="my-3">
15
5
  <h3 class="fw-bold mb-4">Personal information</h3>
16
6
  <div class="row">