@onsvisual/svelte-components 1.0.62 → 1.0.64

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.
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { onMount, getContext } from "svelte";
3
- import initNav from "./nav.js";
4
3
  import Theme from "../../wrappers/Theme/Theme.svelte";
5
4
  import SkipLink from "../SkipLink/SkipLink.svelte";
5
+ import HeaderNav from "./HeaderNav.svelte";
6
+ import HeaderNavLegacy from "./HeaderNavLegacy.svelte";
6
7
 
7
8
  const page = getContext("page");
8
9
 
@@ -11,6 +12,11 @@
11
12
  * @type {boolean}
12
13
  */
13
14
  export let compact = false;
15
+ /**
16
+ * Use the legacy nav header
17
+ * @type {boolean}
18
+ */
19
+ export let legacy = true;
14
20
  /**
15
21
  * Optional product title
16
22
  * @type {string|null}
@@ -47,194 +53,13 @@
47
53
  let baseother = "https://cy.ons.gov.uk";
48
54
  let path = "";
49
55
 
50
- const menu = [
51
- {
52
- label_en: "Business, industry and trade",
53
- label_cy: "Busnes, diwydiant a masnach",
54
- url: "/businessindustryandtrade",
55
- children: [
56
- { label_en: "Business", label_cy: "Busnes", url: "/businessindustryandtrade/business" },
57
- {
58
- label_en: "Changes to business",
59
- label_cy: "Newidiadau i fusnesau",
60
- url: "/businessindustryandtrade/changestobusiness"
61
- },
62
- {
63
- label_en: "Construction industry",
64
- label_cy: "Diwydiant adeiladu",
65
- url: "/businessindustryandtrade/constructionindustry"
66
- },
67
- {
68
- label_en: "IT and internet industry",
69
- label_cy: "Y diwydiant TG a'r rhyngrwyd",
70
- url: "/businessindustryandtrade"
71
- },
72
- {
73
- label_en: "International trade",
74
- label_cy: "Masnach ryngwladol",
75
- url: "/businessindustryandtrade/itandinternetindustry"
76
- },
77
- {
78
- label_en: "Manufacturing and production industry",
79
- label_cy: "Y diwydiant gweithgynhyrchu a chynhyrchu",
80
- url: "/businessindustryandtrade/manufacturingandproductionindustry"
81
- },
82
- {
83
- label_en: "Retail industry",
84
- label_cy: "Y diwydiant manwerthu",
85
- url: "/businessindustryandtrade/retailindustry"
86
- },
87
- {
88
- label_en: "Tourism industry",
89
- label_cy: "Y diwydiant twristiaeth",
90
- url: "/businessindustryandtrade/tourismindustry"
91
- }
92
- ]
93
- },
94
- {
95
- label_en: "Economy",
96
- label_cy: "Yr economi",
97
- url: "/economy",
98
- children: [
99
- {
100
- label_en: "Economic output and productivity",
101
- label_cy: "Allgynnyrch economaidd a chynhyrchiant",
102
- url: "/economy/economicoutputandproductivity"
103
- },
104
- {
105
- label_en: "Environmental accounts",
106
- label_cy: "Cyfrifon amgylcheddol",
107
- url: "/economy/environmentalaccounts"
108
- },
109
- {
110
- label_en: "Government, public sector and taxes",
111
- label_cy: "Llywodraeth, y sector cyhoeddus a threthi",
112
- url: "/economy/governmentpublicsectorandtaxes"
113
- },
114
- {
115
- label_en: "Gross Domestic Product (GDP)",
116
- label_cy: "Cynnyrch Domestig Gros (CDG)",
117
- url: "/economy/grossdomesticproductgdp"
118
- },
119
- {
120
- label_en: "Gross Value Added (GVA)",
121
- label_cy: "Gwerth Ychwanegol Gros",
122
- url: "/economy/grossvalueaddedgva"
123
- },
124
- {
125
- label_en: "Inflation and price indices",
126
- label_cy: "Mynegeion chwyddiant a phrisiau",
127
- url: "/economy/inflationandpriceindices"
128
- },
129
- {
130
- label_en: "Investments, pensions and trusts",
131
- label_cy: "Buddsoddiadau, pensiynau ac ymddiriedolaethau",
132
- url: "/economy/investmentspensionsandtrusts"
133
- },
134
- {
135
- label_en: "National accounts",
136
- label_cy: "Cyfrifon gwladol",
137
- url: "/economy/nationalaccounts"
138
- },
139
- {
140
- label_en: "Regional accounts",
141
- label_cy: "Cyfrifon rhanbarthol",
142
- url: "/economy/regionalaccounts"
143
- }
144
- ]
145
- },
146
- {
147
- label_en: "Employment and labour market",
148
- label_cy: "Cyflogaeth a'r farchnad lafur",
149
- url: "/employmentandlabourmarket",
150
- children: [
151
- {
152
- label_en: "People in work",
153
- label_cy: "Pobl mewn gwaith",
154
- url: "/employmentandlabourmarket/peopleinwork"
155
- },
156
- {
157
- label_en: "People not in work",
158
- label_cy: "Pobl nad ydynt mewn gwaith",
159
- url: "/employmentandlabourmarket/peoplenotinwork"
160
- }
161
- ]
162
- },
163
- {
164
- label_en: "People, population and community",
165
- label_cy: "Pobl, y boblogaeth a chymunedau",
166
- url: "/peoplepopulationandcommunity",
167
- children: [
168
- {
169
- label_en: "Births, deaths and marriages",
170
- label_cy: "Genedigaethau, marwolaethau a phriodasau",
171
- url: "/peoplepopulationandcommunity/birthsdeathsandmarriages"
172
- },
173
- {
174
- label_en: "Crime and justice",
175
- label_cy: "Troseddu a chyfiawnder",
176
- url: "/peoplepopulationandcommunity/crimeandjustice"
177
- },
178
- {
179
- label_en: "Cultural identity",
180
- label_cy: "Hunaniaeth ddiwylliannol",
181
- url: "/peoplepopulationandcommunity/culturalidentity"
182
- },
183
- {
184
- label_en: "Education and childcare",
185
- label_cy: "Addysg a gofal plant",
186
- url: "/peoplepopulationandcommunity/educationandchildcare"
187
- },
188
- {
189
- label_en: "Elections",
190
- label_cy: "Etholiadau",
191
- url: "/peoplepopulationandcommunity/elections"
192
- },
193
- {
194
- label_en: "Health and social care",
195
- label_cy: "Iechyd a gofal cymdeithasol",
196
- url: "/peoplepopulationandcommunity/healthandsocialcare"
197
- },
198
- {
199
- label_en: "Household characteristics",
200
- label_cy: "Nodweddion aelwydydd",
201
- url: "/peoplepopulationandcommunity/householdcharacteristics"
202
- },
203
- { label_en: "Housing", label_cy: "Tai", url: "/peoplepopulationandcommunity/housing" },
204
- {
205
- label_en: "Leisure and tourism",
206
- label_cy: "Hamdden a thwristiaeth",
207
- url: "/peoplepopulationandcommunity/leisureandtourism"
208
- },
209
- {
210
- label_en: "Personal and household finances",
211
- label_cy: "Cyllid personol a chyllid aelwydydd",
212
- url: "/peoplepopulationandcommunity/personalandhouseholdfinances"
213
- },
214
- {
215
- label_en: "Population and migration",
216
- label_cy: "Poblogaeth ac ymfudo",
217
- url: "/peoplepopulationandcommunity/populationandmigration"
218
- },
219
- {
220
- label_en: "Well-being",
221
- label_cy: "Lles",
222
- url: "/peoplepopulationandcommunity/wellbeing"
223
- }
224
- ]
225
- },
226
- { label_en: "Taking part in a survey?", label_cy: "Cymryd rhan mewn arolwg?", url: "/surveys" },
227
- {
228
- label_en: "Release calendar",
229
- label_cy: "Calendar datganiadau",
230
- url: "/releasecalendar",
231
- secondary: true
232
- },
233
- { label_en: "Methodology", label_cy: "Methodoleg", url: "/methodology", secondary: true },
234
- { label_en: "Media", label_cy: "Media", url: "/news", secondary: true },
235
- { label_en: "About", label_cy: "Amdanom ni", url: "/aboutus", secondary: true },
236
- { label_en: "Blog", label_cy: "Blog", url: "https://blog.ons.gov.uk/", secondary: true }
237
- ];
56
+ function setPaths() {
57
+ const url = page?.url || document.location;
58
+ lang = url.host.startsWith("cy") ? "cy" : "en";
59
+ baseurl = lang === "cy" ? "https://cy.ons.gov.uk" : "https://www.ons.gov.uk";
60
+ baseother = lang === "cy" ? "https://www.ons.gov.uk" : "https://cy.ons.gov.uk";
61
+ path = url.pathname;
62
+ }
238
63
 
239
64
  const texts = {
240
65
  Home: "Hafan",
@@ -246,19 +71,11 @@
246
71
  "Search for a keyword(s) or time series ID": "Chwilio am allweddair neu ID cyfres amser"
247
72
  };
248
73
 
249
- function setPaths() {
250
- const url = page?.url || document.location;
251
- lang = url.host.startsWith("cy") ? "cy" : "en";
252
- baseurl = lang === "cy" ? "https://cy.ons.gov.uk" : "https://www.ons.gov.uk";
253
- baseother = lang === "cy" ? "https://www.ons.gov.uk" : "https://cy.ons.gov.uk";
254
- path = url.pathname;
255
- }
74
+ $: i18n = (text) => (lang === "cy" && texts[text] ? texts[text] : text);
75
+
256
76
  onMount(() => {
257
77
  setPaths();
258
- initNav();
259
78
  });
260
-
261
- $: i18n = (text) => (lang === "cy" && texts[text] ? texts[text] : text);
262
79
  </script>
263
80
 
264
81
  <header class="ons-header" role="banner">
@@ -267,455 +84,30 @@
267
84
  {/if}
268
85
  <slot name="before" />
269
86
  <Theme {theme} overrides={themeOverrides}>
270
- {#if lang}
271
- <!-- <div id="pagePath" class="hide">{path}</div> -->
272
- {#if compact}
273
- <div class="ons-browser-banner">
274
- <div class="ons-container">
275
- <p class="ons-browser-banner__content">
276
- <span class="ons-browser-banner__lead"
277
- >This website no longer supports your browser.</span
278
- ><span class="ons-browser-banner__cta">
279
- You can <a
280
- class="ons-browser-banner__link"
281
- href="https://www.ons.gov.uk/help/browsers"
282
- >upgrade your browser to the latest version</a
283
- >.</span
284
- >
285
- </p>
286
- </div>
287
- </div>
288
- <div class="ons-header__top" class:ons-header__top--compact={compact && !title}>
289
- <div class="ons-container">
290
- <div
291
- class="ons-header__grid-top ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center ons-grid-flex--no-wrap ons-grid--gutterless"
292
- >
293
- <div class="ons-grid__col ons-col-auto">
294
- <a
295
- class="ons-header__org-logo-link"
296
- href={baseurl}
297
- aria-label="{i18n('Office for National Statistics logo')} - {i18n('Homepage')}"
298
- >
299
- <div class="ons-header__org-logo ons-header__org-logo--large">
300
- <svg
301
- class="ons-icon--logo"
302
- xmlns="http://www.w3.org/2000/svg"
303
- width="250"
304
- height="24"
305
- viewBox="33 2 552 60"
306
- aria-labelledby="ons-logo-en-alt"
307
- role="img"
308
- >
309
- <title id="ons-logo-en-alt"
310
- >{i18n("Office for National Statistics logo")} - {i18n("Homepage")}</title
311
- >
312
- <g
313
- class="ons-icon--logo__group ons-icon--logo__group--secondary"
314
- fill="#a8bd3a"
315
- >
316
- <path
317
- d="M0,34.6c.8-1.69,1.39-3,2.32-4.6A38.28,38.28,0,0,1,0,23.4V34.6M5,3S0,3,0,9.25v1A62.12,62.12,0,0,0,4.2,27a43.77,43.77,0,0,1,9.42-10.79C21.69,9.21,31.16,5.13,45.9,3Z"
318
- />
319
- </g>
320
- <g
321
- class="ons-icon--logo__group ons-icon--logo__group--primary"
322
- fill="#003c57"
323
- >
324
- <path
325
- d="M53.06,6.42C36.2,8,24.68,12.92,16.43,20.07A41.46,41.46,0,0,0,6.4,32.2C12.87,44.93,28.88,57,46.6,57H47s6.32.21,6.32-6.91V6.36a1.22,1.22,0,0,1-.26.06M9.72,42.67a44.25,44.25,0,0,1-5-7.42A80.59,80.59,0,0,0,0,46.38V56.91L31.06,57c-9.83-3-15.74-7.64-21.34-14.3"
326
- />
327
- </g>
328
- <g class="ons-icon--logo__group ons-icon--logo__group--text" fill="#003c57">
329
- <path
330
- d="M82,47.49c-9.07,0-13.13-7.51-13.13-16.77S72.91,14,82,14s13.1,7.61,13.1,16.77S91.1,47.54,82,47.54m0-30.91c-6.69,0-9.07,7.33-9.07,14.05s2.16,13.9,9.07,13.9,9-7.28,9-13.9-2.34-14-9-14"
331
- />
332
- <path
333
- d="M106.36,23.81V46.88h-3.67V23.81H98.93V21.56h3.76V17.9c0-4.61,2.72-7.95,8.08-7.95.38,0,.86.05.86.05v2.35h-.43c-2.55,0-4.84,1.64-4.84,5.12v4.09h5.27v2.25Z"
334
- />
335
- <path
336
- d="M121.53,23.81V46.88h-3.67V23.81H114.1V21.56h3.76V17.9c0-4.61,2.72-7.95,8.08-7.95.38,0,.86.05.86.05v2.35h-.43c-2.55,0-4.84,1.64-4.84,5.12v4.09h5.27v2.25Z"
337
- />
338
- <path
339
- d="M132.85,16.72a2.28,2.28,0,0,1-2.33-2.23v0a2.34,2.34,0,0,1,4.67,0,2.28,2.28,0,0,1-2.3,2.26h0M131,21.56h3.71V46.88H131Z"
340
- />
341
- <path
342
- d="M150.53,47.49c-6,0-10.63-5.16-10.63-13.29S144.52,21,150.66,21a9.76,9.76,0,0,1,6.17,1.74l-1,2.25a7.53,7.53,0,0,0-4.4-1.36c-5.15,0-7.78,4.46-7.78,10.48,0,6.2,3,10.62,7.65,10.62a8,8,0,0,0,4.49-1.37l1,2.45a10.21,10.21,0,0,1-6.3,1.73"
343
- />
344
- <path
345
- d="M162.84,35.75c.48,6,3.76,9,8.9,9a14.66,14.66,0,0,0,6.88-1.55l1.08,2.59a18,18,0,0,1-8.22,1.73c-7.12,0-12.18-4.23-12.18-13.34,0-8.69,4.67-13.2,11-13.2s10.37,3.95,10.37,12.4Zm7.35-12.41c-4.1,0-7.56,3.2-7.52,10.29l14.39-2c0-5.87-2.81-8.32-6.87-8.32"
346
- />
347
- <path
348
- d="M198.57,23.81V46.88H194.9V23.81h-3.76V21.56h3.76V17.9c0-4.61,2.72-7.95,8.08-7.95.39,0,.87.05.87.05v2.35h-.44c-2.54,0-4.84,1.64-4.84,5.12v4.09h5.28v2.25Z"
349
- />
350
- <path
351
- d="M217.28,47.49c-7.47,0-10.89-5.78-10.89-13.24S209.81,21,217.28,21s10.85,5.82,10.85,13.3-3.37,13.24-10.85,13.24m0-24c-5.53,0-7.13,5.59-7.13,10.81s1.73,10.56,7.13,10.56,7.13-5.35,7.13-10.56-1.6-10.81-7.13-10.81"
352
- />
353
- <path
354
- d="M244.08,23.91c-2.34-.61-5.75-.52-7.35.47v22.5H233V22.69c2.67-1.13,5.36-1.74,10.11-1.74H245Z"
355
- />
356
- <path
357
- d="M277.42,47.13,263.07,25a32.2,32.2,0,0,1-1.85-3.29h-.09s.13,1.88.13,3.85V47.13h-4.71V14.8h5.31l13.61,20.82A28.76,28.76,0,0,1,277.38,39h.08s-.17-1.84-.17-3.77V14.8H282V47.13Z"
358
- />
359
- <path
360
- d="M297.52,47.79c-7.43,0-10.93-3-10.93-7.81,0-6.8,7.12-8.64,15.59-9.39V29.13c0-3.47-2.37-4.51-5.83-4.51a18,18,0,0,0-6.87,1.46L288.23,23a24,24,0,0,1,9.12-1.83c5.61,0,9.93,2.3,9.93,8.78V46a22.71,22.71,0,0,1-9.76,1.83m4.66-14.67c-6.26.67-10.45,1.84-10.45,6.73,0,3.42,2.42,4.88,6.22,4.88a10.09,10.09,0,0,0,4.23-.84Z"
361
- />
362
- <path
363
- d="M322,47.69c-5.31,0-7.34-3.43-7.34-6.86V25.09h-3.55V21.81h3.55V16.12l5.4-1.5v7.19H325v3.28h-5V40.55a3.26,3.26,0,0,0,3,3.52h.5a5.5,5.5,0,0,0,1.46-.23v3.33a7.69,7.69,0,0,1-3,.52"
364
- />
365
- <path
366
- d="M331.91,17.43a3,3,0,0,1-3.15-2.81,3.17,3.17,0,0,1,6.31,0,3,3,0,0,1-3.16,2.81m-2.72,4.38h5.44V47.13h-5.44Z"
367
- />
368
- <path
369
- d="M350.88,47.79c-7.73,0-11.57-5.74-11.57-13.3s3.84-13.34,11.57-13.34,11.54,5.78,11.54,13.34-3.8,13.3-11.54,13.3m0-23.17c-4.66,0-6.05,4.89-6.05,9.82s1.47,9.63,6.05,9.63,6.05-4.7,6.05-9.63-1.38-9.82-6.05-9.82"
370
- />
371
- <path
372
- d="M382.52,47.13V29c0-3.24-2.77-4.47-5.88-4.47a12.3,12.3,0,0,0-4.37.76v21.8h-5.39V23a26.81,26.81,0,0,1,10.06-1.83c6.61,0,11,2.25,11,7.8V47.13Z"
373
- />
374
- <path
375
- d="M403.18,47.79c-7.43,0-10.94-3-10.94-7.81,0-6.8,7.13-8.64,15.6-9.39V29.13c0-3.47-2.37-4.51-5.83-4.51a18,18,0,0,0-6.87,1.46L393.89,23A24,24,0,0,1,403,21.15c5.62,0,9.94,2.3,9.94,8.78V46a22.71,22.71,0,0,1-9.76,1.83m4.66-14.67c-6.27.67-10.46,1.84-10.46,6.73,0,3.42,2.43,4.88,6.23,4.88a10.09,10.09,0,0,0,4.23-.84Z"
376
- />
377
- <polygon
378
- points="418.52 47.13 418.52 34.91 418.52 10.25 423.92 10.25 423.92 22.76 423.92 47.13 418.52 47.13"
379
- />
380
- <path
381
- d="M445.39,47.79A19.11,19.11,0,0,1,436.58,46l1.51-4a13.48,13.48,0,0,0,6.22,1.55c3.76,0,6.44-2.21,6.44-5.41,0-7.09-13.44-4.36-13.44-14.42,0-5.13,4.15-9.59,10.72-9.59A15.82,15.82,0,0,1,455.8,16l-1.38,3.52a11.93,11.93,0,0,0-5.66-1.5c-3.5,0-5.79,2.11-5.79,5.12,0,7,13.74,3.94,13.74,14.65,0,5.74-4.71,10-11.32,10"
382
- />
383
- <path
384
- d="M470.41,47.69c-5.31,0-7.34-3.43-7.34-6.86V25.09h-3.54V21.81h3.54V16.12l5.4-1.5v7.19h4.92v3.28h-4.92V40.55a3.27,3.27,0,0,0,3,3.52h.48a5.12,5.12,0,0,0,1.46-.23v3.33a7.69,7.69,0,0,1-3,.52"
385
- />
386
- <path
387
- d="M487.27,47.79c-7.44,0-10.93-3-10.93-7.81,0-6.8,7.13-8.64,15.6-9.39V29.13c0-3.47-2.38-4.51-5.84-4.51a18,18,0,0,0-6.87,1.46L478,23a23.94,23.94,0,0,1,9.11-1.83c5.62,0,9.94,2.3,9.94,8.78V46a22.71,22.71,0,0,1-9.76,1.83M492,33.16c-6.27.67-10.46,1.84-10.46,6.73,0,3.42,2.42,4.88,6.22,4.88a10,10,0,0,0,4.24-.84Z"
388
- />
389
- <path
390
- d="M511.73,47.69c-5.32,0-7.35-3.43-7.35-6.86V25.09h-3.54V21.81h3.54V16.12l5.4-1.5v7.19h4.92v3.28h-4.92V40.55a3.26,3.26,0,0,0,3,3.52h.5a5.5,5.5,0,0,0,1.46-.23v3.33a7.69,7.69,0,0,1-3,.52"
391
- />
392
- <path
393
- d="M521.66,17.43a3,3,0,0,1-3.15-2.81,3.17,3.17,0,0,1,6.31,0,3,3,0,0,1-3.16,2.81m-2.72,4.38h5.45V47.13h-5.45Z"
394
- />
395
- <path
396
- d="M536.19,47.79A15.9,15.9,0,0,1,528.54,46L530,42.48a10.53,10.53,0,0,0,5.52,1.5c2.77,0,5-1.78,5-3.94,0-6-11.1-3.2-11.1-11.47,0-3.76,3.37-7.42,8.86-7.42A13.56,13.56,0,0,1,545.34,23l-1.42,3.14a8.47,8.47,0,0,0-4.62-1.45c-2.81,0-4.54,1.69-4.54,3.62,0,5.64,11.32,3.14,11.32,11.6,0,4-3.85,7.9-9.89,7.9"
397
- />
398
- <path
399
- d="M559.83,47.69c-5.31,0-7.35-3.43-7.35-6.86V25.09h-3.54V21.81h3.54V16.12l5.4-1.5v7.19h4.93v3.28h-4.93V40.55a3.27,3.27,0,0,0,3,3.52h.48a5.64,5.64,0,0,0,1.47-.23v3.33a7.72,7.72,0,0,1-3,.52"
400
- />
401
- <path
402
- d="M569.77,17.43a3,3,0,0,1-3.15-2.81,3.17,3.17,0,0,1,6.31,0,3,3,0,0,1-3.16,2.81m-2.72,4.38h5.44V47.13h-5.44Z"
403
- />
404
- <path
405
- d="M588.14,47.79c-6.23,0-11-5.08-11-13.35s4.88-13.29,11-13.29A10.51,10.51,0,0,1,594.66,23l-1.21,3a6.87,6.87,0,0,0-4-1.22c-4.4,0-6.69,3.81-6.69,9.49s2.63,9.59,6.61,9.59a6.74,6.74,0,0,0,4-1.28L594.7,46c-1.12.94-3.33,1.84-6.56,1.84"
406
- />
407
- <path
408
- d="M605.1,47.79A15.9,15.9,0,0,1,597.45,46l1.42-3.47A10.54,10.54,0,0,0,604.4,44c2.77,0,5-1.78,5-3.94,0-6-11.1-3.2-11.1-11.47,0-3.76,3.37-7.42,8.85-7.42a13.49,13.49,0,0,1,7.1,1.83l-1.42,3.14a8.42,8.42,0,0,0-4.63-1.45c-2.8,0-4.53,1.69-4.53,3.62,0,5.64,11.32,3.14,11.32,11.6,0,4-3.85,7.9-9.89,7.9"
409
- />
410
- </g>
411
- </svg>
412
- </div>
413
- <div class="ons-header__org-logo ons-header__org-logo--small">
414
- <svg
415
- class="ons-icon--logo"
416
- xmlns="http://www.w3.org/2000/svg"
417
- width="120"
418
- height="27"
419
- viewBox="0 5 595 116"
420
- aria-labelledby="ons-logo-stacked-en-alt"
421
- role="img"
422
- >
423
- <title id="ons-logo-stacked-en-alt">
424
- {i18n("Office for National Statistics logo")}
425
- </title>
426
- <g
427
- class="ons-icon--logo__group ons-icon--logo__group--secondary"
428
- fill="#a8bd3a"
429
- >
430
- <path
431
- d="M0,70.5c1.8-3.7,3.6-7.2,5.6-10.7A127.94,127.94,0,0,1,0,42.6V70.5M10.9,0S0,0,0,13.5v7.2A128.06,128.06,0,0,0,7.9,56.2a114.75,114.75,0,0,1,22.3-26C47.8,15.1,71.5,4.7,103.7.1Z"
432
- />
433
- </g>
434
- <g
435
- class="ons-icon--logo__group ons-icon--logo__group--primary"
436
- fill="#003c57"
437
- >
438
- <path
439
- d="M115.9,7.3c-36.8,3.5-62,14-80,29.4a108.15,108.15,0,0,0-23.6,29c14.1,27.4,41.1,47.6,86,50.5h4.4s13.8.5,13.8-14.9V7.2l-.6.1M21.2,85.4a92.68,92.68,0,0,1-11-16A173,173,0,0,0,0,93.4v22.7l73.6.1c-22.9-5.5-40.1-16.4-52.4-30.8"
440
- />
441
- </g>
442
- <g class="ons-icon--logo__group ons-icon--logo__group--text" fill="#003c57">
443
- <path
444
- d="M161,51.9c-11.3,0-16.3-9.3-16.3-20.8s5-20.8,16.3-20.8,16.3,9.5,16.3,20.8c-.1,11.5-5.1,20.8-16.3,20.8m0-38.3c-8.3,0-11.3,9.1-11.3,17.4s2.7,17.3,11.3,17.3,11.2-9.1,11.2-17.3S169.3,13.6,161,13.6m30.2,8.9V51.2h-4.5V22.6H182V19.8h4.7V15.2c0-5.7,3.4-9.9,10-9.9a8,8,0,0,1,1.1.1V8.3h-.5c-3.2,0-6,2.1-6,6.4v5.1h6.6v2.8l-6.7-.1Zm18.9,0V51.2h-4.5V22.6h-4.7V19.8h4.7V15.2c0-5.7,3.4-9.9,10-9.9a8,8,0,0,1,1.1.1V8.3h-.5c-3.2,0-6,2.1-6,6.4v5.1h6.6v2.8l-6.7-.1Zm14-8.8a2.82,2.82,0,0,1-2.9-2.8,2.9,2.9,0,0,1,5.8,0,2.76,2.76,0,0,1-2.9,2.8m-2.3,6h4.6V51.2h-4.6Zm24.3,32.2c-7.4,0-13.2-6.4-13.2-16.5,0-10.3,5.8-16.5,13.4-16.5a12.36,12.36,0,0,1,7.7,2.2l-1.2,2.8a8.92,8.92,0,0,0-5.5-1.7c-6.4,0-9.7,5.5-9.7,13,0,7.7,3.7,13.2,9.5,13.2a9.8,9.8,0,0,0,5.6-1.7l1.2,3c-1.3,1.2-4,2.2-7.8,2.2m15.3-14.6c.6,7.4,4.7,11.1,11.1,11.1a18.36,18.36,0,0,0,8.5-1.9l1.3,3.2a22.58,22.58,0,0,1-10.2,2.1c-8.8,0-15.1-5.3-15.1-16.6,0-10.8,5.8-16.4,13.7-16.4s12.9,4.9,12.9,15.4l-22.2,3.1ZM270.5,22c-5.1,0-9.4,4-9.3,12.8l17.9-2.5C279,25,275.5,22,270.5,22m42.2.5V51.2h-4.5V22.6h-4.7V19.8h4.7V15.2c0-5.7,3.4-9.9,10-9.9a8,8,0,0,1,1.1.1V8.3h-.5c-3.2,0-6,2.1-6,6.4v5.1h6.6v2.8Zm23.2,29.4c-9.3,0-13.5-7.2-13.5-16.5s4.2-16.5,13.5-16.5,13.5,7.2,13.5,16.5-4.2,16.5-13.5,16.5m0-29.8c-6.9,0-8.8,7-8.8,13.4s2.1,13.1,8.8,13.1c6.9,0,8.9-6.6,8.9-13.1s-2-13.4-8.9-13.4m33.3.6c-2.9-.8-7.1-.6-9.1.6V51.2h-4.6V21.1c3.3-1.4,6.6-2.2,12.5-2.2h2.4c0,.1-1.2,3.8-1.2,3.8ZM171.3,114.8,153.5,87.3c-1.3-2.1-2.3-4.1-2.3-4.1h-.1s.2,2.3.2,4.8v26.8h-5.8V74.7h6.6L169,100.5a46.13,46.13,0,0,1,2.4,4.1h.1s-.2-2.3-.2-4.7V74.6h5.9v40.1l-5.9.1Zm25,.8c-9.2,0-13.6-3.7-13.6-9.7,0-8.5,8.8-10.7,19.4-11.7V92.4c0-4.3-2.9-5.6-7.2-5.6a22.34,22.34,0,0,0-8.5,1.8l-1.6-3.8a30.2,30.2,0,0,1,11.3-2.3c7,0,12.3,2.9,12.3,10.9v19.9c-2.7,1.4-6.9,2.3-12.1,2.3m5.8-18.2c-7.8.8-13,2.3-13,8.3,0,4.2,3,6.1,7.7,6.1a12.33,12.33,0,0,0,5.3-1.1Zm24.5,18.1c-6.6,0-9.1-4.3-9.1-8.5V87.5h-4.4V83.4h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2c0,2.5,1.4,4.4,4.3,4.4a5.66,5.66,0,0,0,1.8-.3v4.1a11.47,11.47,0,0,1-3.7.6M239,77.9a3.52,3.52,0,1,1,3.9-3.5,3.71,3.71,0,0,1-3.9,3.5m-3.4,5.5h6.8v31.4h-6.8Zm26.9,32.2c-9.6,0-14.4-7.1-14.4-16.5s4.8-16.6,14.4-16.6,14.3,7.2,14.3,16.6-4.7,16.5-14.3,16.5m0-28.7c-5.8,0-7.5,6.1-7.5,12.2s1.8,11.9,7.5,11.9,7.5-5.8,7.5-11.9-1.7-12.2-7.5-12.2m39.3,27.9V92.3c0-4-3.4-5.5-7.3-5.5a16,16,0,0,0-5.4.9v27.1h-6.7v-30a32.8,32.8,0,0,1,12.5-2.3c8.2,0,13.7,2.8,13.7,9.7v22.6Zm25.7.8c-9.2,0-13.6-3.7-13.6-9.7,0-8.5,8.9-10.7,19.4-11.7V92.4c0-4.3-2.9-5.6-7.2-5.6a22.34,22.34,0,0,0-8.5,1.8L316,84.8a30.2,30.2,0,0,1,11.3-2.3c7,0,12.3,2.9,12.3,10.9v19.9c-2.7,1.4-6.9,2.3-12.1,2.3m5.8-18.2c-7.8.8-13,2.3-13,8.3,0,4.2,3,6.1,7.7,6.1a12.33,12.33,0,0,0,5.3-1.1Zm13.2,17.4V69h6.7v45.8Zm38.6.8a23.94,23.94,0,0,1-10.9-2.3l1.9-4.9a17,17,0,0,0,7.7,1.9c4.7,0,8-2.7,8-6.7,0-8.8-16.7-5.4-16.7-17.9,0-6.4,5.2-11.9,13.3-11.9a20.22,20.22,0,0,1,9.7,2.3l-1.7,4.4a14.57,14.57,0,0,0-7-1.9c-4.3,0-7.2,2.6-7.2,6.4,0,8.6,17.1,4.9,17.1,18.2-.1,7.1-6,12.4-14.2,12.4m31.1-.1c-6.6,0-9.1-4.3-9.1-8.5V87.5h-4.4V83.4h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2a4.07,4.07,0,0,0,4.3,4.4,5.66,5.66,0,0,0,1.8-.3v4.1a12.06,12.06,0,0,1-3.7.6m20.9.1c-9.2,0-13.6-3.7-13.6-9.7,0-8.5,8.9-10.7,19.4-11.7V92.4c0-4.3-2.9-5.6-7.2-5.6a22.34,22.34,0,0,0-8.5,1.8l-1.6-3.8a30.2,30.2,0,0,1,11.3-2.3c7,0,12.3,2.9,12.3,10.9v19.9c-2.6,1.4-6.9,2.3-12.1,2.3m5.8-18.2c-7.8.8-13,2.3-13,8.3,0,4.2,3,6.1,7.7,6.1a12.33,12.33,0,0,0,5.3-1.1Zm24.6,18.1c-6.6,0-9.1-4.3-9.1-8.5V87.5H454V83.4h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2a4.07,4.07,0,0,0,4.3,4.4,5.66,5.66,0,0,0,1.8-.3v4.1a12.69,12.69,0,0,1-3.7.6m12.3-37.6a3.52,3.52,0,1,1,3.9-3.5,3.65,3.65,0,0,1-3.9,3.5m-3.4,5.5h6.8v31.4h-6.8Zm21.4,32.2a19.46,19.46,0,0,1-9.5-2.3l1.8-4.3a13.21,13.21,0,0,0,6.9,1.9c3.4,0,6.2-2.2,6.2-4.9,0-7.5-13.8-4-13.8-14.2,0-4.7,4.2-9.2,11-9.2a16.21,16.21,0,0,1,8.8,2.3l-1.8,3.9a10.31,10.31,0,0,0-5.7-1.8c-3.5,0-5.6,2.1-5.6,4.5,0,7,14,3.9,14,14.4,0,4.9-4.7,9.7-12.3,9.7m29.4-.1c-6.6,0-9.1-4.3-9.1-8.5V87.5h-4.4V83.4h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2c0,2.5,1.4,4.4,4.3,4.4a5.66,5.66,0,0,0,1.8-.3v4.1a12.06,12.06,0,0,1-3.7.6m12.3-37.6a3.52,3.52,0,1,1,3.9-3.5c.1,2-1.7,3.5-3.9,3.5m-3.3,5.5H543v31.4h-6.8Zm26.2,32.2c-7.7,0-13.6-6.3-13.6-16.6s6.1-16.5,13.7-16.5c3.9,0,6.6,1.1,8,2.3L569,88.6a8.61,8.61,0,0,0-4.9-1.5c-5.5,0-8.3,4.7-8.3,11.8s3.3,11.9,8.2,11.9a8.39,8.39,0,0,0,4.9-1.6l1.7,4.1c-1.5,1.2-4.2,2.3-8.2,2.3m20.6,0a19.46,19.46,0,0,1-9.5-2.3l1.8-4.3a13.21,13.21,0,0,0,6.9,1.9c3.4,0,6.2-2.2,6.2-4.9,0-7.5-13.8-4-13.8-14.2,0-4.7,4.2-9.2,11-9.2a16.85,16.85,0,0,1,8.9,2.3l-1.8,3.9A10.31,10.31,0,0,0,587,87c-3.5,0-5.6,2.1-5.6,4.5,0,7,14,3.9,14,14.4-.1,4.9-4.9,9.7-12.4,9.7"
445
- />
446
- </g>
447
- </svg>
448
- </div>
449
- </a>
450
- </div>
451
- </div>
452
- </div>
453
- </div>
454
- {:else}
87
+ <!-- <div id="pagePath" class="hide">{path}</div> -->
88
+ {#if legacy && !compact}
89
+ <HeaderNavLegacy {bilingual} {lang} {baseurl} {baseother} {path} {i18n} />
90
+ {:else}
91
+ <HeaderNav {compact} {title} {baseurl} {i18n} />
92
+ {/if}
93
+ {#if title}
94
+ <div class="ons-header__main">
455
95
  <div class="ons-container">
456
- <div class="header col-wrap">
457
- <div class="col col--lg-one-third col--md-one-third">
458
- <a
459
- href="{baseurl}/"
460
- aria-label="{i18n('Office for National Statistics logo')} - {i18n('Homepage')}"
461
- >
462
- <svg
463
- version="1.1"
464
- xmlns="http://www.w3.org/2000/svg"
465
- xmlns:xlink="http://www.w3.org/1999/xlink"
466
- viewBox="0 0 595.3 116.3"
467
- aria-hidden="true"
468
- class="logo"
469
- >
470
- <title>{i18n("Office for National Statistics logo")} - {i18n("Homepage")}</title>
471
- <path
472
- class="ons-icon--logo__group ons-icon--logo__group--secondary"
473
- d="M0,70.5c1.8-3.7,3.6-7.2,5.6-10.7C3.3,54.2,1.5,48.5,0,42.6V70.5 M10.9,0C10.9,0,0,0,0,13.5v7.2
474
- C1,33,3.6,45,7.9,56.2c6.1-9.6,13.4-18.4,22.3-26C47.8,15.1,71.5,4.7,103.7,0.1L10.9,0z"
475
- fill="#a8bd3a"
476
- />
477
- <path
478
- class="ons-icon--logo__group ons-icon--logo__group--primary"
479
- d="M115.9,7.3c-36.8,3.5-62,14-80,29.4c-9.7,8.3-17.3,18-23.6,29c14.1,27.4,41.1,47.6,86,50.5h4.4
480
- c0,0,13.8,0.5,13.8-14.9V7.2L115.9,7.3 M21.2,85.4c-4.2-4.9-7.9-10.3-11-16C6.3,76.9,2.9,84.9,0,93.4v22.7l73.6,0.1
481
- C50.7,110.7,33.5,99.8,21.2,85.4"
482
- fill="#003c57"
483
- />
484
- <path
485
- class="ons-icon--logo__group ons-icon--logo__group--text"
486
- d="M161,51.9c-11.3,0-16.3-9.3-16.3-20.8c0-11.4,5-20.8,16.3-20.8s16.3,9.5,16.3,20.8
487
- C177.2,42.6,172.2,51.9,161,51.9 M161,13.6c-8.3,0-11.3,9.1-11.3,17.4c0,8.2,2.7,17.3,11.3,17.3s11.2-9.1,11.2-17.3
488
- C172.2,22.7,169.3,13.6,161,13.6 M191.2,22.5v28.7h-4.5V22.6H182v-2.8h4.7v-4.6c0-5.7,3.4-9.9,10-9.9c0.5,0,1.1,0.1,1.1,0.1v2.9
489
- h-0.5c-3.2,0-6,2.1-6,6.4v5.1h6.6v2.8L191.2,22.5L191.2,22.5z M210.1,22.5v28.7h-4.5V22.6h-4.7v-2.8h4.7v-4.6c0-5.7,3.4-9.9,10-9.9
490
- c0.5,0,1.1,0.1,1.1,0.1v2.9h-0.5c-3.2,0-6,2.1-6,6.4v5.1h6.6v2.8L210.1,22.5L210.1,22.5z M224.1,13.7c-1.6,0-2.9-1.2-2.9-2.8
491
- s1.3-2.9,2.9-2.9c1.6,0,2.9,1.3,2.9,2.9S225.8,13.7,224.1,13.7 M221.8,19.7h4.6v31.5h-4.6V19.7z M246.1,51.9
492
- c-7.4,0-13.2-6.4-13.2-16.5c0-10.3,5.8-16.5,13.4-16.5c3.8,0,6.3,1.1,7.7,2.2l-1.2,2.8c-1-0.8-2.9-1.7-5.5-1.7
493
- c-6.4,0-9.7,5.5-9.7,13c0,7.7,3.7,13.2,9.5,13.2c2.4,0,4.3-0.8,5.6-1.7l1.2,3C252.6,50.9,249.9,51.9,246.1,51.9 M261.4,37.3
494
- c0.6,7.4,4.7,11.1,11.1,11.1c3.9,0,6.8-1,8.5-1.9l1.3,3.2c-2,1.1-5.7,2.1-10.2,2.1c-8.8,0-15.1-5.3-15.1-16.6
495
- c0-10.8,5.8-16.4,13.7-16.4c8,0,12.9,4.9,12.9,15.4L261.4,37.3L261.4,37.3z M270.5,22c-5.1,0-9.4,4-9.3,12.8l17.9-2.5
496
- C279,25,275.5,22,270.5,22 M312.7,22.5v28.7h-4.5V22.6h-4.7v-2.8h4.7v-4.6c0-5.7,3.4-9.9,10-9.9c0.5,0,1.1,0.1,1.1,0.1v2.9h-0.5
497
- c-3.2,0-6,2.1-6,6.4v5.1h6.6v2.8L312.7,22.5z M335.9,51.9c-9.3,0-13.5-7.2-13.5-16.5s4.2-16.5,13.5-16.5s13.5,7.2,13.5,16.5
498
- C349.4,44.8,345.2,51.9,335.9,51.9 M335.9,22.1c-6.9,0-8.8,7-8.8,13.4c0,6.5,2.1,13.1,8.8,13.1c6.9,0,8.9-6.6,8.9-13.1
499
- S342.8,22.1,335.9,22.1 M369.2,22.7c-2.9-0.8-7.1-0.6-9.1,0.6v27.9h-4.6V21.1c3.3-1.4,6.6-2.2,12.5-2.2h2.4
500
- C370.4,19,369.2,22.7,369.2,22.7L369.2,22.7z M171.3,114.8l-17.8-27.5c-1.3-2.1-2.3-4.1-2.3-4.1h-0.1c0,0,0.2,2.3,0.2,4.8v26.8h-5.8
501
- V74.7h6.6l16.9,25.8c1.5,2.3,2.4,4.1,2.4,4.1h0.1c0,0-0.2-2.3-0.2-4.7V74.6h5.9v40.1L171.3,114.8L171.3,114.8z M196.3,115.6
502
- c-9.2,0-13.6-3.7-13.6-9.7c0-8.5,8.8-10.7,19.4-11.7v-1.8c0-4.3-2.9-5.6-7.2-5.6c-3.1,0-6.6,0.9-8.5,1.8l-1.6-3.8
503
- c2.2-0.9,6.3-2.3,11.3-2.3c7,0,12.3,2.9,12.3,10.9v19.9C205.7,114.7,201.5,115.6,196.3,115.6 M202.1,97.4c-7.8,0.8-13,2.3-13,8.3
504
- c0,4.2,3,6.1,7.7,6.1c2.2,0,4.1-0.5,5.3-1.1V97.4z M226.6,115.5c-6.6,0-9.1-4.3-9.1-8.5V87.5h-4.4v-4.1h4.4v-7l6.7-1.9v8.9h6.1v4.1
505
- h-6.1v19.2c0,2.5,1.4,4.4,4.3,4.4c0.6,0,1.2-0.1,1.8-0.3v4.1C229.7,115.1,228.4,115.5,226.6,115.5 M239,77.9c-2.1,0-3.9-1.6-3.9-3.5
506
- s1.8-3.5,3.9-3.5c2.1,0,3.9,1.6,3.9,3.5C242.9,76.4,241.1,77.9,239,77.9 M235.6,83.4h6.8v31.4h-6.8V83.4z M262.5,115.6
507
- c-9.6,0-14.4-7.1-14.4-16.5s4.8-16.6,14.4-16.6c9.6,0,14.3,7.2,14.3,16.6C276.9,108.5,272.1,115.6,262.5,115.6 M262.5,86.9
508
- c-5.8,0-7.5,6.1-7.5,12.2s1.8,11.9,7.5,11.9c5.8,0,7.5-5.8,7.5-11.9C270,92.9,268.3,86.9,262.5,86.9 M301.8,114.8V92.3
509
- c0-4-3.4-5.5-7.3-5.5c-2.1,0-4.1,0.4-5.4,0.9v27.1h-6.7v-30c2.9-1.3,7.6-2.3,12.5-2.3c8.2,0,13.7,2.8,13.7,9.7v22.6L301.8,114.8
510
- L301.8,114.8z M327.5,115.6c-9.2,0-13.6-3.7-13.6-9.7c0-8.5,8.9-10.7,19.4-11.7v-1.8c0-4.3-2.9-5.6-7.2-5.6c-3.1,0-6.6,0.9-8.5,1.8
511
- l-1.6-3.8c2.2-0.9,6.3-2.3,11.3-2.3c7,0,12.3,2.9,12.3,10.9v19.9C336.9,114.7,332.7,115.6,327.5,115.6 M333.3,97.4
512
- c-7.8,0.8-13,2.3-13,8.3c0,4.2,3,6.1,7.7,6.1c2.2,0,4.1-0.5,5.3-1.1V97.4z M346.5,114.8V69h6.7v45.8H346.5z M385.1,115.6
513
- c-4.8,0-8.7-1.1-10.9-2.3l1.9-4.9c1.6,0.9,4.6,1.9,7.7,1.9c4.7,0,8-2.7,8-6.7c0-8.8-16.7-5.4-16.7-17.9c0-6.4,5.2-11.9,13.3-11.9
514
- c4.3,0,7.8,1.2,9.7,2.3l-1.7,4.4c-1.5-0.9-4.2-1.9-7-1.9c-4.3,0-7.2,2.6-7.2,6.4c0,8.6,17.1,4.9,17.1,18.2
515
- C399.2,110.3,393.3,115.6,385.1,115.6 M416.2,115.5c-6.6,0-9.1-4.3-9.1-8.5V87.5h-4.4v-4.1h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2
516
- c0,2.5,1.5,4.4,4.3,4.4c0.6,0,1.2-0.1,1.8-0.3v4.1C419.3,115.1,417.9,115.5,416.2,115.5 M437.1,115.6c-9.2,0-13.6-3.7-13.6-9.7
517
- c0-8.5,8.9-10.7,19.4-11.7v-1.8c0-4.3-2.9-5.6-7.2-5.6c-3.1,0-6.6,0.9-8.5,1.8l-1.6-3.8c2.2-0.9,6.3-2.3,11.3-2.3
518
- c7,0,12.3,2.9,12.3,10.9v19.9C446.6,114.7,442.3,115.6,437.1,115.6 M442.9,97.4c-7.8,0.8-13,2.3-13,8.3c0,4.2,3,6.1,7.7,6.1
519
- c2.2,0,4.1-0.5,5.3-1.1V97.4z M467.5,115.5c-6.6,0-9.1-4.3-9.1-8.5V87.5H454v-4.1h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2
520
- c0,2.5,1.5,4.4,4.3,4.4c0.6,0,1.2-0.1,1.8-0.3v4.1C470.5,115.1,469.2,115.5,467.5,115.5 M479.8,77.9c-2.1,0-3.9-1.6-3.9-3.5
521
- s1.8-3.5,3.9-3.5s3.9,1.6,3.9,3.5C483.7,76.4,482,77.9,479.8,77.9 M476.4,83.4h6.8v31.4h-6.8V83.4z M497.8,115.6
522
- c-3.9,0-7.6-1.1-9.5-2.3l1.8-4.3c1.3,0.9,4,1.9,6.9,1.9c3.4,0,6.2-2.2,6.2-4.9c0-7.5-13.8-4-13.8-14.2c0-4.7,4.2-9.2,11-9.2
523
- c3.9,0,6.7,1,8.8,2.3l-1.8,3.9c-1-0.7-3.1-1.8-5.7-1.8c-3.5,0-5.6,2.1-5.6,4.5c0,7,14,3.9,14,14.4
524
- C510.1,110.8,505.4,115.6,497.8,115.6 M527.2,115.5c-6.6,0-9.1-4.3-9.1-8.5V87.5h-4.4v-4.1h4.4v-7l6.7-1.9v8.9h6.1v4.1h-6.1v19.2
525
- c0,2.5,1.4,4.4,4.3,4.4c0.6,0,1.2-0.1,1.8-0.3v4.1C530.3,115.1,528.9,115.5,527.2,115.5 M539.5,77.9c-2.1,0-3.9-1.6-3.9-3.5
526
- s1.8-3.5,3.9-3.5c2.1,0,3.9,1.6,3.9,3.5C543.5,76.4,541.7,77.9,539.5,77.9 M536.2,83.4h6.8v31.4h-6.8V83.4z M562.4,115.6
527
- c-7.7,0-13.6-6.3-13.6-16.6c0-10.4,6.1-16.5,13.7-16.5c3.9,0,6.6,1.1,8,2.3l-1.5,3.8c-1-0.7-2.7-1.5-4.9-1.5
528
- c-5.5,0-8.3,4.7-8.3,11.8c0,7.2,3.3,11.9,8.2,11.9c2.1,0,3.8-0.8,4.9-1.6l1.7,4.1C569.1,114.5,566.4,115.6,562.4,115.6 M583,115.6
529
- c-3.9,0-7.6-1.1-9.5-2.3l1.8-4.3c1.3,0.9,4,1.9,6.9,1.9c3.4,0,6.2-2.2,6.2-4.9c0-7.5-13.8-4-13.8-14.2c0-4.7,4.2-9.2,11-9.2
530
- c3.9,0,6.7,1,8.9,2.3l-1.8,3.9c-1-0.7-3.1-1.8-5.7-1.8c-3.5,0-5.6,2.1-5.6,4.5c0,7,14,3.9,14,14.4
531
- C595.3,110.8,590.5,115.6,583,115.6"
532
- fill="#003c57"
533
- />
534
- </svg>
535
- </a>
536
- </div>
537
- <div
538
- class="col col--lg-two-thirds col--md-two-thirds hide--sm print--hide language--js__container"
539
- >
540
- <div class="language" style:min-height="20px">
541
- {#if bilingual && lang == "en"}
542
- <span>English (EN) | </span>
543
- <a href="{baseother}{path}" class="language__link" lang="cy">Cymraeg (CY)</a>
544
- {:else if bilingual}
545
- <a href="{baseother}{path}" class="language__link" lang="en">English (EN)</a>
546
- <span> | Cymraeg (CY)</span>
547
- {/if}
548
- </div>
549
- </div>
550
- <div class="secondary-nav col col--lg-two-thirds col--md-two-thirds print--hide">
551
- <ul class="secondary-nav__list js-nav-clone__list">
552
- {#each menu.filter((d) => d.secondary) as item}
553
- <li class="secondary-nav__item">
554
- <a class="secondary-nav__link js-nav-clone__link" href="{baseurl}{item.url}"
555
- >{item["label_" + lang]}</a
556
- >
557
- </li>
558
- {/each}
559
- </ul>
560
- </div>
561
- </div>
562
- </div>
563
- <div class="primary-nav print--hide">
564
- <!-- Controls -->
565
- <nav aria-label="Header links">
566
- <ul class="nav--controls">
567
- <li class="nav--controls__item">
568
- <a
569
- href="#nav-primary"
570
- id="menu-toggle"
571
- aria-controls="nav-primary"
572
- aria-expanded="false"
573
- class="nav--controls__menu"
574
- >
575
- <span class="nav--controls__text">{i18n("Menu")}</span>
576
- </a>
577
- </li>
578
- <li class="nav--controls__item">
579
- <a
580
- href="#nav-search"
581
- id="search-toggle"
582
- aria-controls="nav-search"
583
- aria-expanded="false"
584
- class="nav--controls__search"
585
- >
586
- <span class="nav--controls__text">{i18n("Search")}</span>
587
- </a>
588
- </li>
589
- </ul>
590
-
591
- <!-- Main Navigation -->
592
- <ul
593
- class="ons-container nav-main--hidden primary-nav__list"
594
- id="nav-primary"
595
- aria-expanded="false"
596
- >
597
- <!-- Home Link -->
598
- <li class="primary-nav__item js-nav">
599
- <a class="primary-nav__link col col--md-7 col--lg-9" href="{baseurl}/"
600
- >{i18n("Home")}</a
601
- >
602
- </li>
603
-
604
- <!-- Menu Items -->
605
- {#each menu.filter((d) => !d.secondary) as item, i}
606
- {#if item.children}
607
- <li class="primary-nav__item js-nav js-expandable">
608
- <a
609
- class="primary-nav__link col col--md-8 col--lg-10"
610
- href="{baseurl}{item.url}"
611
- aria-expanded="false"
612
- aria-label="{item['label_' + lang]} sub menu"
613
- on:click={(e) => toggle_sm(e, i)}
614
- >
615
- <span aria-hidden="true" class="expansion-indicator"></span>
616
- <span class="submenu-title">
617
- {item[`label_${lang}`]}
618
- </span>
619
- </a>
620
- <ul
621
- class="primary-nav__child-list col col--md-16 col--lg-20 js-expandable__content js-nav-hidden jsEnhance"
622
- aria-expanded="false"
623
- aria-label="submenu"
624
- >
625
- {#each [...item.children].sort( (a, b) => a[`label_${lang}`].localeCompare(b[`label_${lang}`]) ) as child}
626
- <li class="primary-nav__child-item js-expandable__child">
627
- <a
628
- class="primary-nav__child-link"
629
- tabindex="-1"
630
- href="{baseurl}{child.url}">{child[`label_${lang}`]}</a
631
- >
632
- </li>
633
- {/each}
634
- </ul>
635
- </li>
636
- {:else}
637
- <li class="primary-nav__item js-nav">
638
- <a
639
- class="primary-nav__link col col--md-8 col--lg-10"
640
- href="{baseurl}{item.url}"
641
- >
642
- {item["label_" + lang]}
643
- </a>
644
- </li>
645
- {/if}
646
- {/each}
647
-
648
- <!-- Language Switcher -->
649
- <li class="hide--md primary-nav__language">
650
- {#if lang == "en"}
651
- <span>English (EN) | </span>
652
- <a href="{baseother}{path}" class="language__link" lang="cy">Cymraeg (CY)</a>
653
- {:else}
654
- <a href="{baseother}{path}" class="language__link" lang="en">English (EN)</a>
655
- <span> | Cymraeg (EN)</span>
656
- {/if}
657
- </li>
658
- </ul>
659
- </nav>
660
- </div>
661
- <div class="search nav-search--hidden print--hide" id="searchBar">
662
- <div class="ons-container" role="search">
663
- <form class="col-wrap search__form" action="{baseurl}/search">
664
- <label class="search__label col col--md-23 col--lg-24" for="nav-search"
665
- >{i18n("Search for a keyword(s) or time series ID")}</label
666
- >
667
- <input
668
- type="search"
669
- autocomplete="off"
670
- class="search__input col col--md-21 col--lg-32"
671
- id="nav-search"
672
- name="q"
673
- value=""
674
- />
675
- <button
676
- type="submit"
677
- class="search__button col--md-3 col--lg-3"
678
- id="nav-search-submit"
679
- aria-label={i18n("Search")}
680
- >
681
- <span class="icon-search--light">
682
- <svg
683
- class="ons-svg-icon ons-svg-icon--m"
684
- viewBox="0 0 12 12"
685
- xmlns="http://www.w3.org/2000/svg"
686
- aria-hidden="true"
687
- fill="currentColor"
688
- >
689
- <path
690
- d="M11.86 10.23 8.62 6.99a4.63 4.63 0 1 0-6.34 1.64 4.55 4.55 0 0 0 2.36.64 4.65 4.65 0 0 0 2.33-.65l3.24 3.23a.46.46 0 0
691
- 0 .65 0l1-1a.48.48 0 0 0 0-.62Zm-5-3.32a3.28 3.28 0 0 1-2.31.93 3.22 3.22 0 1 1 2.35-.93Z"
692
- ></path>
693
- </svg>
694
- </span>
695
- </button>
696
- </form>
697
- </div>
698
- </div>
699
- {/if}
700
- {#if title}
701
- <div class="ons-header__main">
702
- <div class="ons-container">
703
- <div
704
- class="ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center ons-grid-flex--no-wrap ons-grid--gutterless"
705
- >
706
- <div class="ons-grid__col ons-col-auto ons-u-flex-shrink">
707
- {#if titleHref}
708
- <a class="ons-header__title-link" href={titleHref}>
709
- <div class="ons-header__title">{title}</div>
710
- </a>
711
- {:else}
96
+ <div
97
+ class="ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center ons-grid-flex--no-wrap ons-grid--gutterless"
98
+ >
99
+ <div class="ons-grid__col ons-col-auto ons-u-flex-shrink">
100
+ {#if titleHref}
101
+ <a class="ons-header__title-link" href={titleHref}>
712
102
  <div class="ons-header__title">{title}</div>
713
- {/if}
714
- </div>
103
+ </a>
104
+ {:else}
105
+ <div class="ons-header__title">{title}</div>
106
+ {/if}
715
107
  </div>
716
108
  </div>
717
109
  </div>
718
- {/if}
110
+ </div>
719
111
  {/if}
720
112
  </Theme>
721
113
  </header>