@openeuropa/bcl-theme-default 0.4230.202512021730 → 0.4360.202601141610

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 (109) hide show
  1. package/css/oe-bcl-ckeditor5.min.css +1 -1
  2. package/css/oe-bcl-ckeditor5.min.css.map +1 -1
  3. package/css/oe-bcl-default.css +61 -48
  4. package/css/oe-bcl-default.css.map +1 -1
  5. package/css/oe-bcl-default.min.css +1 -1
  6. package/css/oe-bcl-default.min.css.map +1 -1
  7. package/js/oe-bcl-default.bundle.js +112 -1
  8. package/js/oe-bcl-default.bundle.js.map +1 -1
  9. package/js/oe-bcl-default.bundle.min.js +1 -1
  10. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  11. package/js/oe-bcl-default.esm.js +111 -1
  12. package/js/oe-bcl-default.esm.js.map +1 -1
  13. package/js/oe-bcl-default.esm.min.js +1 -1
  14. package/js/oe-bcl-default.esm.min.js.map +1 -1
  15. package/js/oe-bcl-default.umd.js +112 -1
  16. package/js/oe-bcl-default.umd.js.map +1 -1
  17. package/js/oe-bcl-default.umd.min.js +1 -1
  18. package/js/oe-bcl-default.umd.min.js.map +1 -1
  19. package/package.json +5 -5
  20. package/src/js/header/header.js +91 -0
  21. package/src/js/index.esm.js +2 -0
  22. package/src/js/index.umd.js +2 -0
  23. package/src/js/mega-menu/mega-menu.js +57 -0
  24. package/src/scss/_header.scss +6 -2
  25. package/src/scss/_mega-menu.scss +57 -58
  26. package/src/scss/base/_colors.scss +1 -0
  27. package/templates/bcl-accordion/accordion.html.twig +42 -43
  28. package/templates/bcl-alert/alert.html.twig +18 -18
  29. package/templates/bcl-badge/badge.html.twig +11 -12
  30. package/templates/bcl-banner/banner.html.twig +34 -34
  31. package/templates/bcl-base-templates/content-type.html.twig +63 -64
  32. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  33. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  34. package/templates/bcl-blockquote/blockquote.html.twig +17 -17
  35. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
  36. package/templates/bcl-button/button.html.twig +24 -24
  37. package/templates/bcl-button-group/button-group.html.twig +25 -26
  38. package/templates/bcl-card/card.html.twig +98 -98
  39. package/templates/bcl-card-layout/card-layout.html.twig +34 -34
  40. package/templates/bcl-carousel/carousel.html.twig +64 -64
  41. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  42. package/templates/bcl-content-banner/content-banner.html.twig +37 -37
  43. package/templates/bcl-date-block/date-block.html.twig +26 -26
  44. package/templates/bcl-description-list/description-list-details.html.twig +6 -6
  45. package/templates/bcl-description-list/description-list-title.html.twig +11 -11
  46. package/templates/bcl-description-list/description-list.html.twig +44 -45
  47. package/templates/bcl-dropdown/dropdown.html.twig +48 -49
  48. package/templates/bcl-event/event.html.twig +7 -7
  49. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
  50. package/templates/bcl-featured-media/featured-media.html.twig +42 -43
  51. package/templates/bcl-file/file-translations.html.twig +29 -29
  52. package/templates/bcl-file/file.html.twig +46 -46
  53. package/templates/bcl-footer/footer.html.twig +31 -31
  54. package/templates/bcl-form/form.html.twig +70 -70
  55. package/templates/bcl-form-input/form-input.html.twig +57 -58
  56. package/templates/bcl-gallery/gallery-item.html.twig +20 -20
  57. package/templates/bcl-gallery/gallery.html.twig +62 -63
  58. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  59. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  60. package/templates/bcl-group/group-landing.html.twig +69 -69
  61. package/templates/bcl-group/group.html.twig +19 -19
  62. package/templates/bcl-header/header.html.twig +71 -79
  63. package/templates/bcl-heading/heading.html.twig +13 -14
  64. package/templates/bcl-icon/icon.html.twig +10 -10
  65. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
  66. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  67. package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
  68. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  69. package/templates/bcl-language-list/language-list.html.twig +33 -34
  70. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
  71. package/templates/bcl-link/link.html.twig +24 -24
  72. package/templates/bcl-links-block/links-block.html.twig +29 -30
  73. package/templates/bcl-list-group/list-group.html.twig +43 -44
  74. package/templates/bcl-listing/listing.html.twig +88 -88
  75. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
  76. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
  77. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
  78. package/templates/bcl-modal/modal.html.twig +17 -17
  79. package/templates/bcl-navbar/navbar.html.twig +35 -35
  80. package/templates/bcl-navigation/navigation.html.twig +106 -106
  81. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
  82. package/templates/bcl-page/page.html.twig +27 -27
  83. package/templates/bcl-pagination/pagination-item.html.twig +22 -23
  84. package/templates/bcl-pagination/pagination.html.twig +59 -59
  85. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
  86. package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
  87. package/templates/bcl-person/person.html.twig +12 -12
  88. package/templates/bcl-placeholder/placeholder.html.twig +14 -15
  89. package/templates/bcl-progress/progress.html.twig +16 -17
  90. package/templates/bcl-project/project-lists.html.twig +25 -25
  91. package/templates/bcl-project/project.html.twig +35 -35
  92. package/templates/bcl-project-status/project-contributions.html.twig +25 -25
  93. package/templates/bcl-project-status/project-status.html.twig +32 -34
  94. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
  95. package/templates/bcl-search/search.html.twig +12 -12
  96. package/templates/bcl-search-form/search-form.html.twig +21 -21
  97. package/templates/bcl-select/select.html.twig +52 -53
  98. package/templates/bcl-spinner/spinner.html.twig +10 -10
  99. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  100. package/templates/bcl-subscription/subscription.html.twig +3 -3
  101. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
  102. package/templates/bcl-table/table.html.twig +61 -62
  103. package/templates/bcl-textarea/textarea.html.twig +44 -44
  104. package/templates/bcl-timeline/timeline-item.html.twig +12 -12
  105. package/templates/bcl-timeline/timeline.html.twig +42 -42
  106. package/templates/bcl-toasts/toasts.html.twig +56 -57
  107. package/templates/bcl-user/user-compact.html.twig +24 -24
  108. package/templates/bcl-user/user-terms.html.twig +6 -6
  109. package/templates/bcl-user/user.html.twig +117 -117
@@ -33,7 +33,7 @@
33
33
  - attributes (drupal attrs)
34
34
  #}
35
35
 
36
- {% set _id = id|default('') %}
36
+ {%- set _id = id|default('') %}
37
37
  {% set _label = label|default('') %}
38
38
  {% set _label_extra_classes = label_extra_classes|default('') %}
39
39
  {% set _hidden_label = hidden_label ?? false %}
@@ -50,59 +50,59 @@
50
50
  {% set _aria_label = aria_label|default('') %}
51
51
  {% set _clean_class = clean_class ?? false %}
52
52
 
53
- {% set _classes = ['form-select'] %}
53
+ {%- set _classes = ['form-select'] %}
54
54
  {% set _label_class = 'form-label' %}
55
55
 
56
- {% if _clean_class %}
57
- {% set _classes = [] %}
56
+ {%- if _clean_class %}
57
+ {%- set _classes = [] %}
58
58
  {% endif %}
59
59
 
60
- {% if _invalid %}
61
- {% set _classes = _classes|merge(['is-invalid']) %}
60
+ {%- if _invalid %}
61
+ {%- set _classes = _classes|merge(['is-invalid']) %}
62
62
  {% endif %}
63
63
 
64
- {% if _valid %}
65
- {% set _classes = _classes|merge(['is-valid']) %}
64
+ {%- if _valid %}
65
+ {%- set _classes = _classes|merge(['is-valid']) %}
66
66
  {% endif %}
67
67
 
68
- {% if attributes is empty %}
69
- {% set attributes = create_attribute() %}
68
+ {%- if attributes is empty %}
69
+ {%- set attributes = create_attribute() %}
70
70
  {% endif %}
71
71
 
72
- {% if _label_extra_classes is not empty %}
73
- {% set _label_class = _label_class ~ ' ' ~ _label_extra_classes %}
72
+ {%- if _label_extra_classes is not empty %}
73
+ {%- set _label_class = _label_class ~ ' ' ~ _label_extra_classes %}
74
74
  {% endif %}
75
75
 
76
- {% if _aria_label is not empty %}
77
- {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
76
+ {%- if _aria_label is not empty %}
77
+ {%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
78
78
  {% endif %}
79
79
 
80
- {% if _id is not empty %}
81
- {% set attributes = attributes.setAttribute('id', _id) %}
80
+ {%- if _id is not empty %}
81
+ {%- set attributes = attributes.setAttribute('id', _id) %}
82
82
  {% endif %}
83
83
 
84
- {% if _disabled %}
85
- {% set attributes = attributes.setAttribute('disabled', true) %}
84
+ {%- if _disabled %}
85
+ {%- set attributes = attributes.setAttribute('disabled', true) %}
86
86
  {% endif %}
87
87
 
88
- {% if _multiple %}
89
- {% set attributes = attributes.setAttribute('multiple', true) %}
88
+ {%- if _multiple %}
89
+ {%- set attributes = attributes.setAttribute('multiple', true) %}
90
90
  {% endif %}
91
91
 
92
- {% if _required %}
93
- {% set attributes = attributes.setAttribute('required', true) %}
92
+ {%- if _required %}
93
+ {%- set attributes = attributes.setAttribute('required', true) %}
94
94
  {% endif %}
95
95
 
96
- {% if _hidden_label %}
97
- {% set _label_class = _label_class ~ ' visually-hidden' %}
96
+ {%- if _hidden_label %}
97
+ {%- set _label_class = _label_class ~ ' visually-hidden' %}
98
98
  {% endif %}
99
99
 
100
- {% if _classes is not empty %}
101
- {% set attributes = attributes.addClass(_classes) %}
100
+ {%- if _classes is not empty %}
101
+ {%- set attributes = attributes.addClass(_classes) %}
102
102
  {% endif %}
103
103
 
104
- {% if _label is not empty %}
105
- {% set _label_block %}
104
+ {%- if _label is not empty %}
105
+ {%- set _label_block -%}
106
106
  <label
107
107
  {% if _id %}
108
108
  for="{{ _id }}"
@@ -111,65 +111,65 @@
111
111
  >
112
112
  {{- label -}}
113
113
  </label>
114
- {% endset %}
114
+ {%- endset %}
115
115
  {% endif %}
116
116
 
117
- {% if _label_block is defined %}
118
- {{ _label_block|raw }}
119
- {% endif %}
117
+ {%- if _label_block is defined %}
118
+ {{- _label_block|raw }}
119
+ {%- endif -%}
120
120
  <select
121
121
  {{ attributes }}
122
122
  >
123
- {% if _options is not empty and _options is iterable %}
124
- {% for _option in _options %}
125
- {% if _option.optgroup is defined %}
123
+ {%- if _options is not empty and _options is iterable %}
124
+ {%- for _option in _options %}
125
+ {%- if _option.optgroup is defined -%}
126
126
  <optgroup label="{{ _option.label }}">
127
- {% if _option.options is not empty and _option.options is iterable %}
128
- {% for _optGroupOption in _option.options %}
127
+ {%- if _option.options is not empty and _option.options is iterable %}
128
+ {%- for _optGroupOption in _option.options -%}
129
129
  <option
130
130
  value="{{ _optGroupOption.value }}"
131
131
  {% if _optGroupOption.selected is defined %}
132
132
  selected
133
133
  {% endif %}
134
- {% if _optGroupOption.disabled %}
134
+ {%- if _optGroupOption.disabled %}
135
135
  disabled
136
136
  {% endif %}
137
137
  >
138
138
  {{- _optGroupOption.label -}}
139
139
  </option>
140
- {% endfor %}
141
- {% endif %}
140
+ {%- endfor %}
141
+ {%- endif -%}
142
142
  </optgroup>
143
- {% else %}
143
+ {%- else -%}
144
144
  <option
145
145
  value="{{ _option.value }}"
146
146
  {% if _option.selected is defined %}
147
147
  selected
148
148
  {% endif %}
149
- {% if _option.disabled %}
149
+ {%- if _option.disabled %}
150
150
  disabled
151
151
  {% endif %}
152
- {% if _option.hidden %}
152
+ {%- if _option.hidden %}
153
153
  hidden
154
154
  {% endif %}
155
155
  >
156
156
  {{- _option.label -}}
157
157
  </option>
158
- {% endif %}
159
- {% endfor %}
160
- {% endif %}
158
+ {%- endif %}
159
+ {%- endfor %}
160
+ {% endif -%}
161
161
  </select>
162
- {% if _invalid_feedback is not empty %}
162
+ {%- if _invalid_feedback is not empty -%}
163
163
  <div class="invalid-feedback">
164
164
  {{- _invalid_feedback -}}
165
165
  </div>
166
- {% endif %}
167
- {% if _valid_feedback is not empty %}
166
+ {%- endif %}
167
+ {% if _valid_feedback is not empty -%}
168
168
  <div class="valid-feedback">
169
169
  {{- _valid_feedback -}}
170
170
  </div>
171
- {% endif %}
172
- {% if _helper_text is not empty %}
171
+ {%- endif %}
172
+ {% if _helper_text is not empty -%}
173
173
  <div
174
174
  class="form-text"
175
175
  {% if _helper_text_id is not empty %}
@@ -177,5 +177,4 @@
177
177
  {% endif %}>
178
178
  {{- _helper_text -}}
179
179
  </div>
180
- {% endif %}
181
-
180
+ {%- endif -%}
@@ -8,30 +8,30 @@
8
8
  - attributes (drupal attrs)
9
9
  #}
10
10
 
11
- {% set _type = type|default('border') %}
11
+ {%- set _type = type|default('border') %}
12
12
  {% set _variant = variant|default('') %}
13
13
  {% set _size = size|default('') %}
14
14
  {% set _assistive_text = assistive_text|default('') %}
15
15
 
16
- {% set _classes = ['spinner-' ~ _type] %}
16
+ {%- set _classes = ['spinner-' ~ _type] %}
17
17
  {% if _size is not empty %}
18
- {% set _classes = _classes|merge(['spinner-' ~ _type ~ '-' ~ _size]) %}
18
+ {%- set _classes = _classes|merge(['spinner-' ~ _type ~ '-' ~ _size]) %}
19
19
  {% endif %}
20
20
  {% if _variant is not empty %}
21
- {% set _classes = _classes|merge(['text-' ~ _variant]) %}
21
+ {%- set _classes = _classes|merge(['text-' ~ _variant]) %}
22
22
  {% endif %}
23
23
 
24
- {% if attributes is empty %}
25
- {% set attributes = create_attribute() %}
24
+ {%- if attributes is empty %}
25
+ {%- set attributes = create_attribute() %}
26
26
  {% endif %}
27
27
 
28
- {% set attributes = attributes.addClass(_classes).setAttribute('role', 'status') %}
28
+ {%- set attributes = attributes.addClass(_classes).setAttribute('role', 'status') -%}
29
29
 
30
30
  <div
31
31
  {{ attributes }}
32
32
  >
33
- {% if _assistive_text is not empty %}
33
+ {%- if _assistive_text is not empty -%}
34
34
  <span class="visually-hidden">{{ _assistive_text }}</span>
35
- {% endif %}
35
+ {%- endif -%}
36
36
  </div>
37
-
37
+ {#--#}
@@ -1,6 +1,6 @@
1
1
  {% extends "@oe-bcl/bcl-modal/modal.html.twig" %}
2
2
 
3
- {# Parameters:
3
+ {#- Parameters:
4
4
  - form: (form object) (default: {})
5
5
  - success_alert: (alert object) (default: {})
6
6
  - error_alert: (alert Object) (default: {})
@@ -10,15 +10,15 @@
10
10
  - messages
11
11
  #}
12
12
 
13
- {% set _form = form|default({}) %}
13
+ {%- set _form = form|default({}) %}
14
14
  {% set _success_alert = success_alert|default({}) %}
15
15
  {% set _error_alert = error_alert|default({}) %}
16
16
 
17
- {% block body %}
18
- {% include '@oe-bcl/bcl-form/form.html.twig' with _form only %}
17
+ {%- block body %}
18
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with _form only %}
19
19
  {% endblock %}
20
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 %}
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
24
  {% endblock %}
@@ -1,10 +1,10 @@
1
1
  {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
3
  {%- block sidebar %}
4
- {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
4
+ {%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
5
  {%- endblock -%}
6
6
 
7
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 %}
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
10
  {%- endblock -%}
@@ -5,31 +5,31 @@
5
5
  - attributes (drupal attrs)
6
6
  #}
7
7
 
8
- {% set _title = title|default('') %}
8
+ {%- set _title = title|default('') %}
9
9
  {% set _content = content|default('') %}
10
10
  {% set _button = button|default({}) %}
11
11
 
12
- {% set _classes = ['bcl-subscription-block', 'text-bg-light', 'px-4-5', 'pt-4', 'pb-4-5'] %}
12
+ {%- set _classes = ['bcl-subscription-block', 'text-bg-light', 'px-4-5', 'pt-4', 'pb-4-5'] %}
13
13
 
14
- {% if attributes is empty %}
15
- {% set attributes = create_attribute() %}
14
+ {%- if attributes is empty %}
15
+ {%- set attributes = create_attribute() %}
16
16
  {% endif %}
17
17
 
18
- {% set attributes = attributes.addClass(_classes) %}
18
+ {%- set attributes = attributes.addClass(_classes) -%}
19
19
 
20
20
  <div
21
21
  {{ attributes }}
22
22
  >
23
- {% if _title is not empty %}
23
+ {%- if _title is not empty -%}
24
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 %}
25
+ {%- endif %}
26
+ {%- if _content is not empty %}
27
+ {{- _content }}
28
+ {%- endif %}
29
+ {%- if _button is not empty -%}
30
30
  <div class="pb-2">
31
- {% include '@oe-bcl/bcl-button/button.html.twig' with _button only %}
31
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _button only -%}
32
32
  </div>
33
- {% endif %}
33
+ {%- endif -%}
34
34
  </div>
35
-
35
+ {#--#}
@@ -44,7 +44,7 @@
44
44
  - attributes (drupal attrs)
45
45
  #}
46
46
 
47
- {% set _striped = striped ?? false %}
47
+ {%- set _striped = striped ?? false %}
48
48
  {% set _hoverable = hoverable ?? false %}
49
49
  {% set _table_responsive = table_responsive|default('') %}
50
50
  {% set _variant = variant|default('') %}
@@ -58,42 +58,42 @@
58
58
  {% set _table_head = table_head|default({}) %}
59
59
  {% set _rows = rows|default([]) %}
60
60
 
61
- {% set _classes = ['table'] %}
61
+ {%- set _classes = ['table'] %}
62
62
  {% if _striped %}
63
- {% set _classes = _classes|merge(['table-striped']) %}
63
+ {%- set _classes = _classes|merge(['table-striped']) %}
64
64
  {% endif %}
65
65
  {% if _hoverable %}
66
- {% set _classes = _classes|merge(['table-hover']) %}
66
+ {%- set _classes = _classes|merge(['table-hover']) %}
67
67
  {% endif %}
68
68
  {% if _alignment is not empty %}
69
- {% set _classes = _classes|merge(['align-' ~ _alignment]) %}
69
+ {%- set _classes = _classes|merge(['align-' ~ _alignment]) %}
70
70
  {% endif %}
71
71
  {% if _variant is not empty %}
72
- {% set _classes = _classes|merge(['table-' ~ _variant]) %}
72
+ {%- set _classes = _classes|merge(['table-' ~ _variant]) %}
73
73
  {% endif %}
74
74
  {% if _small %}
75
- {% set _classes = _classes|merge(['table-sm']) %}
75
+ {%- set _classes = _classes|merge(['table-sm']) %}
76
76
  {% endif %}
77
77
  {% if _border is not empty %}
78
- {% set _classes = _classes|merge(['table-bordered', 'border-' ~ _border]) %}
78
+ {%- set _classes = _classes|merge(['table-bordered', 'border-' ~ _border]) %}
79
79
  {% endif %}
80
80
  {% if _borderless %}
81
- {% set _classes = _classes|merge(['table-borderless']) %}
81
+ {%- set _classes = _classes|merge(['table-borderless']) %}
82
82
  {% endif %}
83
83
 
84
- {% if attributes is empty %}
85
- {% set attributes = create_attribute() %}
84
+ {%- if attributes is empty %}
85
+ {%- set attributes = create_attribute() %}
86
86
  {% endif %}
87
87
 
88
- {% set attributes = attributes.addClass(_classes) %}
88
+ {%- set attributes = attributes.addClass(_classes) %}
89
89
 
90
- {% if _table_responsive is not empty %}
91
- {% set _responsive_class = 'table-responsive' %}
92
- {% if _table_responsive != 'all' %}
93
- {% set _responsive_class = _responsive_class ~ '-' ~ _table_responsive %}
94
- {% endif %}
90
+ {%- if _table_responsive is not empty %}
91
+ {%- set _responsive_class = 'table-responsive' %}
92
+ {%- if _table_responsive != 'all' %}
93
+ {%- set _responsive_class = _responsive_class ~ '-' ~ _table_responsive %}
94
+ {%- endif -%}
95
95
  <div class="{{ _responsive_class }}">
96
- {% endif %}
96
+ {%- endif -%}
97
97
 
98
98
  <table
99
99
  {{ attributes }}
@@ -107,86 +107,85 @@
107
107
  {{- _caption -}}
108
108
  </caption>
109
109
  {%- endif -%}
110
- {% if _table_head is not empty %}
110
+ {% if _table_head is not empty -%}
111
111
  <thead>
112
- {% if _table_head.cells is not empty and _table_head.cells is iterable %}
112
+ {%- if _table_head.cells is not empty and _table_head.cells is iterable -%}
113
113
  <tr>
114
- {% for _cell in _table_head.cells %}
114
+ {%- for _cell in _table_head.cells -%}
115
115
  <td
116
116
  {% if _cell.col_span is not empty %}
117
117
  colspan={{ _cell.col_span }}
118
- {% endif %}
118
+ {%- endif %}
119
119
  >
120
120
  {{- _cell.content -}}
121
121
  </td>
122
- {% endfor %}
122
+ {%- endfor -%}
123
123
  </tr>
124
- {% endif %}
124
+ {%- endif -%}
125
125
  </thead>
126
- {% endif %}
126
+ {%- endif %}
127
127
 
128
- {% if _rows is not empty and _rows is iterable %}
128
+ {%- if _rows is not empty and _rows is iterable -%}
129
129
  <tbody>
130
- {% for _row in _rows %}
131
- {% set _row_class = '' %}
132
- {% if _row.active %}
133
- {% set _row_class = 'table-active' %}
134
- {% endif %}
135
- {% if _row.alignment is not empty %}
136
- {% if _row_class is not empty %}
137
- {% set _row_class = _row_class ~ ' align-' ~ _row.alignment %}
138
- {% else %}
139
- {% set _row_class = 'align-' ~ _row.alignment %}
140
- {% endif %}
141
- {% endif %}
142
- {% if _row.variant is not empty %}
143
- {% if _row_class is not empty %}
144
- {% set _row_class = _row_class ~ ' table-' ~ _row.variant %}
145
- {% else %}
146
- {% set _row_class = 'table-' ~ _row.variant %}
147
- {% endif %}
148
- {% endif %}
130
+ {%- for _row in _rows %}
131
+ {%- set _row_class = '' %}
132
+ {%- if _row.active %}
133
+ {%- set _row_class = 'table-active' %}
134
+ {%- endif %}
135
+ {%- if _row.alignment is not empty %}
136
+ {%- if _row_class is not empty %}
137
+ {%- set _row_class = _row_class ~ ' align-' ~ _row.alignment %}
138
+ {%- else %}
139
+ {%- set _row_class = 'align-' ~ _row.alignment %}
140
+ {%- endif %}
141
+ {%- endif %}
142
+ {%- if _row.variant is not empty %}
143
+ {%- if _row_class is not empty %}
144
+ {%- set _row_class = _row_class ~ ' table-' ~ _row.variant %}
145
+ {%- else %}
146
+ {%- set _row_class = 'table-' ~ _row.variant %}
147
+ {%- endif %}
148
+ {%- endif -%}
149
149
  <tr
150
150
  {% if _row_class is not empty %}
151
151
  class="{{ _row_class }}"
152
152
  {% endif %}
153
153
  >
154
- {% if _row.cells is defined and _row.cells is not empty and _row.cells is iterable %}
155
- {% for _cell in _row.cells %}
154
+ {%- if _row.cells is defined and _row.cells is not empty and _row.cells is iterable %}
155
+ {%- for _cell in _row.cells -%}
156
156
  <td
157
157
  {% if _cell.col_span is defined and _cell.col_span is not empty %}
158
158
  colspan={{ _cell.col_span }}
159
- {% endif %}
159
+ {%- endif %}
160
160
  >
161
161
  {{- _cell.content -}}
162
162
  </td>
163
- {% endfor %}
164
- {% endif %}
163
+ {%- endfor %}
164
+ {%- endif -%}
165
165
  </tr>
166
- {% endfor %}
166
+ {%- endfor -%}
167
167
  </tbody>
168
- {% endif %}
168
+ {%- endif %}
169
169
 
170
- {% if _table_footer is not empty %}
170
+ {%- if _table_footer is not empty -%}
171
171
  <tfoot>
172
- {% if _table_footer.cells is not empty and _table_footer.cells is iterable %}
172
+ {%- if _table_footer.cells is not empty and _table_footer.cells is iterable -%}
173
173
  <tr>
174
- {% for _cell in _table_footer.cells %}
174
+ {%- for _cell in _table_footer.cells -%}
175
175
  <td
176
176
  {% if _cell.col_span is not empty %}
177
177
  colspan={{ _cell.col_span }}
178
- {% endif %}
178
+ {%- endif %}
179
179
  >
180
180
  {{- _cell.content -}}
181
181
  </td>
182
- {% endfor %}
182
+ {%- endfor -%}
183
183
  </tr>
184
- {% endif %}
184
+ {%- endif -%}
185
185
  </tfoot>
186
- {% endif %}
186
+ {%- endif -%}
187
187
  </table>
188
188
 
189
- {% if _table_responsive is not empty %}
189
+ {%- if _table_responsive is not empty -%}
190
190
  </div>
191
- {% endif %}
192
-
191
+ {%- endif -%}