@openeuropa/bcl-data-header 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.
- package/{data-ec.js → data--ec.js} +133 -54
- package/data--neutral.js +107 -54
- package/data--no-form.js +107 -54
- package/data--simple.js +107 -54
- package/{data-ucpkn.js → data--ucpkn.js} +0 -0
- package/data.js +108 -54
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ module.exports = {
|
|
|
8
8
|
classes: "d-none d-lg-inline-block",
|
|
9
9
|
alt: "project logo",
|
|
10
10
|
},
|
|
11
|
+
project_link: "/example.html",
|
|
11
12
|
head: {
|
|
12
13
|
attributes: new drupalAttribute()
|
|
13
14
|
.addClass(["w-100", "shadow-sm"])
|
|
@@ -198,60 +199,138 @@ module.exports = {
|
|
|
198
199
|
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>' +
|
|
199
200
|
'<button type="button" class="btn btn-primary">Access EU login</button>',
|
|
200
201
|
},
|
|
201
|
-
{
|
|
202
|
-
id: "languageModal",
|
|
203
|
-
size: "fullscreen",
|
|
204
|
-
attributes: new drupalAttribute().addClass("bcl-language"),
|
|
205
|
-
header:
|
|
206
|
-
'<h5 class="modal-title" id="languageeModalLabel">Select your language</h5>' +
|
|
207
|
-
'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>',
|
|
208
|
-
body:
|
|
209
|
-
'<div class="container">' +
|
|
210
|
-
'<div class="row">' +
|
|
211
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
212
|
-
'<h5 class="bcl-language__title">EU official languages</h5>' +
|
|
213
|
-
"</div>" +
|
|
214
|
-
"</div>" +
|
|
215
|
-
'<div class="row">' +
|
|
216
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
217
|
-
'<div class="bcl-language__list">' +
|
|
218
|
-
'<a href="#" class="bcl-language__item">Language 01</a>' +
|
|
219
|
-
'<a href="#" class="bcl-language__item">Language 02</a>' +
|
|
220
|
-
'<a href="#" class="bcl-language__item">Language 03</a>' +
|
|
221
|
-
"</div>" +
|
|
222
|
-
"</div>" +
|
|
223
|
-
'<div class="col col-lg-4">' +
|
|
224
|
-
'<div class="bcl-language__list">' +
|
|
225
|
-
'<a href="#" class="bcl-language__item">Language 04</a>' +
|
|
226
|
-
'<a href="#" class="bcl-language__item">Language 05</a>' +
|
|
227
|
-
'<a href="#" class="bcl-language__item">Language 06</a>' +
|
|
228
|
-
"</div>" +
|
|
229
|
-
"</div>" +
|
|
230
|
-
"</div>" +
|
|
231
|
-
'<div class="row">' +
|
|
232
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
233
|
-
'<h5 class="bcl-language__title">Non EU languages</h5>' +
|
|
234
|
-
"</div>" +
|
|
235
|
-
"</div>" +
|
|
236
|
-
'<div class="row">' +
|
|
237
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
238
|
-
'<div class="bcl-language__list">' +
|
|
239
|
-
'<a href="#" class="bcl-language__item">Language 07</a>' +
|
|
240
|
-
'<a href="#" class="bcl-language__item">Language 08</a>' +
|
|
241
|
-
"</div>" +
|
|
242
|
-
"</div>" +
|
|
243
|
-
'<div class="col col-lg-4">' +
|
|
244
|
-
'<div class="bcl-language__list">' +
|
|
245
|
-
'<a href="#" class="bcl-language__item">Language 09</a>' +
|
|
246
|
-
'<a href="#" class="bcl-language__item">Language 10</a>' +
|
|
247
|
-
"</div>" +
|
|
248
|
-
"</div>" +
|
|
249
|
-
"</div>" +
|
|
250
|
-
"</div>",
|
|
251
|
-
footer:
|
|
252
|
-
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>',
|
|
253
|
-
},
|
|
254
202
|
],
|
|
203
|
+
language_modal: {
|
|
204
|
+
id: "languageModal",
|
|
205
|
+
title: "Select your language",
|
|
206
|
+
variant: "ec",
|
|
207
|
+
icon_path: "/icons.svg",
|
|
208
|
+
close_label: "Close",
|
|
209
|
+
overlay: true,
|
|
210
|
+
items: [
|
|
211
|
+
{
|
|
212
|
+
label: "български",
|
|
213
|
+
lang: "bg",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: "español",
|
|
217
|
+
lang: "es",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: "čeština",
|
|
221
|
+
lang: "cs",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: "dansk",
|
|
225
|
+
lang: "da",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: "Deutsch",
|
|
229
|
+
lang: "de",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: "eesti",
|
|
233
|
+
lang: "et",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "ελληνικά",
|
|
237
|
+
lang: "el",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
label: "English",
|
|
241
|
+
active: true,
|
|
242
|
+
lang: "en",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
label: "français",
|
|
246
|
+
lang: "fr",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
label: "Gaeilge",
|
|
250
|
+
lang: "ga",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: "hrvatski",
|
|
254
|
+
lang: "hr",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: "italiano",
|
|
258
|
+
lang: "it",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: "latviešu",
|
|
262
|
+
lang: "lv",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
label: "lietuvių",
|
|
266
|
+
lang: "lt",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: "magyar",
|
|
270
|
+
lang: "hu",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: "Malti",
|
|
274
|
+
lang: "mt",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
label: "Nederlands",
|
|
278
|
+
lang: "nl",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
label: "polski",
|
|
282
|
+
lang: "pl",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
label: "português",
|
|
286
|
+
lang: "pt",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
label: "română",
|
|
290
|
+
lang: "ro",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
label: "slovenčina",
|
|
294
|
+
lang: "sk",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
label: "slovenščina",
|
|
298
|
+
lang: "sl",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
label: "suomi",
|
|
302
|
+
lang: "fi",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
label: "svenska",
|
|
306
|
+
lang: "sv",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
non_eu_items: [
|
|
310
|
+
{
|
|
311
|
+
label: "中文",
|
|
312
|
+
lang: "zh",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
label: "Türk",
|
|
316
|
+
lang: "tr",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
label: "pусский",
|
|
320
|
+
lang: "ru",
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
label: "Català",
|
|
324
|
+
lang: "ca",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
label: "عَرَبِيّ",
|
|
328
|
+
lang: "ar",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
eu_category: "EU official languages",
|
|
332
|
+
non_eu_category: "Other languages",
|
|
333
|
+
},
|
|
255
334
|
breadcrumbs: {
|
|
256
335
|
attributes: new drupalAttribute().addClass(["mt-3"]),
|
|
257
336
|
links: [
|
|
@@ -266,6 +345,6 @@ module.exports = {
|
|
|
266
345
|
},
|
|
267
346
|
{ label: "News" },
|
|
268
347
|
],
|
|
269
|
-
|
|
348
|
+
icon_path: "/icons.svg",
|
|
270
349
|
},
|
|
271
350
|
};
|
package/data--neutral.js
CHANGED
|
@@ -189,60 +189,113 @@ module.exports = {
|
|
|
189
189
|
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>' +
|
|
190
190
|
'<button type="button" class="btn btn-primary">Access EU login</button>',
|
|
191
191
|
},
|
|
192
|
-
{
|
|
193
|
-
id: "languageModal",
|
|
194
|
-
size: "fullscreen",
|
|
195
|
-
attributes: new drupalAttribute().addClass("bcl-language"),
|
|
196
|
-
header:
|
|
197
|
-
'<h5 class="modal-title" id="languageeModalLabel">Select your language</h5>' +
|
|
198
|
-
'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>',
|
|
199
|
-
body:
|
|
200
|
-
'<div class="container">' +
|
|
201
|
-
'<div class="row">' +
|
|
202
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
203
|
-
'<h5 class="bcl-language__title">EU official languages</h5>' +
|
|
204
|
-
"</div>" +
|
|
205
|
-
"</div>" +
|
|
206
|
-
'<div class="row">' +
|
|
207
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
208
|
-
'<div class="bcl-language__list">' +
|
|
209
|
-
'<a href="#" class="bcl-language__item">Language 01</a>' +
|
|
210
|
-
'<a href="#" class="bcl-language__item">Language 02</a>' +
|
|
211
|
-
'<a href="#" class="bcl-language__item">Language 03</a>' +
|
|
212
|
-
"</div>" +
|
|
213
|
-
"</div>" +
|
|
214
|
-
'<div class="col col-lg-4">' +
|
|
215
|
-
'<div class="bcl-language__list">' +
|
|
216
|
-
'<a href="#" class="bcl-language__item">Language 04</a>' +
|
|
217
|
-
'<a href="#" class="bcl-language__item">Language 05</a>' +
|
|
218
|
-
'<a href="#" class="bcl-language__item">Language 06</a>' +
|
|
219
|
-
"</div>" +
|
|
220
|
-
"</div>" +
|
|
221
|
-
"</div>" +
|
|
222
|
-
'<div class="row">' +
|
|
223
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
224
|
-
'<h5 class="bcl-language__title">Non EU languages</h5>' +
|
|
225
|
-
"</div>" +
|
|
226
|
-
"</div>" +
|
|
227
|
-
'<div class="row">' +
|
|
228
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
229
|
-
'<div class="bcl-language__list">' +
|
|
230
|
-
'<a href="#" class="bcl-language__item">Language 07</a>' +
|
|
231
|
-
'<a href="#" class="bcl-language__item">Language 08</a>' +
|
|
232
|
-
"</div>" +
|
|
233
|
-
"</div>" +
|
|
234
|
-
'<div class="col col-lg-4">' +
|
|
235
|
-
'<div class="bcl-language__list">' +
|
|
236
|
-
'<a href="#" class="bcl-language__item">Language 09</a>' +
|
|
237
|
-
'<a href="#" class="bcl-language__item">Language 10</a>' +
|
|
238
|
-
"</div>" +
|
|
239
|
-
"</div>" +
|
|
240
|
-
"</div>" +
|
|
241
|
-
"</div>",
|
|
242
|
-
footer:
|
|
243
|
-
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>',
|
|
244
|
-
},
|
|
245
192
|
],
|
|
193
|
+
language_modal: {
|
|
194
|
+
id: "languageModal",
|
|
195
|
+
title: "Select your language",
|
|
196
|
+
icon_path: "/icons.svg",
|
|
197
|
+
close_label: "Close",
|
|
198
|
+
overlay: true,
|
|
199
|
+
items: [
|
|
200
|
+
{
|
|
201
|
+
label: "български",
|
|
202
|
+
lang: "bg",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
label: "español",
|
|
206
|
+
lang: "es",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
label: "čeština",
|
|
210
|
+
lang: "cs",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
label: "dansk",
|
|
214
|
+
lang: "da",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
label: "Deutsch",
|
|
218
|
+
lang: "de",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
label: "eesti",
|
|
222
|
+
lang: "et",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: "ελληνικά",
|
|
226
|
+
lang: "el",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: "English",
|
|
230
|
+
active: true,
|
|
231
|
+
lang: "en",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
label: "français",
|
|
235
|
+
lang: "fr",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
label: "Gaeilge",
|
|
239
|
+
lang: "ga",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
label: "hrvatski",
|
|
243
|
+
lang: "hr",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
label: "italiano",
|
|
247
|
+
lang: "it",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
label: "latviešu",
|
|
251
|
+
lang: "lv",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
label: "lietuvių",
|
|
255
|
+
lang: "lt",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
label: "magyar",
|
|
259
|
+
lang: "hu",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
label: "Malti",
|
|
263
|
+
lang: "mt",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
label: "Nederlands",
|
|
267
|
+
lang: "nl",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
label: "polski",
|
|
271
|
+
lang: "pl",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
label: "português",
|
|
275
|
+
lang: "pt",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
label: "română",
|
|
279
|
+
lang: "ro",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
label: "slovenčina",
|
|
283
|
+
lang: "sk",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
label: "slovenščina",
|
|
287
|
+
lang: "sl",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
label: "suomi",
|
|
291
|
+
lang: "fi",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
label: "svenska",
|
|
295
|
+
lang: "sv",
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
},
|
|
246
299
|
breadcrumbs: {
|
|
247
300
|
attributes: new drupalAttribute().addClass(["mt-3"]),
|
|
248
301
|
links: [
|
|
@@ -257,6 +310,6 @@ module.exports = {
|
|
|
257
310
|
},
|
|
258
311
|
{ label: "News" },
|
|
259
312
|
],
|
|
260
|
-
|
|
313
|
+
icon_path: "/icons.svg",
|
|
261
314
|
},
|
|
262
315
|
};
|
package/data--no-form.js
CHANGED
|
@@ -123,60 +123,113 @@ module.exports = {
|
|
|
123
123
|
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>' +
|
|
124
124
|
'<button type="button" class="btn btn-primary">Access EU login</button>',
|
|
125
125
|
},
|
|
126
|
-
{
|
|
127
|
-
id: "languageModal",
|
|
128
|
-
size: "fullscreen",
|
|
129
|
-
attributes: new drupalAttribute().addClass("bcl-language"),
|
|
130
|
-
header:
|
|
131
|
-
'<h5 class="modal-title" id="languageeModalLabel">Select your language</h5>' +
|
|
132
|
-
'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>',
|
|
133
|
-
body:
|
|
134
|
-
'<div class="container">' +
|
|
135
|
-
'<div class="row">' +
|
|
136
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
137
|
-
'<h5 class="bcl-language__title">EU official languages</h5>' +
|
|
138
|
-
"</div>" +
|
|
139
|
-
"</div>" +
|
|
140
|
-
'<div class="row">' +
|
|
141
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
142
|
-
'<div class="bcl-language__list">' +
|
|
143
|
-
'<a href="#" class="bcl-language__item">Language 01</a>' +
|
|
144
|
-
'<a href="#" class="bcl-language__item">Language 02</a>' +
|
|
145
|
-
'<a href="#" class="bcl-language__item">Language 03</a>' +
|
|
146
|
-
"</div>" +
|
|
147
|
-
"</div>" +
|
|
148
|
-
'<div class="col col-lg-4">' +
|
|
149
|
-
'<div class="bcl-language__list">' +
|
|
150
|
-
'<a href="#" class="bcl-language__item">Language 04</a>' +
|
|
151
|
-
'<a href="#" class="bcl-language__item">Language 05</a>' +
|
|
152
|
-
'<a href="#" class="bcl-language__item">Language 06</a>' +
|
|
153
|
-
"</div>" +
|
|
154
|
-
"</div>" +
|
|
155
|
-
"</div>" +
|
|
156
|
-
'<div class="row">' +
|
|
157
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
158
|
-
'<h5 class="bcl-language__title">Non EU languages</h5>' +
|
|
159
|
-
"</div>" +
|
|
160
|
-
"</div>" +
|
|
161
|
-
'<div class="row">' +
|
|
162
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
163
|
-
'<div class="bcl-language__list">' +
|
|
164
|
-
'<a href="#" class="bcl-language__item">Language 07</a>' +
|
|
165
|
-
'<a href="#" class="bcl-language__item">Language 08</a>' +
|
|
166
|
-
"</div>" +
|
|
167
|
-
"</div>" +
|
|
168
|
-
'<div class="col col-lg-4">' +
|
|
169
|
-
'<div class="bcl-language__list">' +
|
|
170
|
-
'<a href="#" class="bcl-language__item">Language 09</a>' +
|
|
171
|
-
'<a href="#" class="bcl-language__item">Language 10</a>' +
|
|
172
|
-
"</div>" +
|
|
173
|
-
"</div>" +
|
|
174
|
-
"</div>" +
|
|
175
|
-
"</div>",
|
|
176
|
-
footer:
|
|
177
|
-
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>',
|
|
178
|
-
},
|
|
179
126
|
],
|
|
127
|
+
language_modal: {
|
|
128
|
+
id: "languageModal",
|
|
129
|
+
title: "Select your language",
|
|
130
|
+
icon_path: "/icons.svg",
|
|
131
|
+
close_label: "Close",
|
|
132
|
+
overlay: true,
|
|
133
|
+
items: [
|
|
134
|
+
{
|
|
135
|
+
label: "български",
|
|
136
|
+
lang: "bg",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: "español",
|
|
140
|
+
lang: "es",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: "čeština",
|
|
144
|
+
lang: "cs",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: "dansk",
|
|
148
|
+
lang: "da",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
label: "Deutsch",
|
|
152
|
+
lang: "de",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: "eesti",
|
|
156
|
+
lang: "et",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: "ελληνικά",
|
|
160
|
+
lang: "el",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: "English",
|
|
164
|
+
active: true,
|
|
165
|
+
lang: "en",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: "français",
|
|
169
|
+
lang: "fr",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
label: "Gaeilge",
|
|
173
|
+
lang: "ga",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
label: "hrvatski",
|
|
177
|
+
lang: "hr",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
label: "italiano",
|
|
181
|
+
lang: "it",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: "latviešu",
|
|
185
|
+
lang: "lv",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: "lietuvių",
|
|
189
|
+
lang: "lt",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: "magyar",
|
|
193
|
+
lang: "hu",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
label: "Malti",
|
|
197
|
+
lang: "mt",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
label: "Nederlands",
|
|
201
|
+
lang: "nl",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
label: "polski",
|
|
205
|
+
lang: "pl",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
label: "português",
|
|
209
|
+
lang: "pt",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
label: "română",
|
|
213
|
+
lang: "ro",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: "slovenčina",
|
|
217
|
+
lang: "sk",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: "slovenščina",
|
|
221
|
+
lang: "sl",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: "suomi",
|
|
225
|
+
lang: "fi",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: "svenska",
|
|
229
|
+
lang: "sv",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
},
|
|
180
233
|
breadcrumbs: {
|
|
181
234
|
attributes: new drupalAttribute().addClass(["mt-3"]),
|
|
182
235
|
links: [
|
|
@@ -191,6 +244,6 @@ module.exports = {
|
|
|
191
244
|
},
|
|
192
245
|
{ label: "News" },
|
|
193
246
|
],
|
|
194
|
-
|
|
247
|
+
icon_path: "/icons.svg",
|
|
195
248
|
},
|
|
196
249
|
};
|
package/data--simple.js
CHANGED
|
@@ -160,60 +160,113 @@ module.exports = {
|
|
|
160
160
|
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>' +
|
|
161
161
|
'<button type="button" class="btn btn-primary">Access EU login</button>',
|
|
162
162
|
},
|
|
163
|
-
{
|
|
164
|
-
id: "languageModal",
|
|
165
|
-
size: "fullscreen",
|
|
166
|
-
attributes: new drupalAttribute().addClass("bcl-language"),
|
|
167
|
-
header:
|
|
168
|
-
'<h5 class="modal-title" id="languageeModalLabel">Select your language</h5>' +
|
|
169
|
-
'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>',
|
|
170
|
-
body:
|
|
171
|
-
'<div class="container">' +
|
|
172
|
-
'<div class="row">' +
|
|
173
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
174
|
-
'<h5 class="bcl-language__title">EU official languages</h5>' +
|
|
175
|
-
"</div>" +
|
|
176
|
-
"</div>" +
|
|
177
|
-
'<div class="row">' +
|
|
178
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
179
|
-
'<div class="bcl-language__list">' +
|
|
180
|
-
'<a href="#" class="bcl-language__item">Language 01</a>' +
|
|
181
|
-
'<a href="#" class="bcl-language__item">Language 02</a>' +
|
|
182
|
-
'<a href="#" class="bcl-language__item">Language 03</a>' +
|
|
183
|
-
"</div>" +
|
|
184
|
-
"</div>" +
|
|
185
|
-
'<div class="col col-lg-4">' +
|
|
186
|
-
'<div class="bcl-language__list">' +
|
|
187
|
-
'<a href="#" class="bcl-language__item">Language 04</a>' +
|
|
188
|
-
'<a href="#" class="bcl-language__item">Language 05</a>' +
|
|
189
|
-
'<a href="#" class="bcl-language__item">Language 06</a>' +
|
|
190
|
-
"</div>" +
|
|
191
|
-
"</div>" +
|
|
192
|
-
"</div>" +
|
|
193
|
-
'<div class="row">' +
|
|
194
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
195
|
-
'<h5 class="bcl-language__title">Non EU languages</h5>' +
|
|
196
|
-
"</div>" +
|
|
197
|
-
"</div>" +
|
|
198
|
-
'<div class="row">' +
|
|
199
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
200
|
-
'<div class="bcl-language__list">' +
|
|
201
|
-
'<a href="#" class="bcl-language__item">Language 07</a>' +
|
|
202
|
-
'<a href="#" class="bcl-language__item">Language 08</a>' +
|
|
203
|
-
"</div>" +
|
|
204
|
-
"</div>" +
|
|
205
|
-
'<div class="col col-lg-4">' +
|
|
206
|
-
'<div class="bcl-language__list">' +
|
|
207
|
-
'<a href="#" class="bcl-language__item">Language 09</a>' +
|
|
208
|
-
'<a href="#" class="bcl-language__item">Language 10</a>' +
|
|
209
|
-
"</div>" +
|
|
210
|
-
"</div>" +
|
|
211
|
-
"</div>" +
|
|
212
|
-
"</div>",
|
|
213
|
-
footer:
|
|
214
|
-
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>',
|
|
215
|
-
},
|
|
216
163
|
],
|
|
164
|
+
language_modal: {
|
|
165
|
+
id: "languageModal",
|
|
166
|
+
title: "Select your language",
|
|
167
|
+
icon_path: "/icons.svg",
|
|
168
|
+
close_label: "Close",
|
|
169
|
+
overlay: true,
|
|
170
|
+
items: [
|
|
171
|
+
{
|
|
172
|
+
label: "български",
|
|
173
|
+
lang: "bg",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
label: "español",
|
|
177
|
+
lang: "es",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
label: "čeština",
|
|
181
|
+
lang: "cs",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: "dansk",
|
|
185
|
+
lang: "da",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: "Deutsch",
|
|
189
|
+
lang: "de",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: "eesti",
|
|
193
|
+
lang: "et",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
label: "ελληνικά",
|
|
197
|
+
lang: "el",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
label: "English",
|
|
201
|
+
active: true,
|
|
202
|
+
lang: "en",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
label: "français",
|
|
206
|
+
lang: "fr",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
label: "Gaeilge",
|
|
210
|
+
lang: "ga",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
label: "hrvatski",
|
|
214
|
+
lang: "hr",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
label: "italiano",
|
|
218
|
+
lang: "it",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
label: "latviešu",
|
|
222
|
+
lang: "lv",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: "lietuvių",
|
|
226
|
+
lang: "lt",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: "magyar",
|
|
230
|
+
lang: "hu",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
label: "Malti",
|
|
234
|
+
lang: "mt",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
label: "Nederlands",
|
|
238
|
+
lang: "nl",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
label: "polski",
|
|
242
|
+
lang: "pl",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
label: "português",
|
|
246
|
+
lang: "pt",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
label: "română",
|
|
250
|
+
lang: "ro",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: "slovenčina",
|
|
254
|
+
lang: "sk",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: "slovenščina",
|
|
258
|
+
lang: "sl",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: "suomi",
|
|
262
|
+
lang: "fi",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
label: "svenska",
|
|
266
|
+
lang: "sv",
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
},
|
|
217
270
|
breadcrumbs: {
|
|
218
271
|
attributes: new drupalAttribute().addClass(["mt-3"]),
|
|
219
272
|
links: [
|
|
@@ -235,6 +288,6 @@ module.exports = {
|
|
|
235
288
|
},
|
|
236
289
|
{ label: "News" },
|
|
237
290
|
],
|
|
238
|
-
|
|
291
|
+
icon_path: "/icons.svg",
|
|
239
292
|
},
|
|
240
293
|
};
|
|
File without changes
|
package/data.js
CHANGED
|
@@ -199,60 +199,114 @@ module.exports = {
|
|
|
199
199
|
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>' +
|
|
200
200
|
'<button type="button" class="btn btn-primary">Access EU login</button>',
|
|
201
201
|
},
|
|
202
|
-
{
|
|
203
|
-
id: "languageModal",
|
|
204
|
-
size: "fullscreen",
|
|
205
|
-
attributes: new drupalAttribute().addClass("bcl-language"),
|
|
206
|
-
header:
|
|
207
|
-
'<h5 class="modal-title" id="languageeModalLabel">Select your language</h5>' +
|
|
208
|
-
'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>',
|
|
209
|
-
body:
|
|
210
|
-
'<div class="container">' +
|
|
211
|
-
'<div class="row">' +
|
|
212
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
213
|
-
'<h5 class="bcl-language__title">EU official languages</h5>' +
|
|
214
|
-
"</div>" +
|
|
215
|
-
"</div>" +
|
|
216
|
-
'<div class="row">' +
|
|
217
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
218
|
-
'<div class="bcl-language__list">' +
|
|
219
|
-
'<a href="#" class="bcl-language__item">Language 01</a>' +
|
|
220
|
-
'<a href="#" class="bcl-language__item">Language 02</a>' +
|
|
221
|
-
'<a href="#" class="bcl-language__item">Language 03</a>' +
|
|
222
|
-
"</div>" +
|
|
223
|
-
"</div>" +
|
|
224
|
-
'<div class="col col-lg-4">' +
|
|
225
|
-
'<div class="bcl-language__list">' +
|
|
226
|
-
'<a href="#" class="bcl-language__item">Language 04</a>' +
|
|
227
|
-
'<a href="#" class="bcl-language__item">Language 05</a>' +
|
|
228
|
-
'<a href="#" class="bcl-language__item">Language 06</a>' +
|
|
229
|
-
"</div>" +
|
|
230
|
-
"</div>" +
|
|
231
|
-
"</div>" +
|
|
232
|
-
'<div class="row">' +
|
|
233
|
-
'<div class="col col-lg-8 offset-lg-2">' +
|
|
234
|
-
'<h5 class="bcl-language__title">Non EU languages</h5>' +
|
|
235
|
-
"</div>" +
|
|
236
|
-
"</div>" +
|
|
237
|
-
'<div class="row">' +
|
|
238
|
-
'<div class="col col-lg-4 offset-lg-2">' +
|
|
239
|
-
'<div class="bcl-language__list">' +
|
|
240
|
-
'<a href="#" class="bcl-language__item">Language 07</a>' +
|
|
241
|
-
'<a href="#" class="bcl-language__item">Language 08</a>' +
|
|
242
|
-
"</div>" +
|
|
243
|
-
"</div>" +
|
|
244
|
-
'<div class="col col-lg-4">' +
|
|
245
|
-
'<div class="bcl-language__list">' +
|
|
246
|
-
'<a href="#" class="bcl-language__item">Language 09</a>' +
|
|
247
|
-
'<a href="#" class="bcl-language__item">Language 10</a>' +
|
|
248
|
-
"</div>" +
|
|
249
|
-
"</div>" +
|
|
250
|
-
"</div>" +
|
|
251
|
-
"</div>",
|
|
252
|
-
footer:
|
|
253
|
-
'<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>',
|
|
254
|
-
},
|
|
255
202
|
],
|
|
203
|
+
language_modal: {
|
|
204
|
+
id: "languageModal",
|
|
205
|
+
title: "Select your language",
|
|
206
|
+
variant: "eu",
|
|
207
|
+
icon_path: "/icons.svg",
|
|
208
|
+
close_label: "Close",
|
|
209
|
+
overlay: true,
|
|
210
|
+
items: [
|
|
211
|
+
{
|
|
212
|
+
label: "български",
|
|
213
|
+
lang: "bg",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: "español",
|
|
217
|
+
lang: "es",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: "čeština",
|
|
221
|
+
lang: "cs",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: "dansk",
|
|
225
|
+
lang: "da",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: "Deutsch",
|
|
229
|
+
lang: "de",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: "eesti",
|
|
233
|
+
lang: "et",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "ελληνικά",
|
|
237
|
+
lang: "el",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
label: "English",
|
|
241
|
+
active: true,
|
|
242
|
+
lang: "en",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
label: "français",
|
|
246
|
+
lang: "fr",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
label: "Gaeilge",
|
|
250
|
+
lang: "ga",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: "hrvatski",
|
|
254
|
+
lang: "hr",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: "italiano",
|
|
258
|
+
lang: "it",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: "latviešu",
|
|
262
|
+
lang: "lv",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
label: "lietuvių",
|
|
266
|
+
lang: "lt",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: "magyar",
|
|
270
|
+
lang: "hu",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: "Malti",
|
|
274
|
+
lang: "mt",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
label: "Nederlands",
|
|
278
|
+
lang: "nl",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
label: "polski",
|
|
282
|
+
lang: "pl",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
label: "português",
|
|
286
|
+
lang: "pt",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
label: "română",
|
|
290
|
+
lang: "ro",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
label: "slovenčina",
|
|
294
|
+
lang: "sk",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
label: "slovenščina",
|
|
298
|
+
lang: "sl",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
label: "suomi",
|
|
302
|
+
lang: "fi",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
label: "svenska",
|
|
306
|
+
lang: "sv",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
},
|
|
256
310
|
breadcrumbs: {
|
|
257
311
|
attributes: new drupalAttribute().addClass(["mt-3"]),
|
|
258
312
|
links: [
|
|
@@ -267,6 +321,6 @@ module.exports = {
|
|
|
267
321
|
},
|
|
268
322
|
{ label: "News" },
|
|
269
323
|
],
|
|
270
|
-
|
|
324
|
+
icon_path: "/icons.svg",
|
|
271
325
|
},
|
|
272
326
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-header",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.22.0",
|
|
6
6
|
"description": "OE header data",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"component-library",
|
|
21
21
|
"design-system"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "57304ad94ae3c234f2f2b904208ce540a7a53f23"
|
|
24
24
|
}
|