@openeuropa/bcl-twig-templates 0.26.0 → 0.27.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 (55) hide show
  1. package/package.json +65 -65
  2. package/templates/bcl-accordion/accordion.html.twig +2 -2
  3. package/templates/bcl-alert/alert.html.twig +2 -2
  4. package/templates/bcl-badge/badge.html.twig +2 -2
  5. package/templates/bcl-banner/banner.html.twig +2 -2
  6. package/templates/bcl-base-templates/content-type.html.twig +2 -2
  7. package/templates/bcl-blockquote/blockquote.html.twig +2 -2
  8. package/templates/bcl-breadcrumb/breadcrumb.html.twig +2 -2
  9. package/templates/bcl-button/button.html.twig +2 -2
  10. package/templates/bcl-button-group/button-group.html.twig +2 -2
  11. package/templates/bcl-card/card.html.twig +2 -2
  12. package/templates/bcl-card-layout/card-layout.html.twig +2 -2
  13. package/templates/bcl-carousel/carousel.html.twig +2 -2
  14. package/templates/bcl-content-banner/content-banner.html.twig +2 -2
  15. package/templates/bcl-date-block/date-block.html.twig +2 -2
  16. package/templates/bcl-description-list/description-list.html.twig +87 -85
  17. package/templates/bcl-dropdown/dropdown.html.twig +2 -2
  18. package/templates/bcl-fact-figures/fact-figures.html.twig +2 -2
  19. package/templates/bcl-featured-media/featured-media.html.twig +2 -2
  20. package/templates/bcl-file/file.html.twig +2 -2
  21. package/templates/bcl-footer/footer.html.twig +2 -2
  22. package/templates/bcl-form/form.html.twig +2 -2
  23. package/templates/bcl-form-input/form-input.html.twig +2 -2
  24. package/templates/bcl-gallery/gallery.html.twig +2 -2
  25. package/templates/bcl-header/header.html.twig +2 -2
  26. package/templates/bcl-heading/heading.html.twig +2 -2
  27. package/templates/bcl-icon/icon.html.twig +2 -2
  28. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +2 -2
  29. package/templates/bcl-language-list/language-list-grid.html.twig +2 -2
  30. package/templates/bcl-language-list/language-list.html.twig +2 -2
  31. package/templates/bcl-language-switcher/language-switcher.html.twig +2 -2
  32. package/templates/bcl-link/link.html.twig +2 -2
  33. package/templates/bcl-links-block/links-block.html.twig +2 -2
  34. package/templates/bcl-list-group/list-group.html.twig +2 -2
  35. package/templates/bcl-listing/listing.html.twig +2 -2
  36. package/templates/bcl-modal/modal.html.twig +2 -2
  37. package/templates/bcl-navbar/navbar.html.twig +2 -2
  38. package/templates/bcl-navigation/navigation.html.twig +4 -4
  39. package/templates/bcl-offcanvas/offcanvas.html.twig +2 -2
  40. package/templates/bcl-pagination/pagination.html.twig +2 -2
  41. package/templates/bcl-placeholder/placeholder.html.twig +2 -2
  42. package/templates/bcl-progress/progress.html.twig +2 -2
  43. package/templates/bcl-project/project-lists.html.twig +2 -2
  44. package/templates/bcl-project-status/project-contributions.html.twig +2 -2
  45. package/templates/bcl-project-status/project-status.html.twig +2 -2
  46. package/templates/bcl-recent-activities/recent-activities.html.twig +2 -2
  47. package/templates/bcl-search-form/search-form.html.twig +2 -2
  48. package/templates/bcl-select/select.html.twig +2 -2
  49. package/templates/bcl-spinner/spinner.html.twig +2 -2
  50. package/templates/bcl-subscription-block/subscription-block.html.twig +2 -2
  51. package/templates/bcl-table/table.html.twig +2 -2
  52. package/templates/bcl-textarea/textarea.html.twig +2 -2
  53. package/templates/bcl-timeline/timeline.html.twig +2 -2
  54. package/templates/bcl-toast/toasts.html.twig +2 -2
  55. package/templates/bcl-user/user-compact.html.twig +22 -14
package/package.json CHANGED
@@ -2,75 +2,75 @@
2
2
  "name": "@openeuropa/bcl-twig-templates",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.26.0",
5
+ "version": "0.27.0",
6
6
  "description": "OE Bcl Twig Templates",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "devDependencies": {
11
- "@openeuropa/bcl-accordion": "^0.26.0",
12
- "@openeuropa/bcl-alert": "^0.26.0",
13
- "@openeuropa/bcl-badge": "^0.26.0",
14
- "@openeuropa/bcl-banner": "^0.26.0",
15
- "@openeuropa/bcl-base-templates": "^0.26.0",
16
- "@openeuropa/bcl-blockquote": "^0.26.0",
17
- "@openeuropa/bcl-breadcrumb": "^0.26.0",
18
- "@openeuropa/bcl-button": "^0.26.0",
19
- "@openeuropa/bcl-button-group": "^0.26.0",
20
- "@openeuropa/bcl-card": "^0.26.0",
21
- "@openeuropa/bcl-card-layout": "^0.26.0",
22
- "@openeuropa/bcl-carousel": "^0.26.0",
23
- "@openeuropa/bcl-contact-form": "^0.26.0",
24
- "@openeuropa/bcl-content-banner": "^0.26.0",
25
- "@openeuropa/bcl-date-block": "^0.26.0",
26
- "@openeuropa/bcl-description-list": "^0.26.0",
27
- "@openeuropa/bcl-dropdown": "^0.26.0",
28
- "@openeuropa/bcl-event": "^0.26.0",
29
- "@openeuropa/bcl-fact-figures": "^0.26.0",
30
- "@openeuropa/bcl-featured-media": "^0.26.0",
31
- "@openeuropa/bcl-file": "^0.26.0",
32
- "@openeuropa/bcl-footer": "^0.26.0",
33
- "@openeuropa/bcl-form": "^0.26.0",
34
- "@openeuropa/bcl-form-input": "^0.26.0",
35
- "@openeuropa/bcl-gallery": "^0.26.0",
36
- "@openeuropa/bcl-glossary": "^0.26.0",
37
- "@openeuropa/bcl-group": "^0.26.0",
38
- "@openeuropa/bcl-header": "^0.26.0",
39
- "@openeuropa/bcl-heading": "^0.26.0",
40
- "@openeuropa/bcl-icon": "^0.26.0",
41
- "@openeuropa/bcl-inpage-navigation": "^0.26.0",
42
- "@openeuropa/bcl-landing-page": "^0.26.0",
43
- "@openeuropa/bcl-language-list": "^0.26.0",
44
- "@openeuropa/bcl-language-switcher": "^0.26.0",
45
- "@openeuropa/bcl-link": "^0.26.0",
46
- "@openeuropa/bcl-links-block": "^0.26.0",
47
- "@openeuropa/bcl-list-group": "^0.26.0",
48
- "@openeuropa/bcl-listing": "^0.26.0",
49
- "@openeuropa/bcl-modal": "^0.26.0",
50
- "@openeuropa/bcl-multilingual": "^0.26.0",
51
- "@openeuropa/bcl-navbar": "^0.26.0",
52
- "@openeuropa/bcl-navigation": "^0.26.0",
53
- "@openeuropa/bcl-news": "^0.26.0",
54
- "@openeuropa/bcl-offcanvas": "^0.26.0",
55
- "@openeuropa/bcl-page": "^0.26.0",
56
- "@openeuropa/bcl-pagination": "^0.26.0",
57
- "@openeuropa/bcl-person": "^0.26.0",
58
- "@openeuropa/bcl-placeholder": "^0.26.0",
59
- "@openeuropa/bcl-progress": "^0.26.0",
60
- "@openeuropa/bcl-project": "^0.26.0",
61
- "@openeuropa/bcl-project-status": "^0.26.0",
62
- "@openeuropa/bcl-recent-activities": "^0.26.0",
63
- "@openeuropa/bcl-search": "^0.26.0",
64
- "@openeuropa/bcl-search-form": "^0.26.0",
65
- "@openeuropa/bcl-select": "^0.26.0",
66
- "@openeuropa/bcl-spinner": "^0.26.0",
67
- "@openeuropa/bcl-subscription": "^0.26.0",
68
- "@openeuropa/bcl-subscription-block": "^0.26.0",
69
- "@openeuropa/bcl-table": "^0.26.0",
70
- "@openeuropa/bcl-textarea": "^0.26.0",
71
- "@openeuropa/bcl-timeline": "^0.26.0",
72
- "@openeuropa/bcl-toast": "^0.26.0",
73
- "@openeuropa/bcl-user": "^0.26.0",
11
+ "@openeuropa/bcl-accordion": "^0.27.0",
12
+ "@openeuropa/bcl-alert": "^0.27.0",
13
+ "@openeuropa/bcl-badge": "^0.27.0",
14
+ "@openeuropa/bcl-banner": "^0.27.0",
15
+ "@openeuropa/bcl-base-templates": "^0.27.0",
16
+ "@openeuropa/bcl-blockquote": "^0.27.0",
17
+ "@openeuropa/bcl-breadcrumb": "^0.27.0",
18
+ "@openeuropa/bcl-button": "^0.27.0",
19
+ "@openeuropa/bcl-button-group": "^0.27.0",
20
+ "@openeuropa/bcl-card": "^0.27.0",
21
+ "@openeuropa/bcl-card-layout": "^0.27.0",
22
+ "@openeuropa/bcl-carousel": "^0.27.0",
23
+ "@openeuropa/bcl-contact-form": "^0.27.0",
24
+ "@openeuropa/bcl-content-banner": "^0.27.0",
25
+ "@openeuropa/bcl-date-block": "^0.27.0",
26
+ "@openeuropa/bcl-description-list": "^0.27.0",
27
+ "@openeuropa/bcl-dropdown": "^0.27.0",
28
+ "@openeuropa/bcl-event": "^0.27.0",
29
+ "@openeuropa/bcl-fact-figures": "^0.27.0",
30
+ "@openeuropa/bcl-featured-media": "^0.27.0",
31
+ "@openeuropa/bcl-file": "^0.27.0",
32
+ "@openeuropa/bcl-footer": "^0.27.0",
33
+ "@openeuropa/bcl-form": "^0.27.0",
34
+ "@openeuropa/bcl-form-input": "^0.27.0",
35
+ "@openeuropa/bcl-gallery": "^0.27.0",
36
+ "@openeuropa/bcl-glossary": "^0.27.0",
37
+ "@openeuropa/bcl-group": "^0.27.0",
38
+ "@openeuropa/bcl-header": "^0.27.0",
39
+ "@openeuropa/bcl-heading": "^0.27.0",
40
+ "@openeuropa/bcl-icon": "^0.27.0",
41
+ "@openeuropa/bcl-inpage-navigation": "^0.27.0",
42
+ "@openeuropa/bcl-landing-page": "^0.27.0",
43
+ "@openeuropa/bcl-language-list": "^0.27.0",
44
+ "@openeuropa/bcl-language-switcher": "^0.27.0",
45
+ "@openeuropa/bcl-link": "^0.27.0",
46
+ "@openeuropa/bcl-links-block": "^0.27.0",
47
+ "@openeuropa/bcl-list-group": "^0.27.0",
48
+ "@openeuropa/bcl-listing": "^0.27.0",
49
+ "@openeuropa/bcl-modal": "^0.27.0",
50
+ "@openeuropa/bcl-multilingual": "^0.27.0",
51
+ "@openeuropa/bcl-navbar": "^0.27.0",
52
+ "@openeuropa/bcl-navigation": "^0.27.0",
53
+ "@openeuropa/bcl-news": "^0.27.0",
54
+ "@openeuropa/bcl-offcanvas": "^0.27.0",
55
+ "@openeuropa/bcl-page": "^0.27.0",
56
+ "@openeuropa/bcl-pagination": "^0.27.0",
57
+ "@openeuropa/bcl-person": "^0.27.0",
58
+ "@openeuropa/bcl-placeholder": "^0.27.0",
59
+ "@openeuropa/bcl-progress": "^0.27.0",
60
+ "@openeuropa/bcl-project": "^0.27.0",
61
+ "@openeuropa/bcl-project-status": "^0.27.0",
62
+ "@openeuropa/bcl-recent-activities": "^0.27.0",
63
+ "@openeuropa/bcl-search": "^0.27.0",
64
+ "@openeuropa/bcl-search-form": "^0.27.0",
65
+ "@openeuropa/bcl-select": "^0.27.0",
66
+ "@openeuropa/bcl-spinner": "^0.27.0",
67
+ "@openeuropa/bcl-subscription": "^0.27.0",
68
+ "@openeuropa/bcl-subscription-block": "^0.27.0",
69
+ "@openeuropa/bcl-table": "^0.27.0",
70
+ "@openeuropa/bcl-textarea": "^0.27.0",
71
+ "@openeuropa/bcl-timeline": "^0.27.0",
72
+ "@openeuropa/bcl-toast": "^0.27.0",
73
+ "@openeuropa/bcl-user": "^0.27.0",
74
74
  "copyfiles": "2.4.1",
75
75
  "rimraf": "3.0.2"
76
76
  },
@@ -93,5 +93,5 @@
93
93
  "design-system",
94
94
  "twig"
95
95
  ],
96
- "gitHead": "94d89cc379780cfce06178959194b3bc1b4c5eda"
96
+ "gitHead": "1ab38cd93a2d4c52119fcc6a2f7cc56ceaa95dbf"
97
97
  }
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -97,4 +97,4 @@
97
97
  </div>
98
98
  {% endif %}
99
99
 
100
- {% endspaceless %}
100
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - message (string) (default: '')
@@ -80,4 +80,4 @@
80
80
  {%- endif -%}
81
81
  </div>
82
82
 
83
- {% endspaceless %}
83
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - label (string) (default: '')
@@ -74,4 +74,4 @@
74
74
  </span>
75
75
  {%- endif -%}
76
76
 
77
- {% endspaceless %}
77
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -77,4 +77,4 @@
77
77
  </div>
78
78
  </div>
79
79
 
80
- {% endspaceless %}
80
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -136,4 +136,4 @@
136
136
  {% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
137
137
  {% endif %}
138
138
 
139
- {% endspaceless %}
139
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title (string) (default: '')
@@ -70,4 +70,4 @@
70
70
  {% endif %}
71
71
  </figure>
72
72
 
73
- {% endspaceless %}
73
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - links (array of objects of type link) (default: [])
@@ -58,4 +58,4 @@
58
58
  </nav>
59
59
  {% endif %}
60
60
 
61
- {% endspaceless %}
61
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -110,4 +110,4 @@
110
110
  {%- endif -%}
111
111
  </button>
112
112
 
113
- {% endspaceless %}
113
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - vertical (boolean) (default: false)
@@ -63,4 +63,4 @@
63
63
  </div>
64
64
  {% endif %}
65
65
 
66
- {% endspaceless %}
66
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -273,4 +273,4 @@
273
273
  {% endif %}
274
274
  </article>
275
275
 
276
- {% endspaceless %}
276
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - type (string) (default: 'group')
@@ -84,4 +84,4 @@
84
84
  {% endif %}
85
85
  </div>
86
86
 
87
- {% endspaceless %}
87
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title (string) (default: '')
@@ -176,4 +176,4 @@
176
176
  {% endif %}
177
177
  </div>
178
178
 
179
- {% endspaceless %}
179
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -118,4 +118,4 @@
118
118
  </div>
119
119
  </div>
120
120
 
121
- {% endspaceless %}
121
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -60,4 +60,4 @@
60
60
  </span>
61
61
  </time>
62
62
 
63
- {% endspaceless %}
63
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -71,115 +71,117 @@
71
71
  <div
72
72
  {{ attributes }}
73
73
  >
74
+ <dl>
74
75
  {% for _item in _items %}
75
76
  {% if loop.last and _variant != 'horizontal' %}
76
77
  {% set _item_classes = '' %}
77
78
  {% endif %}
78
79
  {% if _item.term is not empty %}
79
- <dl
80
- {% if _item_classes is not empty %}
81
- class="{{ _item_classes }}"
82
- {% endif %}
83
- >
84
- {% if _item.term is iterable %}
85
- <dt>
86
- {% for _term in _item.term %}
87
- {%- if _item.term|length > 1 -%}
88
- <div
89
- {% if _variant == 'horizontal' and _term.icon is not empty %}
90
- class="d-flex"
91
- {% endif %}
80
+ <div
81
+ {% if _item_classes is not empty %}
82
+ class="{{ _item_classes }}"
83
+ {% endif %}
84
+ >
85
+ {% if _item.term is iterable %}
86
+ <dt>
87
+ {% for _term in _item.term %}
88
+ {%- if _item.term|length > 1 -%}
89
+ <div
90
+ {% if _variant == 'horizontal' and _term.icon is not empty %}
91
+ class="d-flex"
92
+ {% endif %}
93
+ >
94
+ {%- endif -%}
95
+ {%- if _term.icon is not empty -%}
96
+ {% set _icon_classes = ["me-2"] %}
97
+ {% if _variant == 'horizontal' %}
98
+ {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
99
+ {% endif %}
100
+ {% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
101
+ attributes: create_attribute().addClass(_icon_classes)
102
+ }) only %}
103
+ <p class="mb-0 d-inline-block">{{ _term.label }}</p>
104
+ {%- elseif _term.color is not empty -%}
105
+ <div class="d-flex align-items-center">
106
+ <span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
107
+ </div>
108
+ {%- else -%}
109
+ {{- _term.label -}}
110
+ {%- endif -%}
111
+ {% if _item.term|length > 1 %}
112
+ </div>
113
+ {% endif %}
114
+ {% endfor %}
115
+ </dt>
116
+ {% else %}
117
+ <dt
118
+ {% if _variant == 'horizontal' and _item.term.icon is not empty %}
119
+ class="d-flex"
120
+ {% endif %}
92
121
  >
93
- {%- endif -%}
94
- {%- if _term.icon is not empty -%}
122
+ {%- if _item.term.icon is not empty -%}
95
123
  {% set _icon_classes = ["me-2"] %}
96
124
  {% if _variant == 'horizontal' %}
97
125
  {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
98
126
  {% endif %}
99
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
127
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
100
128
  attributes: create_attribute().addClass(_icon_classes)
101
- }) only %}
102
- <p class="mb-0 d-inline-block">{{ _term.label }}</p>
103
- {%- elseif _term.color is not empty -%}
129
+ }) only -%}
130
+ <p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
131
+ {%- elseif _item.term.color is not empty -%}
104
132
  <div class="d-flex align-items-center">
105
- <span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
133
+ <span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
106
134
  </div>
107
135
  {%- else -%}
108
- {{- _term.label -}}
136
+ {{- _item.term.label -}}
109
137
  {%- endif -%}
110
- {% if _item.term|length > 1 %}
111
- </div>
138
+ </dt>
112
139
  {% endif %}
113
- {% endfor %}
114
- </dt>
115
- {% else %}
116
- <dt
117
- {% if _variant == 'horizontal' and _item.term.icon is not empty %}
118
- class="d-flex"
119
- {% endif %}
120
- >
121
- {%- if _item.term.icon is not empty -%}
122
- {% set _icon_classes = ["me-2"] %}
123
- {% if _variant == 'horizontal' %}
124
- {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
125
- {% endif %}
126
- {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
127
- attributes: create_attribute().addClass(_icon_classes)
128
- }) only -%}
129
- <p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
130
- {%- elseif _item.term.color is not empty -%}
131
- <div class="d-flex align-items-center">
132
- <span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
133
- </div>
134
- {%- else -%}
135
- {{- _item.term.label -}}
136
- {%- endif -%}
137
- </dt>
138
140
  {% endif %}
139
- {% endif %}
140
- {% if _item.definition is not empty %}
141
- {% if _item.definition is iterable %}
142
- {% if _variant == 'horizontal' %}
141
+ {% if _item.definition is not empty %}
142
+ {% if _item.definition is iterable %}
143
+ {% if _variant == 'horizontal' %}
144
+ <dd
145
+ {% if _bordered %}
146
+ class="mb-0"
147
+ {% endif %}
148
+ >
149
+ {% endif %}
150
+ {% for _definition in _item.definition %}
151
+ {% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
152
+ {%- if _definition.button is defined -%}
153
+ {% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
154
+ {%- elseif _definition.link is defined %}
155
+ {% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
156
+ {%- else -%}
157
+ {%- if _definition.icon is defined -%}
158
+ {%- set _icon_classes = ["me-2"] -%}
159
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
160
+ attributes: create_attribute().addClass(_icon_classes)
161
+ }) only -%}
162
+ <p class="mb-0 d-inline-block">{{ _definition.label }}</p>
163
+ {%- else -%}
164
+ {{- _definition.label -}}
165
+ {%- endif -%}
166
+ {%- endif -%}
167
+ {% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
168
+ {% endfor %}
169
+ {% if _variant == 'horizontal' %}
170
+ </dd>
171
+ {% endif %}
172
+ {% else %}
143
173
  <dd
144
174
  {% if _bordered %}
145
175
  class="mb-0"
146
176
  {% endif %}
147
177
  >
148
- {% endif %}
149
- {% for _definition in _item.definition %}
150
- {% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
151
- {%- if _definition.button is defined -%}
152
- {% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
153
- {%- elseif _definition.link is defined %}
154
- {% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
155
- {%- else -%}
156
- {%- if _definition.icon is defined -%}
157
- {%- set _icon_classes = ["me-2"] -%}
158
- {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
159
- attributes: create_attribute().addClass(_icon_classes)
160
- }) only -%}
161
- <p class="mb-0 d-inline-block">{{ _definition.label }}</p>
162
- {%- else -%}
163
- {{- _definition.label -}}
164
- {%- endif -%}
165
- {%- endif -%}
166
- {% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
167
- {% endfor %}
168
- {% if _variant == 'horizontal' %}
178
+ {%- block definition _item.definition -%}
169
179
  </dd>
170
180
  {% endif %}
171
- {% else %}
172
- <dd
173
- {% if _bordered %}
174
- class="mb-0"
175
- {% endif %}
176
- >
177
- {%- block definition _item.definition -%}
178
- </dd>
179
- {% endif %}
180
- </dl>
181
+ </div>
181
182
  {% endif %}
182
183
  {% endfor %}
184
+ </dl>
183
185
  </div>
184
186
 
185
- {% endspaceless %}
187
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - id (string) (default: 'dropdown-' random(1000))
@@ -127,4 +127,4 @@
127
127
  </div>
128
128
  {% endif %}
129
129
 
130
- {% endspaceless %}
130
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -124,4 +124,4 @@
124
124
  </div>
125
125
  </div>
126
126
 
127
- {% endspaceless %}
127
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - with_text (boolean) (default: false)
@@ -150,4 +150,4 @@
150
150
  </div>
151
151
  {% endif %}
152
152
 
153
- {% endspaceless %}
153
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -221,4 +221,4 @@
221
221
  {% endif %}
222
222
  </div>
223
223
 
224
- {% endspaceless %}
224
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - variant (string) (default: 'neutral')
@@ -86,4 +86,4 @@
86
86
  </div>
87
87
  </footer>
88
88
 
89
- {% endspaceless %}
89
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -147,4 +147,4 @@
147
147
  {% endif %}
148
148
  </form>
149
149
 
150
- {% endspaceless %}
150
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -180,4 +180,4 @@
180
180
  </div>
181
181
  {% endif %}
182
182
 
183
- {% endspaceless %}
183
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -204,4 +204,4 @@ Parameters:
204
204
 
205
205
  {% endif %}
206
206
 
207
- {% endspaceless %}
207
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - variant (string) (default: 'neutral')
@@ -110,4 +110,4 @@
110
110
  {% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
111
111
  {% endif %}
112
112
 
113
- {% endspaceless %}
113
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title (string) (default: '')
@@ -37,4 +37,4 @@
37
37
  </{{ _title_tag }}>
38
38
  {% endif -%}
39
39
 
40
- {% endspaceless %}
40
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - name (string) (default: '')
@@ -32,4 +32,4 @@
32
32
  <use xlink:href="{{ _path ~ "#" ~ _name }}"/>
33
33
  </svg>
34
34
 
35
- {% endspaceless %}
35
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -41,4 +41,4 @@ Parameters:
41
41
  } only %}
42
42
  </nav>
43
43
 
44
- {% endspaceless %}
44
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -65,4 +65,4 @@
65
65
  {% endif %}
66
66
  </div>
67
67
 
68
- {% endspaceless %}
68
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - overlay (boolean) (default: false)
@@ -108,4 +108,4 @@
108
108
  </div>
109
109
  {% endif %}
110
110
 
111
- {% endspaceless %}
111
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - id (string) (default: collapse-{random number 0-1000}) - collapse custom id - optional
@@ -47,4 +47,4 @@
47
47
  </div>
48
48
  </div>
49
49
 
50
- {% endspaceless %}
50
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - label (string) (default: '')
@@ -86,4 +86,4 @@
86
86
  {%- endif -%}
87
87
  </a>
88
88
 
89
- {% endspaceless %}
89
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -73,4 +73,4 @@
73
73
  {% endif %}
74
74
  </div>
75
75
 
76
- {% endspaceless %}
76
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - flush (boolean) (default: false)
@@ -117,4 +117,4 @@
117
117
  </div>
118
118
  {% endif %}
119
119
 
120
- {% endspaceless %}
120
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -196,4 +196,4 @@
196
196
  {% endif %}
197
197
  </div>
198
198
 
199
- {% endspaceless %}
199
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - size (string) (sm, lg, xl, fullscreen) default('')
@@ -78,4 +78,4 @@
78
78
  </div>
79
79
  </div>
80
80
 
81
- {% endspaceless %}
81
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - collapse_id (string) (default: '')
@@ -106,4 +106,4 @@
106
106
  </div>
107
107
  </nav>
108
108
 
109
- {% endspaceless %}
109
+ {% endapply %}
@@ -1,5 +1,5 @@
1
1
  {% import _self as navigation %}
2
- {% spaceless %}
2
+ {% apply spaceless %}
3
3
 
4
4
  {# Parameters:
5
5
  - id (string) (default: '')
@@ -27,7 +27,7 @@
27
27
 
28
28
  {# Define main macro #}
29
29
  {% macro render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) %}
30
- {% spaceless %}
30
+ {% apply spaceless %}
31
31
  {% import _self as navigation %}
32
32
 
33
33
  {% set _id = id|default('') %}
@@ -171,9 +171,9 @@
171
171
  {%- endblock -%}
172
172
  </div>
173
173
  {% endif %}
174
- {% endspaceless %}
174
+ {% endapply %}
175
175
  {% endmacro %}
176
176
 
177
177
  {{ navigation.render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) }}
178
178
 
179
- {% endspaceless %}
179
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -115,4 +115,4 @@
115
115
  {%- endif -%}
116
116
  </div>
117
117
 
118
- {% endspaceless %}
118
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - size (string) (default: '')
@@ -271,4 +271,4 @@
271
271
  </ul>
272
272
  </nav>
273
273
 
274
- {% endspaceless %}
274
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - width (int) (default: 0) - between 0-100
@@ -41,4 +41,4 @@
41
41
  </p>
42
42
  {% endif %}
43
43
 
44
- {% endspaceless %}
44
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - progress (int) (default: 0)
@@ -70,4 +70,4 @@
70
70
  <small class="form-text text-muted progress-bar-message">{{ _message }}</small>
71
71
  {% endif %}
72
72
 
73
- {% endspaceless %}
73
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
 
4
4
  {#
@@ -67,4 +67,4 @@
67
67
  {% endif %}
68
68
  </div>
69
69
 
70
- {% endspaceless %}
70
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - corporate_contributions (string) (default: '') // value every 5 percent
@@ -53,4 +53,4 @@
53
53
  </div>
54
54
  </div>
55
55
 
56
- {% endspaceless %}
56
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - status (string) (default: 'planned')
@@ -97,4 +97,4 @@
97
97
 
98
98
 
99
99
 
100
- {% endspaceless %}
100
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - activities (array of custom object) (default: [])
@@ -60,4 +60,4 @@
60
60
  {% endif %}
61
61
  </div>
62
62
 
63
- {% endspaceless %}
63
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - pill (boolean) (default: false)
@@ -50,4 +50,4 @@
50
50
  </div>
51
51
  </form>
52
52
 
53
- {% endspaceless %}
53
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -167,4 +167,4 @@
167
167
  </div>
168
168
  {% endif %}
169
169
 
170
- {% endspaceless %}
170
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - type (string) (default: 'border')
@@ -37,4 +37,4 @@
37
37
  {% endif %}
38
38
  </div>
39
39
 
40
- {% endspaceless %}
40
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
@@ -35,4 +35,4 @@
35
35
  {% endif %}
36
36
  </div>
37
37
 
38
- {% endspaceless %}
38
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - striped (boolean) (default: false)
@@ -192,4 +192,4 @@
192
192
  </div>
193
193
  {% endif %}
194
194
 
195
- {% endspaceless %}
195
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -146,4 +146,4 @@
146
146
  {% if _floating or _horizontal %}
147
147
  </div>
148
148
  {% endif %}
149
- {% endspaceless %}
149
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -117,4 +117,4 @@ Parameters:
117
117
  {% endif %}
118
118
  </ol>
119
119
 
120
- {% endspaceless %}
120
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {#
4
4
  Parameters:
@@ -119,4 +119,4 @@
119
119
  </div>
120
120
  {% endif %}
121
121
 
122
- {% endspaceless %}
122
+ {% endapply %}
@@ -1,4 +1,4 @@
1
- {% spaceless %}
1
+ {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
4
  - picture (object) format: {
@@ -13,6 +13,9 @@
13
13
  - infos (array of strings) (default: [])
14
14
  #}
15
15
 
16
+ {% set _infos = infos|default([]) %}
17
+ {% set _name = name|default({}) %}
18
+ {% set _picture = picture|default({}) %}
16
19
  {% set _picture_classes = 'rounded-pill' %}
17
20
  {% set _classes = ['bcl-user-compact', 'd-flex', 'mb-3'] %}
18
21
 
@@ -22,8 +25,8 @@
22
25
 
23
26
  {% set attributes = attributes.addClass(_classes) %}
24
27
 
25
- {% if picture is not empty and picture.classes is not empty %}
26
- {% set _picture_classes = _picture_classes ~ ' ' ~ picture.classes %}
28
+ {% if _picture is not empty and _picture.classes is not empty %}
29
+ {% set _picture_classes = _picture_classes ~ ' ' ~ _picture.classes %}
27
30
  {% endif %}
28
31
 
29
32
  <div
@@ -32,22 +35,27 @@
32
35
  <div class="flex-shrink-0">
33
36
  <img
34
37
  class="{{ _picture_classes }}"
35
- src="{{ picture.path }}"
36
- alt="{{ picture.alt }}"
38
+ src="{{ _picture.path }}"
39
+ alt="{{ _picture.alt }}"
37
40
  >
38
41
  </div>
39
42
  <div class="flex-grow-1 ms-3">
40
- {% if name.link is not empty %}
41
- <a href="{{ name.link }}" class="fs-5 standalone mb-0">{{ name.text }}</a>
42
- {% else %}
43
- <p class="fs-5 mb-0 text-primary">{{ name.text }}</p>
44
- {% endif %}
43
+ {% if _name.link is not empty %}
44
+ <a href="{{ _name.link }}" class="fs-5 standalone mb-0">{{ _name.text }}</a>
45
+ {% else %}
46
+ <p class="fs-5 mb-0 text-primary">{{ _name.text }}</p>
47
+ {% endif %}
48
+
49
+ {% if _infos is not empty %}
45
50
  <div class="d-flex flex-wrap">
46
- {% for info in infos %}
47
- <span class="text-muted text-nowrap{{ loop.last ? '' :' me-4-5'}}">{{ info }}</span>
48
- {% endfor %}
51
+ {% for _info in _infos %}
52
+ {% if _info is not empty %}
53
+ <span class="text-muted text-nowrap{{ loop.last ? '' :' me-4-5'}}">{{ _info }}</span>
54
+ {% endif %}
55
+ {% endfor %}
49
56
  </div>
57
+ {% endif %}
50
58
  </div>
51
59
  </div>
52
60
 
53
- {% endspaceless %}
61
+ {% endapply %}