@gov-cy/govcy-frontend-renderer 1.22.0 → 1.22.1
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.
|
@@ -5392,6 +5392,23 @@ var t_9 = t_3.govcyGetContent;
|
|
|
5392
5392
|
cb(new Error("cannot import 'govcyGetContent'")); return;
|
|
5393
5393
|
}
|
|
5394
5394
|
context.setVariable("govcyGetContent", t_9);
|
|
5395
|
+
if(runtime.memberLookup((l_params),"entryCount")) {
|
|
5396
|
+
var t_10;
|
|
5397
|
+
t_10 = (lineno = 52, colno = 39, runtime.callWrap(t_9, "govcyGetContent", context, ["common_entry",runtime.memberLookup((l_params),"lang")]));
|
|
5398
|
+
frame.set("entryText", t_10, true);
|
|
5399
|
+
if(frame.topLevel) {
|
|
5400
|
+
context.setVariable("entryText", t_10);
|
|
5401
|
+
}
|
|
5402
|
+
if(frame.topLevel) {
|
|
5403
|
+
context.addExport("entryText", t_10);
|
|
5404
|
+
}
|
|
5405
|
+
t_2 += "<h3 class=\"govcy-visually-hidden\">";
|
|
5406
|
+
t_2 += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "entryText"), env.opts.autoescape);
|
|
5407
|
+
t_2 += " ";
|
|
5408
|
+
t_2 += runtime.suppressValue(runtime.memberLookup((l_params),"entryCount"), env.opts.autoescape);
|
|
5409
|
+
t_2 += "</h3>";
|
|
5410
|
+
;
|
|
5411
|
+
}
|
|
5395
5412
|
t_2 += "<dl ";
|
|
5396
5413
|
if(runtime.memberLookup((l_params),"id")) {
|
|
5397
5414
|
t_2 += "id=\"";
|
|
@@ -5414,25 +5431,8 @@ t_2 += runtime.suppressValue(runtime.memberLookup((l_params),"classes"), env.opt
|
|
|
5414
5431
|
;
|
|
5415
5432
|
}
|
|
5416
5433
|
t_2 += "\"";
|
|
5417
|
-
t_2 += runtime.suppressValue((lineno =
|
|
5434
|
+
t_2 += runtime.suppressValue((lineno = 55, colno = 239, runtime.callWrap(t_7, "govcyLangAttribute", context, [runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
|
|
5418
5435
|
t_2 += ">";
|
|
5419
|
-
if(runtime.memberLookup((l_params),"entryCount")) {
|
|
5420
|
-
var t_10;
|
|
5421
|
-
t_10 = (lineno = 53, colno = 43, runtime.callWrap(t_9, "govcyGetContent", context, ["common_entry",runtime.memberLookup((l_params),"lang")]));
|
|
5422
|
-
frame.set("entryText", t_10, true);
|
|
5423
|
-
if(frame.topLevel) {
|
|
5424
|
-
context.setVariable("entryText", t_10);
|
|
5425
|
-
}
|
|
5426
|
-
if(frame.topLevel) {
|
|
5427
|
-
context.addExport("entryText", t_10);
|
|
5428
|
-
}
|
|
5429
|
-
t_2 += "<dt><span class=\"govcy-visually-hidden\">";
|
|
5430
|
-
t_2 += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "entryText"), env.opts.autoescape);
|
|
5431
|
-
t_2 += " ";
|
|
5432
|
-
t_2 += runtime.suppressValue(runtime.memberLookup((l_params),"entryCount"), env.opts.autoescape);
|
|
5433
|
-
t_2 += "</span></dt>";
|
|
5434
|
-
;
|
|
5435
|
-
}
|
|
5436
5436
|
frame = frame.push();
|
|
5437
5437
|
var t_13 = runtime.memberLookup((l_params),"items");
|
|
5438
5438
|
if(t_13) {t_13 = runtime.fromIterator(t_13);
|
package/package.json
CHANGED
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
{% macro summaryList(params) -%}
|
|
49
49
|
{#- Import localizer from utilities -#}
|
|
50
50
|
{%- from "../utilities/govcyUtilities.njk" import govcyLocalizeContent, govcyLangAttribute, govcyElementsFromArray, govcyGetContent -%}
|
|
51
|
+
{#- Render visually hidden text for screen readers the entry number -#}
|
|
52
|
+
{%- if params.entryCount -%}
|
|
53
|
+
{%- set entryText = govcyGetContent('common_entry', params.lang) -%}
|
|
54
|
+
<h3 class="govcy-visually-hidden">{{ entryText }} {{ params.entryCount}}</h3>
|
|
55
|
+
{%- endif -%}
|
|
51
56
|
<dl {% if params.id %}id="{{ params.id }}" {% endif %}class="{% if not params.isInnerList %}govcy-summary-list{% else %}govcy-summary-list-row-internal{% endif %}{% if params.classes %} {{ params.classes }}{% endif %}"{{ govcyLangAttribute(params.lang) }}>
|
|
52
|
-
{#- Render visually hidden text for screen readers the entry number -#}
|
|
53
|
-
{%- if params.entryCount -%}
|
|
54
|
-
{%- set entryText = govcyGetContent('common_entry', params.lang) -%}
|
|
55
|
-
<dt><span class="govcy-visually-hidden">{{ entryText }} {{ params.entryCount}}</span></dt>
|
|
56
|
-
{%- endif -%}
|
|
57
57
|
{%- for item in params.items %}
|
|
58
58
|
{% if not params.isInnerList %}<div class="govcy-summary-list-row">{% endif %}
|
|
59
59
|
{#- KEY -#}
|
|
@@ -141,7 +141,11 @@ To use this template you need to pass the following data:
|
|
|
141
141
|
|
|
142
142
|
<!-- CSS -->
|
|
143
143
|
<link rel="stylesheet" href="{{ site.cdn.dist }}/css/govcy.uds.min.css"{% if site.cdn.cssIntegrity %} integrity="{{ site.cdn.cssIntegrity }}" crossorigin="anonymous"{% endif%}>
|
|
144
|
-
|
|
144
|
+
<style>
|
|
145
|
+
dl.govcy-summary-list-row-internal:not(:first-of-type) {
|
|
146
|
+
margin-top: 0.5rem !important;
|
|
147
|
+
}
|
|
148
|
+
</style>
|
|
145
149
|
<title>{% if pageData.title %}{{ govcyLocalizeContent(pageData.title, site.lang) }} - {% endif %}{% if site.title %}{{ govcyLocalizeContent(site.title, site.lang) }} - {% endif %}gov.cy</title>
|
|
146
150
|
<meta name="description" content="{{ govcyLocalizeContent(site.description, site.lang) }}">
|
|
147
151
|
{% if site.matomo and site.matomo.url and site.matomo.siteId %}
|