@unicef-polymer/etools-form-builder 4.0.0-rc.4 → 4.0.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.
|
@@ -24,6 +24,8 @@ const translations = {
|
|
|
24
24
|
PARTNER: 'Partner',
|
|
25
25
|
CP_OUTPUT: 'CP Output',
|
|
26
26
|
PD_SPD: 'PD/SPD',
|
|
27
|
+
GPD: 'GPD',
|
|
28
|
+
EWP_ACTIVITY: 'Key Interventions and Activities',
|
|
27
29
|
TEXT_MUST_BE_LESS_CHARS: 'Text must be less than {0} character',
|
|
28
30
|
DOES_NOT_MATCH_PATTERN: 'Does not match allowed pattern',
|
|
29
31
|
NUMBER_MUST_BE_GREATER_THAN: 'Number must be greater than {0}',
|
|
@@ -74,6 +76,8 @@ const translations = {
|
|
|
74
76
|
PARTNER: 'Partenaire',
|
|
75
77
|
CP_OUTPUT: 'Sortie CP',
|
|
76
78
|
PD_SPD: 'PD/SPD',
|
|
79
|
+
GPD: 'GPD',
|
|
80
|
+
EWP_ACTIVITY: 'Interventions et activités clés',
|
|
77
81
|
TEXT_MUST_BE_LESS_CHARS: 'Le texte doit comporter moins de {0} caractères',
|
|
78
82
|
DOES_NOT_MATCH_PATTERN: 'Ne correspond pas au modèle autorisé',
|
|
79
83
|
NUMBER_MUST_BE_GREATER_THAN: 'Le nombre doit être supérieur à {0}',
|
|
@@ -124,6 +128,8 @@ const translations = {
|
|
|
124
128
|
PARTNER: 'شريك',
|
|
125
129
|
CP_OUTPUT: 'إخراج سي بي',
|
|
126
130
|
PD_SPD: 'بي دي/SPD',
|
|
131
|
+
GPD: 'GPD',
|
|
132
|
+
EWP_ACTIVITY: 'التدخلات والأنشطة الرئيسية',
|
|
127
133
|
TEXT_MUST_BE_LESS_CHARS: 'يجب أن يكون النص أقل من {0} حرف',
|
|
128
134
|
DOES_NOT_MATCH_PATTERN: 'لا يتطابق مع النمط المسموح به',
|
|
129
135
|
NUMBER_MUST_BE_GREATER_THAN: 'يجب أن يكون الرقم أكبر من {0}',
|
|
@@ -174,6 +180,8 @@ const translations = {
|
|
|
174
180
|
PARTNER: 'Pareja',
|
|
175
181
|
CP_OUTPUT: 'Salida CP',
|
|
176
182
|
PD_SPD: 'PD/SPD',
|
|
183
|
+
GPD: 'GPD',
|
|
184
|
+
EWP_ACTIVITY: 'Intervenciones y actividades clave',
|
|
177
185
|
TEXT_MUST_BE_LESS_CHARS: 'El texto debe tener menos de {0} caracteres',
|
|
178
186
|
DOES_NOT_MATCH_PATTERN: 'No coincide con el patrón permitido',
|
|
179
187
|
NUMBER_MUST_BE_GREATER_THAN: 'El número debe ser mayor que {0}',
|
|
@@ -12,6 +12,8 @@ import '@unicef-polymer/etools-unicef/src/etools-icon-button/etools-icon-button'
|
|
|
12
12
|
const PARTNER_KEY = 'partner';
|
|
13
13
|
const OUTPUT_KEY = 'output';
|
|
14
14
|
const INTERVENTION_KEY = 'intervention';
|
|
15
|
+
const GPD_KEY = 'gpd';
|
|
16
|
+
const EWP_ACTIVITY_KEY = 'ewp_activity';
|
|
15
17
|
let FormCollapsedCard = class FormCollapsedCard extends FormAbstractGroup {
|
|
16
18
|
constructor() {
|
|
17
19
|
super(...arguments);
|
|
@@ -76,7 +78,7 @@ let FormCollapsedCard = class FormCollapsedCard extends FormAbstractGroup {
|
|
|
76
78
|
return html `
|
|
77
79
|
<section class="elevation page-content card-container" elevation="1">
|
|
78
80
|
<etools-fb-card
|
|
79
|
-
card-title="${this.retrieveTitle(this.parentGroupName) + this.groupStructure.title}"
|
|
81
|
+
card-title="${this.retrieveTitle(this.parentGroupName) + ': ' + this.groupStructure.title}"
|
|
80
82
|
is-collapsible
|
|
81
83
|
?is-editable="${!this.readonly}"
|
|
82
84
|
?edit="${this.isEditMode}"
|
|
@@ -138,6 +140,10 @@ let FormCollapsedCard = class FormCollapsedCard extends FormAbstractGroup {
|
|
|
138
140
|
return `${getTranslation(this.language, 'CP_OUTPUT')}`;
|
|
139
141
|
case INTERVENTION_KEY:
|
|
140
142
|
return `${getTranslation(this.language, 'PD_SPD')}`;
|
|
143
|
+
case EWP_ACTIVITY_KEY:
|
|
144
|
+
return `${getTranslation(this.language, 'EWP_ACTIVITY')}`;
|
|
145
|
+
case GPD_KEY:
|
|
146
|
+
return `${getTranslation(this.language, 'GPD')}`;
|
|
141
147
|
default:
|
|
142
148
|
return '';
|
|
143
149
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unicef-polymer/etools-form-builder",
|
|
3
3
|
"description": "Etools FM Form Builder components",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"eTools Team"
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"typescript": "^5.9.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@unicef-polymer/etools-unicef": ">=2.0.0
|
|
36
|
+
"@unicef-polymer/etools-unicef": ">=2.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@eslint/eslintrc": "^3.2.0",
|
|
40
40
|
"@eslint/js": "^9.16.0",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
42
42
|
"@typescript-eslint/parser": "^8.17.0",
|
|
43
|
-
"@unicef-polymer/etools-unicef": "^2.0.0
|
|
43
|
+
"@unicef-polymer/etools-unicef": "^2.0.0",
|
|
44
44
|
"eslint": "^9.16.0",
|
|
45
45
|
"eslint-config-prettier": "^9.1.0",
|
|
46
46
|
"eslint-plugin-html": "^8.1.2",
|