@openeuropa/bcl-theme-default 0.4298.202511051800 → 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 (114) 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 +167 -85
  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/_input.scss +72 -31
  26. package/src/scss/_mega-menu.scss +57 -58
  27. package/src/scss/_multiselect-2.scss +21 -11
  28. package/src/scss/_pagination.scss +1 -0
  29. package/src/scss/_search-form.scss +4 -0
  30. package/src/scss/base/_colors.scss +1 -0
  31. package/src/scss/base/_mixins.scss +12 -0
  32. package/templates/bcl-accordion/accordion.html.twig +42 -46
  33. package/templates/bcl-alert/alert.html.twig +18 -21
  34. package/templates/bcl-badge/badge.html.twig +11 -15
  35. package/templates/bcl-banner/banner.html.twig +34 -37
  36. package/templates/bcl-base-templates/content-type.html.twig +63 -67
  37. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  38. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  39. package/templates/bcl-blockquote/blockquote.html.twig +17 -20
  40. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
  41. package/templates/bcl-button/button.html.twig +24 -27
  42. package/templates/bcl-button-group/button-group.html.twig +25 -29
  43. package/templates/bcl-card/card.html.twig +98 -101
  44. package/templates/bcl-card-layout/card-layout.html.twig +34 -37
  45. package/templates/bcl-carousel/carousel.html.twig +64 -67
  46. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  47. package/templates/bcl-content-banner/content-banner.html.twig +37 -40
  48. package/templates/bcl-date-block/date-block.html.twig +26 -29
  49. package/templates/bcl-description-list/description-list-details.html.twig +6 -9
  50. package/templates/bcl-description-list/description-list-title.html.twig +11 -14
  51. package/templates/bcl-description-list/description-list.html.twig +44 -48
  52. package/templates/bcl-dropdown/dropdown.html.twig +48 -52
  53. package/templates/bcl-event/event.html.twig +7 -7
  54. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
  55. package/templates/bcl-featured-media/featured-media.html.twig +42 -46
  56. package/templates/bcl-file/file-translations.html.twig +29 -32
  57. package/templates/bcl-file/file.html.twig +47 -50
  58. package/templates/bcl-footer/footer.html.twig +31 -34
  59. package/templates/bcl-form/form.html.twig +70 -73
  60. package/templates/bcl-form-input/form-input.html.twig +57 -61
  61. package/templates/bcl-gallery/gallery-item.html.twig +20 -23
  62. package/templates/bcl-gallery/gallery.html.twig +62 -66
  63. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  64. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  65. package/templates/bcl-group/group-landing.html.twig +69 -69
  66. package/templates/bcl-group/group.html.twig +19 -19
  67. package/templates/bcl-header/header.html.twig +71 -82
  68. package/templates/bcl-heading/heading.html.twig +13 -17
  69. package/templates/bcl-icon/icon.html.twig +10 -13
  70. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
  71. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  72. package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
  73. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  74. package/templates/bcl-language-list/language-list.html.twig +33 -37
  75. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
  76. package/templates/bcl-link/link.html.twig +24 -27
  77. package/templates/bcl-links-block/links-block.html.twig +30 -34
  78. package/templates/bcl-list-group/list-group.html.twig +43 -47
  79. package/templates/bcl-listing/listing.html.twig +88 -91
  80. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
  81. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
  82. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
  83. package/templates/bcl-modal/modal.html.twig +21 -23
  84. package/templates/bcl-navbar/navbar.html.twig +35 -38
  85. package/templates/bcl-navigation/navigation.html.twig +105 -110
  86. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
  87. package/templates/bcl-page/page.html.twig +27 -27
  88. package/templates/bcl-pagination/pagination-item.html.twig +22 -26
  89. package/templates/bcl-pagination/pagination.html.twig +59 -62
  90. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
  91. package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
  92. package/templates/bcl-person/person.html.twig +12 -12
  93. package/templates/bcl-placeholder/placeholder.html.twig +14 -18
  94. package/templates/bcl-progress/progress.html.twig +16 -20
  95. package/templates/bcl-project/project-lists.html.twig +25 -29
  96. package/templates/bcl-project/project.html.twig +35 -35
  97. package/templates/bcl-project-status/project-contributions.html.twig +25 -28
  98. package/templates/bcl-project-status/project-status.html.twig +32 -37
  99. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
  100. package/templates/bcl-search/search.html.twig +12 -12
  101. package/templates/bcl-search-form/search-form.html.twig +21 -24
  102. package/templates/bcl-select/select.html.twig +52 -56
  103. package/templates/bcl-spinner/spinner.html.twig +10 -13
  104. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  105. package/templates/bcl-subscription/subscription.html.twig +3 -3
  106. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
  107. package/templates/bcl-table/table.html.twig +61 -65
  108. package/templates/bcl-textarea/textarea.html.twig +44 -47
  109. package/templates/bcl-timeline/timeline-item.html.twig +12 -15
  110. package/templates/bcl-timeline/timeline.html.twig +42 -45
  111. package/templates/bcl-toasts/toasts.html.twig +56 -60
  112. package/templates/bcl-user/user-compact.html.twig +24 -27
  113. package/templates/bcl-user/user-terms.html.twig +6 -6
  114. package/templates/bcl-user/user.html.twig +117 -117
@@ -1,56 +1,53 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - corporate_contributions (string) (default: '') // value every 5 percent
5
3
  - legend (description list object) (default: {})
6
4
  - chart (boolean) (default: false)
7
5
 
8
- Blocks -
6
+ Blocks -
9
7
  project_status_contrib_chart
10
8
  project_status_contrib_legend
11
9
  #}
12
10
 
13
- {% set _corporate_contributions = corporate_contributions|default('') %}
11
+ {%- set _corporate_contributions = corporate_contributions|default('') %}
14
12
  {% set _legend = legend|default({}) %}
15
13
  {% set _chart = chart ?? false %}
16
14
 
17
- {% if attributes is empty %}
18
- {% set attributes = create_attribute() %}
15
+ {%- if attributes is empty %}
16
+ {%- set attributes = create_attribute() %}
19
17
  {% endif %}
20
18
 
21
- {% set attributes = attributes.addClass([
19
+ {%- set attributes = attributes.addClass([
22
20
  'bcl-project-contributions',
23
21
  'border-bottom',
24
22
  'pb-4',
25
23
  'mb-4'
26
- ]) %}
24
+ ]) -%}
27
25
 
28
- <div {{ attributes }}>
26
+ <div {{ attributes }}>{# -#}
29
27
  <div class="row">
30
28
 
31
- {% if _chart %}
29
+ {%- if _chart -%}
32
30
  <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>
31
+ {%- block project_status_contrib_chart -%}
32
+ <div class="circular-progress" data-percentage="{{ _corporate_contributions }}">{# -#}
33
+ <span class="circular-progress-left">{# -#}
34
+ <span class="circular-progress-bar"></span>{# -#}
35
+ </span>{# -#}
36
+ <span class="circular-progress-right">{# -#}
37
+ <span class="circular-progress-bar"></span>{# -#}
38
+ </span>{# -#}
41
39
  </div>
42
- {% endblock %}
40
+ {%- endblock -%}
43
41
  </div>
44
- {% endif %}
42
+ {%- endif %}
45
43
 
46
- {% if _legend is not empty %}
44
+ {%- if _legend is not empty -%}
47
45
  <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 %}
46
+ {%- block project_status_contrib_legend %}
47
+ {%- include '@oe-bcl/bcl-description-list/description-list.html.twig' with _legend only %}
48
+ {%- endblock -%}
51
49
  </div>
52
- {% endif %}
53
- </div>
50
+ {%- endif -%}
51
+ </div>{# -#}
54
52
  </div>
55
-
56
- {% endapply %}
53
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - label (string) (default: '')
5
3
  - status (string) (default: 'planned')
@@ -12,7 +10,7 @@
12
10
  - attributes (drupal attrs)
13
11
  #}
14
12
 
15
- {% set _label = label|default('') %}
13
+ {%- set _label = label|default('') %}
16
14
  {% set _status = status|default('planned') %}
17
15
  {% set _badge = badge|default('') %}
18
16
  {% set _start_date = start_date|default('') %}
@@ -21,79 +19,76 @@
21
19
  {% set _end_label = end_label|default('') %}
22
20
  {% set _progress = progress|default('') %}
23
21
 
24
- {% if attributes is empty %}
25
- {% set attributes = create_attribute() %}
22
+ {%- if attributes is empty %}
23
+ {%- set attributes = create_attribute() %}
26
24
  {% endif %}
27
25
 
28
- {% set attributes = attributes.addClass([
26
+ {%- set attributes = attributes.addClass([
29
27
  'bcl-project-status',
30
28
  'border-bottom',
31
29
  'pb-4',
32
30
  'mb-4'
33
31
  ]) %}
34
32
 
35
- {% set _bgs = {
33
+ {%- set _bgs = {
36
34
  ongoing: 'info',
37
35
  closed: 'dark',
38
36
  planned: 'secondary',
39
37
  } %}
40
- {% set _bg = _bgs[_status]|default('secondary') %}
38
+ {% set _bg = _bgs[_status]|default('secondary') -%}
41
39
 
42
- <div {{ attributes }}>
43
- <div class="row">
40
+ <div {{ attributes }}>{# -#}
41
+ <div class="row">{# -#}
44
42
  <div class="col-12 col-md-3">
45
- {% if _label is not empty %}
43
+ {%- if _label is not empty -%}
46
44
  <p class="fw-bold">{{ _label }}</p>
47
- {% endif %}
45
+ {%- endif %}
48
46
 
49
- {% if _badge is not empty %}
50
- {% include '@oe-bcl/bcl-badge/badge.html.twig' with {
47
+ {%- if _badge is not empty %}
48
+ {%- include '@oe-bcl/bcl-badge/badge.html.twig' with {
51
49
  label: _badge,
52
50
  rounded_pill: true,
53
51
  background: _bg,
54
52
  attributes: create_attribute().addClass(['mb-3', 'mb-md-0']),
55
53
  } only %}
56
- {% endif %}
54
+ {%- endif -%}
57
55
 
58
- </div>
56
+ </div>{# -#}
59
57
 
60
- <div class="col-12 col-md-9">
58
+ <div class="col-12 col-md-9">{# -#}
61
59
  <div class="d-flex justify-content-between">
62
60
 
63
- {% if _start_date is not empty and _start_label is not empty %}
61
+ {%- if _start_date is not empty and _start_label is not empty -%}
64
62
  <p class="fw-bold">
65
- {{- _start_label -}} <br>
63
+ {{- _start_label -}} <br>{# -#}
66
64
  <span class="fw-normal">
67
65
  {{- _start_date -}}
68
- </span>
66
+ </span>{# -#}
69
67
  </p>
70
- {% endif %}
68
+ {%- endif %}
71
69
 
72
- {% if _end_date is not empty and _end_label is not empty %}
70
+ {%- if _end_date is not empty and _end_label is not empty -%}
73
71
  <p class="fw-bold text-end">
74
- {{- _end_label -}} <br>
72
+ {{- _end_label -}} <br>{# -#}
75
73
  <span class="fw-normal">
76
74
  {{- _end_date -}}
77
- </span>
75
+ </span>{# -#}
78
76
  </p>
79
- {% endif %}
77
+ {%- endif -%}
80
78
  </div>
81
79
 
82
- {% if _progress is not empty or _status != 'ongoing' %}
83
- {% if _progress is empty %}
84
- {% set _progress = _status == 'closed' ? 100 : 0 %}
85
- {% endif %}
86
- {% include '@oe-bcl/bcl-progress/progress.html.twig' with {
80
+ {%- if _progress is not empty or _status != 'ongoing' %}
81
+ {%- if _progress is empty %}
82
+ {%- set _progress = _status == 'closed' ? 100 : 0 %}
83
+ {%- endif %}
84
+ {%- include '@oe-bcl/bcl-progress/progress.html.twig' with {
87
85
  variant: _bg,
88
86
  hidden_label: true,
89
87
  progress: _progress,
90
88
  } only %}
91
- {% endif %}
89
+ {%- endif -%}
92
90
 
93
- </div>
94
- </div>
91
+ </div>{# -#}
92
+ </div>{# -#}
95
93
  </div>
96
-
97
-
98
-
99
- {% endapply %}
94
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - activities (object[]) (default: [])
5
3
  format: [
@@ -21,24 +19,24 @@
21
19
  ]
22
20
  #}
23
21
 
24
- {% set _activities = activities|default([]) %}
22
+ {%- set _activities = activities|default([]) %}
25
23
 
26
- {% if attributes is empty %}
27
- {% set attributes = create_attribute() %}
28
- {% endif %}
24
+ {%- if attributes is empty %}
25
+ {%- set attributes = create_attribute() %}
26
+ {% endif -%}
29
27
 
30
- <div
28
+ <div
31
29
  {{ attributes }}
32
30
  >
33
- {% if _activities is not empty and _activities is iterable %}
34
- {% for _activity in _activities %}
31
+ {%- if _activities is not empty and _activities is iterable %}
32
+ {%- for _activity in _activities -%}
35
33
  <div class="d-flex bg-lighter py-3 px-3 px-md-3-5 mb-3-5 rounded-2">
36
- {% if _activity.image is not empty %}
34
+ {%- if _activity.image is not empty -%}
37
35
  <div>
38
36
  {{- _activity.image -}}
39
37
  </div>
40
- {% endif %}
41
- {% if _activity.content is not empty and _activity.meta is not empty %}
38
+ {%- endif %}
39
+ {%- if _activity.content is not empty and _activity.meta is not empty -%}
42
40
  <div>
43
41
  {%- if _activity.content is not empty -%}
44
42
  <p class="mb-2">{{- _activity.content -}}</p>
@@ -56,8 +54,7 @@
56
54
  </div>
57
55
  {%- endif -%}
58
56
  </div>
59
- {% endfor %}
60
- {% endif %}
57
+ {%- endfor %}
58
+ {% endif -%}
61
59
  </div>
62
-
63
- {% endapply %}
60
+ {#--#}
@@ -1,22 +1,22 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
2
2
 
3
3
  {%- block banner %}
4
- {% if banner.search_bar is defined %}
5
- <div class="bg-lighter pt-3 pb-4 pb-lg-3">
6
- <div class="container">
7
- <div class="row">
4
+ {% if banner.search_bar is defined -%}
5
+ <div class="bg-lighter pt-3 pb-4 pb-lg-3">{# -#}
6
+ <div class="container">{# -#}
7
+ <div class="row">{# -#}
8
8
  <div class="col-12 col-lg-3">
9
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
9
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
10
10
  title: main_title,
11
11
  title_tag: "h1",
12
12
  attributes: create_attribute().addClass(['mb-3', 'mb-lg-0']),
13
- } only %}
14
- </div>
13
+ } only -%}
14
+ </div>{# -#}
15
15
  <div class="col-12 col-lg-6 align-self-center">
16
- {% include '@oe-bcl/bcl-search-form/search-form.html.twig' with banner.search_bar only %}
17
- </div>
18
- </div>
19
- </div>
16
+ {%- include '@oe-bcl/bcl-search-form/search-form.html.twig' with banner.search_bar only -%}
17
+ </div>{# -#}
18
+ </div>{# -#}
19
+ </div>{# -#}
20
20
  </div>
21
- {% endif %}
21
+ {%- endif %}
22
22
  {%- endblock -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - pill (boolean) (default: false)
5
3
  - icon (icon Object) (default: {})
@@ -9,45 +7,44 @@
9
7
  ]
10
8
  #}
11
9
 
12
- {% set _pill = pill ?? false %}
10
+ {%- set _pill = pill ?? false %}
13
11
  {% set _icon = icon|default({}) %}
14
12
  {% set _submit = submit|default({}) %}
15
13
  {% set _input = input|default({}) %}
16
14
 
17
- {% set _classes = ['bcl-search-form'] %}
15
+ {%- set _classes = ['bcl-search-form'] %}
18
16
 
19
- {% if _pill %}
20
- {% set _classes = _classes|merge(['rounded']) %}
17
+ {%- if _pill %}
18
+ {%- set _classes = _classes|merge(['rounded']) %}
21
19
  {% endif %}
22
20
 
23
- {% if _submit is not empty %}
24
- {% set _classes = _classes|merge(['submittable']) %}
21
+ {%- if _submit is not empty %}
22
+ {%- set _classes = _classes|merge(['submittable']) %}
25
23
  {% endif %}
26
24
 
27
- {% if _icon is not empty %}
28
- {% set _input = _input|merge({
25
+ {%- if _icon is not empty %}
26
+ {%- set _input = _input|merge({
29
27
  attributes: _input.attributes.addClass("ps-5")
30
28
  }) %}
31
29
  {% endif %}
32
30
 
33
- {% if attributes is empty %}
34
- {% set attributes = create_attribute() %}
31
+ {%- if attributes is empty %}
32
+ {%- set attributes = create_attribute() %}
35
33
  {% endif %}
36
34
 
37
- {% set attributes = attributes.addClass( _classes ) %}
35
+ {%- set attributes = attributes.addClass( _classes ) -%}
38
36
 
39
37
  <form
40
38
  {{ attributes }}
41
- >
39
+ >{# -#}
42
40
  <div class="bcl-search-form__group">
43
- {% if _icon is not empty %}
44
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only %}
45
- {% endif %}
46
- {% include '@oe-bcl/bcl-form-input/form-input.html.twig' with _input only %}
47
- {% if _submit is not empty %}
48
- {% include '@oe-bcl/bcl-button/button.html.twig' with _submit only %}
49
- {% endif %}
50
- </div>
41
+ {%- if _icon is not empty %}
42
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only %}
43
+ {%- endif %}
44
+ {%- include '@oe-bcl/bcl-form-input/form-input.html.twig' with _input only %}
45
+ {%- if _submit is not empty %}
46
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _submit only %}
47
+ {%- endif -%}
48
+ </div>{# -#}
51
49
  </form>
52
-
53
- {% endapply %}
50
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - id (string) (default: '')
@@ -35,7 +33,7 @@
35
33
  - attributes (drupal attrs)
36
34
  #}
37
35
 
38
- {% set _id = id|default('') %}
36
+ {%- set _id = id|default('') %}
39
37
  {% set _label = label|default('') %}
40
38
  {% set _label_extra_classes = label_extra_classes|default('') %}
41
39
  {% set _hidden_label = hidden_label ?? false %}
@@ -52,59 +50,59 @@
52
50
  {% set _aria_label = aria_label|default('') %}
53
51
  {% set _clean_class = clean_class ?? false %}
54
52
 
55
- {% set _classes = ['form-select'] %}
53
+ {%- set _classes = ['form-select'] %}
56
54
  {% set _label_class = 'form-label' %}
57
55
 
58
- {% if _clean_class %}
59
- {% set _classes = [] %}
56
+ {%- if _clean_class %}
57
+ {%- set _classes = [] %}
60
58
  {% endif %}
61
59
 
62
- {% if _invalid %}
63
- {% set _classes = _classes|merge(['is-invalid']) %}
60
+ {%- if _invalid %}
61
+ {%- set _classes = _classes|merge(['is-invalid']) %}
64
62
  {% endif %}
65
63
 
66
- {% if _valid %}
67
- {% set _classes = _classes|merge(['is-valid']) %}
64
+ {%- if _valid %}
65
+ {%- set _classes = _classes|merge(['is-valid']) %}
68
66
  {% endif %}
69
67
 
70
- {% if attributes is empty %}
71
- {% set attributes = create_attribute() %}
68
+ {%- if attributes is empty %}
69
+ {%- set attributes = create_attribute() %}
72
70
  {% endif %}
73
71
 
74
- {% if _label_extra_classes is not empty %}
75
- {% 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 %}
76
74
  {% endif %}
77
75
 
78
- {% if _aria_label is not empty %}
79
- {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
76
+ {%- if _aria_label is not empty %}
77
+ {%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
80
78
  {% endif %}
81
79
 
82
- {% if _id is not empty %}
83
- {% set attributes = attributes.setAttribute('id', _id) %}
80
+ {%- if _id is not empty %}
81
+ {%- set attributes = attributes.setAttribute('id', _id) %}
84
82
  {% endif %}
85
83
 
86
- {% if _disabled %}
87
- {% set attributes = attributes.setAttribute('disabled', true) %}
84
+ {%- if _disabled %}
85
+ {%- set attributes = attributes.setAttribute('disabled', true) %}
88
86
  {% endif %}
89
87
 
90
- {% if _multiple %}
91
- {% set attributes = attributes.setAttribute('multiple', true) %}
88
+ {%- if _multiple %}
89
+ {%- set attributes = attributes.setAttribute('multiple', true) %}
92
90
  {% endif %}
93
91
 
94
- {% if _required %}
95
- {% set attributes = attributes.setAttribute('required', true) %}
92
+ {%- if _required %}
93
+ {%- set attributes = attributes.setAttribute('required', true) %}
96
94
  {% endif %}
97
95
 
98
- {% if _hidden_label %}
99
- {% set _label_class = _label_class ~ ' visually-hidden' %}
96
+ {%- if _hidden_label %}
97
+ {%- set _label_class = _label_class ~ ' visually-hidden' %}
100
98
  {% endif %}
101
99
 
102
- {% if _classes is not empty %}
103
- {% set attributes = attributes.addClass(_classes) %}
100
+ {%- if _classes is not empty %}
101
+ {%- set attributes = attributes.addClass(_classes) %}
104
102
  {% endif %}
105
103
 
106
- {% if _label is not empty %}
107
- {% set _label_block %}
104
+ {%- if _label is not empty %}
105
+ {%- set _label_block -%}
108
106
  <label
109
107
  {% if _id %}
110
108
  for="{{ _id }}"
@@ -113,65 +111,65 @@
113
111
  >
114
112
  {{- label -}}
115
113
  </label>
116
- {% endset %}
114
+ {%- endset %}
117
115
  {% endif %}
118
116
 
119
- {% if _label_block is defined %}
120
- {{ _label_block|raw }}
121
- {% endif %}
117
+ {%- if _label_block is defined %}
118
+ {{- _label_block|raw }}
119
+ {%- endif -%}
122
120
  <select
123
121
  {{ attributes }}
124
122
  >
125
- {% if _options is not empty and _options is iterable %}
126
- {% for _option in _options %}
127
- {% 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 -%}
128
126
  <optgroup label="{{ _option.label }}">
129
- {% if _option.options is not empty and _option.options is iterable %}
130
- {% for _optGroupOption in _option.options %}
127
+ {%- if _option.options is not empty and _option.options is iterable %}
128
+ {%- for _optGroupOption in _option.options -%}
131
129
  <option
132
130
  value="{{ _optGroupOption.value }}"
133
131
  {% if _optGroupOption.selected is defined %}
134
132
  selected
135
133
  {% endif %}
136
- {% if _optGroupOption.disabled %}
134
+ {%- if _optGroupOption.disabled %}
137
135
  disabled
138
136
  {% endif %}
139
137
  >
140
138
  {{- _optGroupOption.label -}}
141
139
  </option>
142
- {% endfor %}
143
- {% endif %}
140
+ {%- endfor %}
141
+ {%- endif -%}
144
142
  </optgroup>
145
- {% else %}
143
+ {%- else -%}
146
144
  <option
147
145
  value="{{ _option.value }}"
148
146
  {% if _option.selected is defined %}
149
147
  selected
150
148
  {% endif %}
151
- {% if _option.disabled %}
149
+ {%- if _option.disabled %}
152
150
  disabled
153
151
  {% endif %}
154
- {% if _option.hidden %}
152
+ {%- if _option.hidden %}
155
153
  hidden
156
154
  {% endif %}
157
155
  >
158
156
  {{- _option.label -}}
159
157
  </option>
160
- {% endif %}
161
- {% endfor %}
162
- {% endif %}
158
+ {%- endif %}
159
+ {%- endfor %}
160
+ {% endif -%}
163
161
  </select>
164
- {% if _invalid_feedback is not empty %}
162
+ {%- if _invalid_feedback is not empty -%}
165
163
  <div class="invalid-feedback">
166
164
  {{- _invalid_feedback -}}
167
165
  </div>
168
- {% endif %}
169
- {% if _valid_feedback is not empty %}
166
+ {%- endif %}
167
+ {% if _valid_feedback is not empty -%}
170
168
  <div class="valid-feedback">
171
169
  {{- _valid_feedback -}}
172
170
  </div>
173
- {% endif %}
174
- {% if _helper_text is not empty %}
171
+ {%- endif %}
172
+ {% if _helper_text is not empty -%}
175
173
  <div
176
174
  class="form-text"
177
175
  {% if _helper_text_id is not empty %}
@@ -179,6 +177,4 @@
179
177
  {% endif %}>
180
178
  {{- _helper_text -}}
181
179
  </div>
182
- {% endif %}
183
-
184
- {% endapply %}
180
+ {%- endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - type (string) (default: 'border')
5
3
  - options ['border', 'grow']
@@ -10,31 +8,30 @@
10
8
  - attributes (drupal attrs)
11
9
  #}
12
10
 
13
- {% set _type = type|default('border') %}
11
+ {%- set _type = type|default('border') %}
14
12
  {% set _variant = variant|default('') %}
15
13
  {% set _size = size|default('') %}
16
14
  {% set _assistive_text = assistive_text|default('') %}
17
15
 
18
- {% set _classes = ['spinner-' ~ _type] %}
16
+ {%- set _classes = ['spinner-' ~ _type] %}
19
17
  {% if _size is not empty %}
20
- {% set _classes = _classes|merge(['spinner-' ~ _type ~ '-' ~ _size]) %}
18
+ {%- set _classes = _classes|merge(['spinner-' ~ _type ~ '-' ~ _size]) %}
21
19
  {% endif %}
22
20
  {% if _variant is not empty %}
23
- {% set _classes = _classes|merge(['text-' ~ _variant]) %}
21
+ {%- set _classes = _classes|merge(['text-' ~ _variant]) %}
24
22
  {% endif %}
25
23
 
26
- {% if attributes is empty %}
27
- {% set attributes = create_attribute() %}
24
+ {%- if attributes is empty %}
25
+ {%- set attributes = create_attribute() %}
28
26
  {% endif %}
29
27
 
30
- {% set attributes = attributes.addClass(_classes).setAttribute('role', 'status') %}
28
+ {%- set attributes = attributes.addClass(_classes).setAttribute('role', 'status') -%}
31
29
 
32
30
  <div
33
31
  {{ attributes }}
34
32
  >
35
- {% if _assistive_text is not empty %}
33
+ {%- if _assistive_text is not empty -%}
36
34
  <span class="visually-hidden">{{ _assistive_text }}</span>
37
- {% endif %}
35
+ {%- endif -%}
38
36
  </div>
39
-
40
- {% endapply %}
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 -%}