@gov-cy/govcy-frontend-renderer 1.20.0 → 1.21.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.
|
@@ -2691,7 +2691,7 @@ context.setVariable("hint", t_16);
|
|
|
2691
2691
|
var t_17;
|
|
2692
2692
|
t_17 = (function() {
|
|
2693
2693
|
var output = "";
|
|
2694
|
-
output += runtime.suppressValue((lineno =
|
|
2694
|
+
output += runtime.suppressValue((lineno = 23, colno = 41, runtime.callWrap(t_8, "govcyGetContent", context, ["fileView_view",runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
|
|
2695
2695
|
;
|
|
2696
2696
|
return output;
|
|
2697
2697
|
})()
|
|
@@ -2706,7 +2706,7 @@ context.addExport("viewLabel", t_17);
|
|
|
2706
2706
|
var t_18;
|
|
2707
2707
|
t_18 = (function() {
|
|
2708
2708
|
var output = "";
|
|
2709
|
-
output += runtime.suppressValue((lineno =
|
|
2709
|
+
output += runtime.suppressValue((lineno = 24, colno = 43, runtime.callWrap(t_8, "govcyGetContent", context, ["fileView_delete",runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
|
|
2710
2710
|
;
|
|
2711
2711
|
return output;
|
|
2712
2712
|
})()
|
|
@@ -2727,7 +2727,7 @@ t_2 += "-view-control\" ";
|
|
|
2727
2727
|
;
|
|
2728
2728
|
}
|
|
2729
2729
|
t_2 += "class=\"govcy-form\">\n ";
|
|
2730
|
-
t_2 += runtime.suppressValue((lineno =
|
|
2730
|
+
t_2 += runtime.suppressValue((lineno = 28, colno = 23, runtime.callWrap(t_12, "formControl", context, [{"classes": runtime.memberLookup((l_params),"classes"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_19 = runtime.makeMacro(
|
|
2731
2731
|
[],
|
|
2732
2732
|
[],
|
|
2733
2733
|
function (kwargs) {
|
|
@@ -2744,7 +2744,7 @@ else {
|
|
|
2744
2744
|
t_20 += "<p class=\"govcy-label govcy-label-primary\">";
|
|
2745
2745
|
;
|
|
2746
2746
|
}
|
|
2747
|
-
t_20 += runtime.suppressValue((lineno =
|
|
2747
|
+
t_20 += runtime.suppressValue((lineno = 29, colno = 135, runtime.callWrap(t_6, "govcyLocalizeContent", context, [runtime.memberLookup((l_params),"label"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
|
|
2748
2748
|
if(runtime.memberLookup((l_params),"isPageHeading")) {
|
|
2749
2749
|
t_20 += "</h1>";
|
|
2750
2750
|
;
|
|
@@ -2753,7 +2753,7 @@ else {
|
|
|
2753
2753
|
t_20 += "</p>";
|
|
2754
2754
|
;
|
|
2755
2755
|
}
|
|
2756
|
-
t_20 += runtime.suppressValue((lineno =
|
|
2756
|
+
t_20 += runtime.suppressValue((lineno = 31, colno = 20, runtime.callWrap(t_16, "hint", context, [{"hint": runtime.memberLookup((l_params),"hint"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_21 = runtime.makeMacro(
|
|
2757
2757
|
[],
|
|
2758
2758
|
[],
|
|
2759
2759
|
function (kwargs) {
|
|
@@ -2769,27 +2769,41 @@ return new runtime.SafeString(t_22);
|
|
|
2769
2769
|
return macro_t_21;})()})])), env.opts.autoescape);
|
|
2770
2770
|
t_20 += "<a href=\"";
|
|
2771
2771
|
t_20 += runtime.suppressValue(runtime.memberLookup((l_params),"viewHref"), env.opts.autoescape);
|
|
2772
|
-
t_20 += "\"
|
|
2772
|
+
t_20 += "\"";
|
|
2773
|
+
if(runtime.memberLookup((l_params),"viewTarget")) {
|
|
2774
|
+
t_20 += " target=\"";
|
|
2775
|
+
t_20 += runtime.suppressValue(runtime.memberLookup((l_params),"viewTarget"), env.opts.autoescape);
|
|
2776
|
+
t_20 += "\"";
|
|
2777
|
+
;
|
|
2778
|
+
}
|
|
2779
|
+
t_20 += ">";
|
|
2773
2780
|
t_20 += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "viewLabel"), env.opts.autoescape);
|
|
2774
2781
|
if(runtime.memberLookup((l_params),"visuallyHiddenText")) {
|
|
2775
2782
|
t_20 += "<span class=\"govcy-visually-hidden\">";
|
|
2776
|
-
t_20 += runtime.suppressValue((lineno =
|
|
2783
|
+
t_20 += runtime.suppressValue((lineno = 33, colno = 214, runtime.callWrap(t_6, "govcyLocalizeContent", context, [runtime.memberLookup((l_params),"visuallyHiddenText"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
|
|
2777
2784
|
t_20 += "</span>";
|
|
2778
2785
|
;
|
|
2779
2786
|
}
|
|
2780
2787
|
t_20 += "</a>";
|
|
2781
2788
|
t_20 += "<a class=\"govcy-ml-3\" href=\"";
|
|
2782
2789
|
t_20 += runtime.suppressValue(runtime.memberLookup((l_params),"deleteHref"), env.opts.autoescape);
|
|
2783
|
-
t_20 += "\"
|
|
2790
|
+
t_20 += "\"";
|
|
2791
|
+
if(runtime.memberLookup((l_params),"deleteTarget")) {
|
|
2792
|
+
t_20 += " target=\"";
|
|
2793
|
+
t_20 += runtime.suppressValue(runtime.memberLookup((l_params),"deleteTarget"), env.opts.autoescape);
|
|
2794
|
+
t_20 += "\"";
|
|
2795
|
+
;
|
|
2796
|
+
}
|
|
2797
|
+
t_20 += ">";
|
|
2784
2798
|
t_20 += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "deleteLabel"), env.opts.autoescape);
|
|
2785
2799
|
if(runtime.memberLookup((l_params),"visuallyHiddenText")) {
|
|
2786
2800
|
t_20 += "<span class=\"govcy-visually-hidden\">";
|
|
2787
|
-
t_20 += runtime.suppressValue((lineno =
|
|
2801
|
+
t_20 += runtime.suppressValue((lineno = 35, colno = 241, runtime.callWrap(t_6, "govcyLocalizeContent", context, [runtime.memberLookup((l_params),"visuallyHiddenText"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
|
|
2788
2802
|
t_20 += "</span>";
|
|
2789
2803
|
;
|
|
2790
2804
|
}
|
|
2791
2805
|
t_20 += "</a>\n ";
|
|
2792
|
-
if(runtime.memberLookup((l_params),"name")
|
|
2806
|
+
if(runtime.memberLookup((l_params),"name")) {
|
|
2793
2807
|
t_20 += "<input type=\"hidden\" name=\"";
|
|
2794
2808
|
t_20 += runtime.suppressValue(runtime.memberLookup((l_params),"name"), env.opts.autoescape);
|
|
2795
2809
|
t_20 += "Attachment[fileId]\" value=\"";
|
package/package.json
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
@param {object} label The label text. Will escape text. `{en:"Content",el:"Περιεχομένο"}`
|
|
3
3
|
@param {string} id The input id. Will append '-view-control', for example 'id-card-proof-view-control'. Optional
|
|
4
4
|
@param {string} viewHref The view link's href. Will escape text
|
|
5
|
+
@param {string} viewTarget The view link's target. Optional. Will escape text
|
|
5
6
|
@param {string} deleteHref The delete link's href. Will escape text
|
|
7
|
+
@param {string} deleteTarget The delete link's target. Optional. Will escape text
|
|
6
8
|
@param {object} visuallyHiddenText The visuallyHiddenText text. Optional. Will escape text. `{en:"Content",el:"Περιεχομένο"}`
|
|
7
9
|
@param {object} hint The hint text. Optional. Will escape text. `{en:"Content",el:"Περιεχομένο"}`
|
|
8
10
|
@param {string} classes Additional classes to add to the outer div. Optional
|
|
@@ -29,9 +31,9 @@
|
|
|
29
31
|
{#- render hint -#}
|
|
30
32
|
{% call hint({hint:params.hint, lang:params.lang}) %}{% endcall %}
|
|
31
33
|
{#- render view -#}
|
|
32
|
-
<a href="{{ params.viewHref }}">{{viewLabel}}{%if params.visuallyHiddenText%}<span class="govcy-visually-hidden"> {{- govcyLocalizeContent(params.visuallyHiddenText, params.lang) -}}</span>{% endif %}</a>
|
|
34
|
+
<a href="{{ params.viewHref }}"{%if params.viewTarget%} target="{{ params.viewTarget }}"{% endif %}>{{viewLabel}}{%if params.visuallyHiddenText%}<span class="govcy-visually-hidden"> {{- govcyLocalizeContent(params.visuallyHiddenText, params.lang) -}}</span>{% endif %}</a>
|
|
33
35
|
{#- render delete -#}
|
|
34
|
-
<a class="govcy-ml-3" href="{{ params.deleteHref }}">{{deleteLabel}}{%if params.visuallyHiddenText%}<span class="govcy-visually-hidden"> {{- govcyLocalizeContent(params.visuallyHiddenText, params.lang) -}}</span>{% endif %}</a>
|
|
36
|
+
<a class="govcy-ml-3" href="{{ params.deleteHref }}"{%if params.deleteTarget%} target="{{ params.deleteTarget }}"{% endif %}>{{deleteLabel}}{%if params.visuallyHiddenText%}<span class="govcy-visually-hidden"> {{- govcyLocalizeContent(params.visuallyHiddenText, params.lang) -}}</span>{% endif %}</a>
|
|
35
37
|
{% if params.name -%}
|
|
36
38
|
<input type="hidden" name="{{ params.name }}Attachment[fileId]" value="{{ params.fileId }}">
|
|
37
39
|
<input type="hidden" name="{{ params.name }}Attachment[sha256]" value="{{ params.sha256 }}">
|