@openeuropa/bcl-modal 1.10.9 → 1.10.10

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 (2) hide show
  1. package/modal.html.twig +17 -20
  2. package/package.json +2 -2
package/modal.html.twig CHANGED
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - size (string) default('')
5
3
  options: sm, lg, xl, fullscreen
@@ -26,7 +24,7 @@
26
24
  - footer
27
25
  #}
28
26
 
29
- {% set _size = size|default('') %}
27
+ {%- set _size = size|default('') %}
30
28
  {% set _id = id|default('modal-' ~ random(10000)) %}
31
29
  {% set _fullscreen_responsive = fullscreen_responsive|default('') %}
32
30
  {% set _static_backdrop = static_backdrop ?? false %}
@@ -40,13 +38,13 @@
40
38
  {% set _footer = footer|default('') %}
41
39
  {% set _footer_attributes = footer_attributes ?: create_attribute() %}
42
40
 
43
- {% set _classes = ['modal', 'fade'] %}
41
+ {%- set _classes = ['modal', 'fade'] %}
44
42
 
45
- {% if attributes is empty %}
46
- {% set attributes = create_attribute() %}
43
+ {%- if attributes is empty %}
44
+ {%- set attributes = create_attribute() %}
47
45
  {% endif %}
48
46
 
49
- {% set attributes = attributes
47
+ {%- set attributes = attributes
50
48
  .setAttribute('id', _id)
51
49
  .setAttribute('tabindex', '-1')
52
50
  .setAttribute('aria-hidden', 'true')
@@ -54,42 +52,41 @@
54
52
  .addClass(_classes)
55
53
  %}
56
54
 
57
- {% if _static_backdrop %}
58
- {% set attributes = attributes.setAttribute('data-bs-backdrop', 'static') %}
59
- {% endif %}
55
+ {%- if _static_backdrop %}
56
+ {%- set attributes = attributes.setAttribute('data-bs-backdrop', 'static') %}
57
+ {% endif -%}
60
58
 
61
59
  <div
62
60
  {{ attributes }}
63
- >
61
+ >{# -#}
64
62
  <div class="modal-dialog
65
63
  {{- _size ? ' modal-' ~ size -}}
66
64
  {{- _fullscreen_responsive ? ' modal-fullscreen-' ~ _fullscreen_responsive ~ '-down' -}}
67
65
  {{- _vertically_centered ? ' modal-dialog-centered' -}}
68
66
  {{- _scrollable ? ' modal-dialog-scrollable' -}}"
69
- >
67
+ >{# -#}
70
68
  <div class="modal-content">
71
- {% if header is not empty %}
69
+ {%- if header is not empty -%}
72
70
  <div
73
71
  {{- _header_attributes.addClass(['modal-header']) -}}
74
72
  >
75
73
  {%- block header _header -%}
76
74
  </div>
77
- {% endif %}
75
+ {%- endif %}
78
76
  {%- block messages _messages -%}
79
77
  <div
80
78
  {{- _body_attributes.addClass(['modal-body']) -}}
81
79
  >
82
80
  {%- block body _body -%}
83
81
  </div>
84
- {% if footer is not empty %}
82
+ {%- if footer is not empty -%}
85
83
  <div
86
84
  {{- _footer_attributes.addClass(['modal-footer']) -}}
87
85
  >
88
86
  {%- block footer _footer -%}
89
87
  </div>
90
- {% endif %}
91
- </div>
92
- </div>
88
+ {%- endif -%}
89
+ </div>{# -#}
90
+ </div>{# -#}
93
91
  </div>
94
-
95
- {% endapply %}
92
+ {#--#}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-modal",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "1.10.9",
5
+ "version": "1.10.10",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "cb9864341bfc98404071520d61568bd18e17e1fe"
24
+ "gitHead": "9f7c4a046e8f8f325e4de7e998f1c2a654f6eed1"
25
25
  }