@lysaab/lysa-pep 1.0.4-0 → 1.0.5-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.
Files changed (89) hide show
  1. package/{lib/Exports.d.ts → Exports.d.ts} +7 -7
  2. package/{lib/Exports.js → Exports.js} +7 -7
  3. package/{lib/components → components}/CountrySelect.d.ts +15 -15
  4. package/{lib/components → components}/CountrySelect.js +30 -30
  5. package/{lib/components → components}/PepAnswers.d.ts +8 -8
  6. package/{lib/components → components}/PepAnswers.js +131 -131
  7. package/{lib/components → components}/PepAnswers.scss +7 -7
  8. package/messages/src/components/CountrySelect.json +1 -0
  9. package/messages/src/components/PepAnswers.json +1 -0
  10. package/messages/src/pages/IsPep/IsPepMessages.json +1 -0
  11. package/messages/src/pages/IsPep/IsPepPage.json +1 -0
  12. package/messages/src/pages/RelationPage/RelationMessages.json +1 -0
  13. package/messages/src/pages/RelationPage/RelationPage.json +1 -0
  14. package/messages/src/pages/RolePage/RoleMessages.json +1 -0
  15. package/messages/src/pages/RolePage/RolePage.json +1 -0
  16. package/messages/src/pages/StatusPage/StatusMessages.json +1 -0
  17. package/messages/src/pages/StatusPage/StatusPage.json +1 -0
  18. package/{lib/model → model}/Countries.d.ts +4 -4
  19. package/{lib/model → model}/Countries.js +1002 -1002
  20. package/{lib/model → model}/PepModel.d.ts +7 -7
  21. package/{lib/model → model}/PepModel.js +40 -40
  22. package/{lib/model → model}/PepTexts.d.ts +380 -322
  23. package/{lib/model → model}/PepTexts.js +552 -467
  24. package/package.json +69 -57
  25. package/{lib/pages → pages}/IsPep/IsPepMessages.d.ts +32 -32
  26. package/{lib/pages → pages}/IsPep/IsPepMessages.js +66 -66
  27. package/{lib/pages → pages}/IsPep/IsPepPage.d.ts +14 -14
  28. package/{lib/pages → pages}/IsPep/IsPepPage.js +60 -60
  29. package/{lib/pages → pages}/PepContext.d.ts +80 -80
  30. package/{lib/pages → pages}/PepContext.js +88 -88
  31. package/pages/PepIsPepPage.d.ts +15 -0
  32. package/{lib/pages → pages}/PepIsPepPage.js +59 -57
  33. package/{lib/pages → pages}/PepRelationPage.d.ts +6 -6
  34. package/{lib/pages → pages}/PepRelationPage.js +79 -83
  35. package/{lib/pages → pages}/PepRolePage.d.ts +10 -9
  36. package/{lib/pages → pages}/PepRolePage.js +127 -127
  37. package/{lib/pages → pages}/PepStatusPage.d.ts +6 -6
  38. package/pages/PepStatusPage.js +58 -0
  39. package/{lib/pages → pages}/RelationPage/RelationMessages.d.ts +105 -105
  40. package/{lib/pages → pages}/RelationPage/RelationMessages.js +283 -283
  41. package/{lib/pages → pages}/RelationPage/RelationPage.d.ts +6 -6
  42. package/{lib/pages → pages}/RelationPage/RelationPage.js +154 -154
  43. package/{lib/pages → pages}/RolePage/RoleMessages.d.ts +185 -185
  44. package/{lib/pages → pages}/RolePage/RoleMessages.js +385 -385
  45. package/{lib/pages → pages}/RolePage/RolePage.d.ts +11 -11
  46. package/{lib/pages → pages}/RolePage/RolePage.js +223 -223
  47. package/{lib/pages → pages}/StatusPage/StatusMessages.d.ts +72 -72
  48. package/{lib/pages → pages}/StatusPage/StatusMessages.js +266 -266
  49. package/{lib/pages → pages}/StatusPage/StatusPage.d.ts +6 -6
  50. package/{lib/pages → pages}/StatusPage/StatusPage.js +98 -98
  51. package/{lib/utils → utils}/Possession.d.ts +1 -1
  52. package/{lib/utils → utils}/Possession.js +18 -18
  53. package/.vscode/settings.json +0 -4
  54. package/lib/pages/PepIsPepPage.d.ts +0 -6
  55. package/lib/pages/PepStatusPage.js +0 -57
  56. package/public/favicon.ico +0 -0
  57. package/public/index.html +0 -43
  58. package/public/logo192.png +0 -0
  59. package/public/logo512.png +0 -0
  60. package/public/manifest.json +0 -25
  61. package/public/robots.txt +0 -2
  62. package/src/App.css +0 -3
  63. package/src/App.test.tsx +0 -9
  64. package/src/App.tsx +0 -25
  65. package/src/Exports.ts +0 -12
  66. package/src/components/CountrySelect.tsx +0 -47
  67. package/src/components/PepAnswers.scss +0 -7
  68. package/src/components/PepAnswers.tsx +0 -252
  69. package/src/demo/Done.tsx +0 -16
  70. package/src/demo/Pep.tsx +0 -112
  71. package/src/index.css +0 -13
  72. package/src/index.tsx +0 -12
  73. package/src/logo.svg +0 -1
  74. package/src/model/Countries.ts +0 -1002
  75. package/src/model/PepModel.ts +0 -52
  76. package/src/pages/IsPep/IsPepMessages.ts +0 -67
  77. package/src/pages/IsPep/IsPepPage.tsx +0 -118
  78. package/src/pages/PepContext.tsx +0 -144
  79. package/src/pages/RelationPage/RelationMessages.ts +0 -288
  80. package/src/pages/RelationPage/RelationPage.tsx +0 -304
  81. package/src/pages/RolePage/RoleMessages.ts +0 -393
  82. package/src/pages/RolePage/RolePage.tsx +0 -361
  83. package/src/pages/StatusPage/StatusMessages.ts +0 -272
  84. package/src/pages/StatusPage/StatusPage.tsx +0 -213
  85. package/src/react-app-env.d.ts +0 -1
  86. package/src/serviceWorker.ts +0 -143
  87. package/src/utils/Possession.ts +0 -21
  88. package/tsconfig.json +0 -25
  89. package/tsconfig_build.json +0 -19
@@ -1,304 +0,0 @@
1
- import React, {
2
- useContext,
3
- useRef,
4
- useCallback,
5
- FunctionComponent,
6
- } from "react";
7
- import {
8
- PepContext,
9
- PepType,
10
- BusinessRelation,
11
- Relation,
12
- EntityType,
13
- PepContextProps,
14
- } from "../PepContext";
15
- import {
16
- LysaFormRef,
17
- RadioGroup,
18
- Form,
19
- Alternative,
20
- RequiredValidator,
21
- TextInput,
22
- Datepicker,
23
- PrimaryButton,
24
- Card,
25
- } from "@lysaab/ui-2";
26
- import { DateTime } from "luxon";
27
- import { useIntl, IntlShape, FormattedMessage } from "react-intl";
28
- import {
29
- relationMessages,
30
- businessRelationMessages,
31
- relativeNameMessages,
32
- birthdayMessages,
33
- colleagueNameMessages,
34
- } from "./RelationMessages";
35
- import { formatPossessive } from "../../utils/Possession";
36
-
37
- const DATEPICKER_START_DATE = DateTime.fromISO("1970-01-01").toJSDate();
38
-
39
- interface Props {
40
- next: () => void;
41
- }
42
-
43
- export const RelationPage: FunctionComponent<Props> = ({ next }) => {
44
- const intl = useIntl();
45
- const pepContext = useContext(PepContext);
46
- const formRef = useRef<LysaFormRef>();
47
- const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
48
- const type = pepContext.state.type;
49
-
50
- const businessRelationAlternatives = getBusinessRelationAlternatives(
51
- intl,
52
- entityType,
53
- pepContext
54
- );
55
- const relationAlternatives = getRelationAlternatives(
56
- intl,
57
- entityType,
58
- pepContext
59
- );
60
-
61
- const nextPage = useCallback(() => {
62
- if (formRef.current && formRef.current.isValid) {
63
- next();
64
- }
65
- }, [formRef, next]);
66
- return (
67
- <Form onSubmit={() => nextPage()} lysaFormRef={formRef}>
68
- <Card>
69
- {type === PepType.RELATIVE ? (
70
- <RadioGroup
71
- alternatives={relationAlternatives}
72
- onChange={(alternative) => {
73
- pepContext.setState({
74
- relationToPEP: alternative.value,
75
- });
76
- }}
77
- value={relationAlternatives.find(
78
- (alt) => alt.value === pepContext.state.relationToPEP
79
- )}
80
- header={intl.formatMessage(relationMessages.header, {
81
- entityType,
82
- name: pepContext.state.ownerName,
83
- possessiveName: formatPossessive(
84
- pepContext.state.ownerName,
85
- intl.locale
86
- ),
87
- })}
88
- validators={[
89
- new RequiredValidator(
90
- intl.formatMessage(relationMessages.required)
91
- ),
92
- ]}
93
- />
94
- ) : null}
95
- {type === PepType.COLLEAGUE ? (
96
- <RadioGroup
97
- alternatives={businessRelationAlternatives}
98
- onChange={(alternative) => {
99
- pepContext.setState({
100
- businessRelation: alternative.value,
101
- });
102
- }}
103
- value={businessRelationAlternatives.find(
104
- (alt) => alt.value === pepContext.state.businessRelation
105
- )}
106
- header={intl.formatMessage(businessRelationMessages.header, {
107
- entityType,
108
- name: pepContext.state.ownerName,
109
- })}
110
- validators={[
111
- new RequiredValidator(
112
- intl.formatMessage(businessRelationMessages.required)
113
- ),
114
- ]}
115
- />
116
- ) : null}
117
- {pepContext.state.relationToPEP && type === PepType.RELATIVE ? (
118
- <React.Fragment>
119
- <TextInput
120
- label={intl.formatMessage(relativeNameMessages.header, {
121
- entityType,
122
- name: pepContext.state.ownerName,
123
- relation:
124
- pepContext.state.type === PepType.COLLEAGUE
125
- ? pepContext.state.businessRelation
126
- : pepContext.state.relationToPEP,
127
- possessiveName: formatPossessive(
128
- pepContext.state.ownerName,
129
- intl.locale
130
- ),
131
- })}
132
- value={pepContext.state.nameOfPEP || ""}
133
- onChange={(value) => {
134
- pepContext.setState({ nameOfPEP: value });
135
- }}
136
- validators={[
137
- new RequiredValidator(
138
- intl.formatMessage(relativeNameMessages.required)
139
- ),
140
- ]}
141
- />
142
- <Datepicker
143
- label={intl.formatMessage(birthdayMessages.header, {
144
- entityType,
145
- name: pepContext.state.ownerName,
146
- relation:
147
- pepContext.state.type === PepType.COLLEAGUE
148
- ? pepContext.state.businessRelation
149
- : pepContext.state.relationToPEP,
150
- possessiveName: formatPossessive(
151
- pepContext.state.ownerName,
152
- intl.locale
153
- ),
154
- })}
155
- selected={pepContext.state.birthdayOfPEP}
156
- onChange={(event) =>
157
- pepContext.setState({ birthdayOfPEP: event || undefined })
158
- }
159
- validators={[
160
- new RequiredValidator(
161
- intl.formatMessage(birthdayMessages.required)
162
- ),
163
- ]}
164
- maxDate={new Date()}
165
- openToDate={
166
- pepContext.state.birthdayOfPEP || DATEPICKER_START_DATE
167
- }
168
- />
169
- </React.Fragment>
170
- ) : null}
171
-
172
- {pepContext.state.businessRelation && type === PepType.COLLEAGUE ? (
173
- <React.Fragment>
174
- <TextInput
175
- label={intl.formatMessage(colleagueNameMessages.header, {
176
- entityType,
177
- name: pepContext.state.ownerName,
178
- relation:
179
- pepContext.state.type === PepType.COLLEAGUE
180
- ? pepContext.state.businessRelation
181
- : pepContext.state.relationToPEP,
182
- possessiveName: formatPossessive(
183
- pepContext.state.ownerName,
184
- intl.locale
185
- ),
186
- })}
187
- value={pepContext.state.nameOfPEP || ""}
188
- onChange={(value) => {
189
- pepContext.setState({ nameOfPEP: value });
190
- }}
191
- validators={[
192
- new RequiredValidator(
193
- intl.formatMessage(colleagueNameMessages.required)
194
- ),
195
- ]}
196
- />
197
- </React.Fragment>
198
- ) : null}
199
- </Card>
200
- <PrimaryButton block type="submit">
201
- <FormattedMessage
202
- id="pep.relation.next"
203
- description="Next button"
204
- defaultMessage="Gå vidare"
205
- />
206
- </PrimaryButton>
207
- </Form>
208
- );
209
- };
210
- function getRelationAlternatives(
211
- intl: IntlShape,
212
- entityType: EntityType,
213
- pepContext: PepContextProps
214
- ): Alternative<Relation>[] {
215
- return [
216
- {
217
- text: intl.formatMessage(relationMessages[Relation.MARRIED_PARTNER], {
218
- entityType,
219
- name: pepContext.state.ownerName,
220
- }),
221
- value: Relation.MARRIED_PARTNER,
222
- },
223
- {
224
- text: intl.formatMessage(relationMessages[Relation.COLIVING_PARTNER], {
225
- entityType,
226
- name: pepContext.state.ownerName,
227
- }),
228
- value: Relation.COLIVING_PARTNER,
229
- },
230
- {
231
- text: intl.formatMessage(relationMessages[Relation.CHILD], {
232
- entityType,
233
- name: pepContext.state.ownerName,
234
- }),
235
- value: Relation.CHILD,
236
- },
237
- {
238
- text: intl.formatMessage(relationMessages[Relation.PARENT], {
239
- entityType,
240
- name: pepContext.state.ownerName,
241
- }),
242
- value: Relation.PARENT,
243
- },
244
- {
245
- text: intl.formatMessage(
246
- relationMessages[Relation.CHILD_MARRIED_PARTNER],
247
- {
248
- entityType,
249
- name: pepContext.state.ownerName,
250
- }
251
- ),
252
- value: Relation.CHILD_MARRIED_PARTNER,
253
- },
254
- {
255
- text: intl.formatMessage(
256
- relationMessages[Relation.CHILD_COLIVING_PARTNER],
257
- {
258
- entityType,
259
- name: pepContext.state.ownerName,
260
- }
261
- ),
262
- value: Relation.CHILD_COLIVING_PARTNER,
263
- },
264
- ];
265
- }
266
-
267
- function getBusinessRelationAlternatives(
268
- intl: IntlShape,
269
- entityType: EntityType,
270
- pepContext: PepContextProps
271
- ): Alternative<BusinessRelation>[] {
272
- return [
273
- {
274
- text: intl.formatMessage(
275
- businessRelationMessages[BusinessRelation.CO_OWNERSHIP],
276
- {
277
- entityType,
278
- name: pepContext.state.ownerName,
279
- }
280
- ),
281
- value: BusinessRelation.CO_OWNERSHIP,
282
- },
283
- {
284
- text: intl.formatMessage(
285
- businessRelationMessages[BusinessRelation.CLOSE_CONNECTION],
286
- {
287
- entityType,
288
- name: pepContext.state.ownerName,
289
- }
290
- ),
291
- value: BusinessRelation.CLOSE_CONNECTION,
292
- },
293
- {
294
- text: intl.formatMessage(
295
- businessRelationMessages[BusinessRelation.COMPANY_FOR_PEP],
296
- {
297
- entityType,
298
- name: pepContext.state.ownerName,
299
- }
300
- ),
301
- value: BusinessRelation.COMPANY_FOR_PEP,
302
- },
303
- ];
304
- }
@@ -1,393 +0,0 @@
1
- import { defineMessages } from "react-intl";
2
- import { Role, MilitaryRank } from "../PepContext";
3
-
4
- export const roleMessages = defineMessages({
5
- header: {
6
- id: "pep.role.roles.header",
7
- description: "Header",
8
- defaultMessage: `{
9
- entityType, select,
10
- PERSON {
11
- {
12
- pepType, select,
13
- ME {
14
- Ange din roll
15
- }
16
- RELATIVE {
17
- {
18
- relation, select,
19
- MARRIED_PARTNER {
20
- Ange tjänst/roll för din make/maka
21
- }
22
- COLIVING_PARTNER {
23
- Ange tjänst/roll för din sambo
24
- }
25
- CHILD {
26
- Ange tjänst/roll för din förälder
27
- }
28
- PARENT {
29
- Ange tjänst/roll för din barn
30
- }
31
- CHILD_MARRIED_PARTNER {
32
- Ange tjänst/roll för föräldern till din make/maka
33
- }
34
- CHILD_COLIVING_PARTNER {
35
- Ange tjänst/roll för föräldern till din sambo
36
- }
37
- other {}
38
- }
39
- }
40
- COLLEAGUE {
41
- {
42
- relation, select,
43
- CO_OWNERSHIP {
44
- Ange tjänst/roll för personen i politisk utsatt ställning som du har en relation till
45
- }
46
- CLOSE_CONNECTION {
47
- Ange tjänst/roll för personen i politisk utsatt ställning som du har en relation till
48
- }
49
- COMPANY_FOR_PEP {
50
- Ange tjänst/roll för personen i politisk utsatt ställning som du har en relation till
51
- }
52
- other {}
53
- }
54
- }
55
- other {}
56
- }
57
- }
58
- CORPORATION {
59
- {
60
- pepType, select,
61
- ME {
62
- Ange {possessiveName} roll
63
- }
64
- RELATIVE {
65
- {
66
- relation, select,
67
- MARRIED_PARTNER {
68
- Ange tjänst/roll för {possessiveName} make/maka
69
- }
70
- COLIVING_PARTNER {
71
- Ange tjänst/roll för {possessiveName} sambo
72
- }
73
- CHILD {
74
- Ange tjänst/roll för {possessiveName} förälder
75
- }
76
- PARENT {
77
- Ange tjänst/roll för {possessiveName} barn
78
- }
79
- CHILD_MARRIED_PARTNER {
80
- Ange tjänst/roll för föräldern till {possessiveName} make/maka
81
- }
82
- CHILD_COLIVING_PARTNER {
83
- Ange tjänst/roll för föräldern till {possessiveName} sambo
84
- }
85
- other {}
86
- }
87
- }
88
- COLLEAGUE {
89
- {
90
- relation, select,
91
- CO_OWNERSHIP {
92
- Ange tjänst/roll för personen i politisk utsatt ställning som {name} har en relation till
93
- }
94
- CLOSE_CONNECTION {
95
- Ange tjänst/roll för personen i politisk utsatt ställning som {name} har en relation till
96
- }
97
- COMPANY_FOR_PEP {
98
- Ange tjänst/roll för personen i politisk utsatt ställning som {name} har en relation till
99
- }
100
- other {}
101
- }
102
- }
103
- other {}
104
- }
105
- }
106
- other {}
107
- }`,
108
- },
109
- placeholder: {
110
- id: "pep.role.roles.placeholder",
111
- description: "Role placeholder",
112
- defaultMessage: "Välj en roll",
113
- },
114
- required: {
115
- id: "pep.role.roles.required",
116
- description: "Required validation error",
117
- defaultMessage: "Du måste välja roll",
118
- },
119
- [Role.HEAD_OF_GOVERNMENT]: {
120
- id: "pep.role.roles.alt.HEAD_OF_GOVERNMENT",
121
- description: "Head of government alt",
122
- defaultMessage: "Stats eller regeringschef",
123
- },
124
- [Role.MINISTER]: {
125
- id: "pep.role.roles.alt.MINISTER",
126
- description: "Minister alt",
127
- defaultMessage: "Minister eller Vice/Biträdande minister",
128
- },
129
- [Role.PARLIMENT_MEMBER]: {
130
- id: "pep.role.roles.alt.PARLIMENT_MEMBER",
131
- description: "Parlament alt",
132
- defaultMessage: "Ledamot i parlament eller riksdag",
133
- },
134
- [Role.CENTRAL_BANK_MEMBER]: {
135
- id: "pep.role.roles.alt.CENTRAL_BANK_MEMBER",
136
- description: "Central bank member alt",
137
- defaultMessage: "Ledamot i centralbanks styrande organ",
138
- },
139
- [Role.BOARD_MEMBER_POLITICAL_PARTY]: {
140
- id: "pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY",
141
- description: "Political party board member alt",
142
- defaultMessage:
143
- "Ledamot för styrelsen i politiskt parti representerade i riksdagen",
144
- },
145
- [Role.JUDGE_SUPREME_COURT]: {
146
- id: "pep.role.roles.alt.JUDGE_SUPREME_COURT",
147
- description: "Supreme court judge alt",
148
- defaultMessage: "Domare i högsta domstolen",
149
- },
150
- [Role.JUDGE_OTHER_HIGH_COURT]: {
151
- id: "pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT",
152
- description: "High court judge alt",
153
- defaultMessage:
154
- "Domare i konstitutionell domstol eller annat rättsligt organ på hög nivå vars beslut endast undantagsvis kan överklagas",
155
- },
156
- [Role.REVISION_INSTITUTE]: {
157
- id: "pep.role.roles.alt.REVISION_INSTITUTE",
158
- description: "Revision institute worker alt",
159
- defaultMessage: "Högre tjänsteman vid revisionsmyndighet",
160
- },
161
- [Role.AMBASSADOR]: {
162
- id: "pep.role.roles.alt.AMBASSADOR",
163
- description: "Ambassador alt",
164
- defaultMessage: "Ambassadör eller bestickningschef",
165
- },
166
- [Role.MILITARY_OFFICER]: {
167
- id: "pep.role.roles.alt.MILITARY_OFFICER",
168
- description: "Military officer alt",
169
- defaultMessage: "Högre officer i försvarsmakt",
170
- },
171
- [Role.GOVERNMENT_COMPANY]: {
172
- id: "pep.role.roles.alt.GOVERNMENT_COMPANY",
173
- description: "Government company leader alt",
174
- defaultMessage:
175
- "Person som ingår i statsägt företags förvaltnings-, lednings eller kontrollorgan",
176
- },
177
- [Role.EU_HIGH_RANKING_POSITION]: {
178
- id: "pep.role.roles.alt.EU_HIGH_RANKING_POSITION",
179
- description: "High ranking EU position alt",
180
- defaultMessage: "EU-parlamentariker",
181
- },
182
- [Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]: {
183
- id: "pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
184
- description: "High ranking position in an international organisation alt",
185
- defaultMessage: "Befattning på hög nivå i en internationell organisation",
186
- },
187
- });
188
-
189
- export const militaryMessages = defineMessages({
190
- header: {
191
- id: "pep.role.military.name.header",
192
- description: "International company name header",
193
- defaultMessage: `{
194
- entityType, select,
195
- PERSON {
196
- {
197
- pepType, select,
198
- ME {
199
- Ange din grad
200
- }
201
- RELATIVE {
202
- {
203
- relation, select,
204
- MARRIED_PARTNER {
205
- Ange din make/maka/registrerade partners grad
206
- }
207
- COLIVING_PARTNER {
208
- Ange din sambos grad
209
- }
210
- CHILD {
211
- Ange din förälders grad
212
- }
213
- PARENT {
214
- Ange ditt barns grad
215
- }
216
- CHILD_MARRIED_PARTNER {
217
- Ange din make/makas förälders grad
218
- }
219
- CHILD_COLIVING_PARTNER {
220
- Ange din sambos grad
221
- }
222
- other {}
223
- }
224
- }
225
- COLLEAGUE {
226
- {
227
- relation, select,
228
- CO_OWNERSHIP {
229
- Ange grad för personen i politisk utsatt ställning som du har en relation till
230
- }
231
- CLOSE_CONNECTION {
232
- Ange grad har personen som du har eller har haft nära förbindelse med
233
- }
234
- COMPANY_FOR_PEP {
235
- Vilken grad har personen
236
- }
237
- other {}
238
- }
239
- }
240
- other {}
241
- }
242
- }
243
- CORPORATION {
244
- {
245
- pepType, select,
246
- ME {
247
- Ange {possessiveName} grad
248
- }
249
- RELATIVE {
250
- {
251
- relation, select,
252
- MARRIED_PARTNER {
253
- Ange {possessiveName} make/maka/registrerade partners grad
254
- }
255
- COLIVING_PARTNER {
256
- Ange {possessiveName} sambos grad
257
- }
258
- CHILD {
259
- Ange {possessiveName} förälders grad
260
- }
261
- PARENT {
262
- Ange {possessiveName} barns grad
263
- }
264
- CHILD_MARRIED_PARTNER {
265
- Ange {possessiveName} make/makas förälders grad
266
- }
267
- CHILD_COLIVING_PARTNER {
268
- Ange {possessiveName} sambos grad
269
- }
270
- other {}
271
- }
272
- }
273
- COLLEAGUE {
274
- {
275
- relation, select,
276
- CO_OWNERSHIP {
277
- Ange grad för personen i politisk utsatt ställning som {name} har en relation till
278
- }
279
- CLOSE_CONNECTION {
280
- Ange grad för personen som {name} har eller har haft nära förbindelse
281
- }
282
- COMPANY_FOR_PEP {
283
- Vilken grad har personen
284
- }
285
- other {}
286
- }
287
- }
288
- other {}
289
- }
290
- }
291
- other {}
292
- }`,
293
- },
294
- placeholder: {
295
- id: "pep.role.military.header",
296
- description: "Header",
297
- defaultMessage: "Välj en roll",
298
- },
299
- required: {
300
- id: "pep.role.military.required",
301
- description: "Required validation error",
302
- defaultMessage: "Du måste välja roll",
303
- },
304
- [MilitaryRank.GENERAL]: {
305
- id: "pep.role.military.alt.GENERAL",
306
- description: "General alt",
307
- defaultMessage: "General",
308
- },
309
- [MilitaryRank.LIEUTENANT_GENERAL]: {
310
- id: "pep.role.military.alt.LIEUTENANT_GENERAL",
311
- description: "Lieutenant general alt",
312
- defaultMessage: "Generallöjtnant",
313
- },
314
- [MilitaryRank.MAJOR_GENERAL]: {
315
- id: "pep.role.military.alt.MAJOR_GENERAL",
316
- description: "Major general alt",
317
- defaultMessage: "Generalmajor",
318
- },
319
- [MilitaryRank.ADMIRAL]: {
320
- id: "pep.role.military.alt.ADMIRAL",
321
- description: "Admiral alt",
322
- defaultMessage: "Amiral",
323
- },
324
- [MilitaryRank.VICE_ADMIRAL]: {
325
- id: "pep.role.military.alt.VICE_ADMIRAL",
326
- description: "Vice admiral alt",
327
- defaultMessage: "Viceamiral",
328
- },
329
- [MilitaryRank.REAR_ADMIRAL]: {
330
- id: "pep.role.military.alt.REAR_ADMIRAL",
331
- description: "Rear admiral alt",
332
- defaultMessage: "Konteramiral",
333
- },
334
- });
335
-
336
- export const ambassadorMessages = defineMessages({
337
- header: {
338
- id: "pep.role.ambassador.header",
339
- description: "Ambassador header",
340
- defaultMessage: "Ange land",
341
- },
342
- required: {
343
- id: "pep.role.ambassador.required",
344
- description: "Ambassador required error",
345
- defaultMessage: "Du måste välja land",
346
- },
347
- });
348
-
349
- export const governmentCompanyMessages = defineMessages({
350
- nameHeader: {
351
- id: "pep.role.governmentCompany.name.header",
352
- description: "Government company name header",
353
- defaultMessage: "Ange namnet på företaget",
354
- },
355
- nameRequired: {
356
- id: "pep.role.governmentCompany.name.required",
357
- description: "Government company name required error",
358
- defaultMessage: "Du måste ange ett namn",
359
- },
360
- roleHeader: {
361
- id: "pep.role.governmentCompany.role.header",
362
- description: "Government company role header",
363
- defaultMessage: "Ange tjänst/roll",
364
- },
365
- roleRequired: {
366
- id: "pep.role.governmentCompany.role.required",
367
- description: "Government company role required error",
368
- defaultMessage: "Du måste ange roll",
369
- },
370
- });
371
-
372
- export const intCompanyMessages = defineMessages({
373
- nameHeader: {
374
- id: "pep.role.intCompany.name.header",
375
- description: "International company name header",
376
- defaultMessage: "Ange organisationens namn",
377
- },
378
- nameRequired: {
379
- id: "pep.role.intCompany.name.required",
380
- description: "International company name required error",
381
- defaultMessage: "Du måste ange ett namn",
382
- },
383
- roleHeader: {
384
- id: "pep.role.intCompany.role.header",
385
- description: "International company role header",
386
- defaultMessage: "Ange tjänst/roll",
387
- },
388
- roleRequired: {
389
- id: "pep.role.intCompany.role.required",
390
- description: "International company role required error",
391
- defaultMessage: "Du måste ange roll",
392
- },
393
- });