@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,52 +0,0 @@
1
- import { PepState, PepType, EntityType, PepStatus } from "../pages/PepContext";
2
- import { DateTime } from "luxon";
3
-
4
- export interface PepRequest
5
- extends Omit<PepState, "isSweden" | "isOngoing" | "ended" | "birthdayOfPEP"> {
6
- ended?: string;
7
- birthdayOfPEP?: string;
8
- }
9
-
10
- /**
11
- * Do some minor preprocessing before we are ready to send everything to the
12
- * server
13
- */
14
- export function stateToRequest(pepData: PepState): PepRequest {
15
- const data = { ...pepData };
16
- delete data.isSweden;
17
- delete data.isOngoing;
18
- delete data.ownerName;
19
- if (data.legalEntityType === EntityType.PERSON) {
20
- delete data.tin;
21
- }
22
- return {
23
- ...data,
24
- country: data.type !== PepType.NOT_PEP ? data.country || "SE" : undefined,
25
- ended: data.ended
26
- ? DateTime.fromJSDate(data.ended).toFormat("yyyy-MM")
27
- : undefined,
28
- birthdayOfPEP: data.birthdayOfPEP
29
- ? DateTime.fromJSDate(data.birthdayOfPEP).toFormat("yyyy-MM-dd")
30
- : undefined
31
- };
32
- }
33
-
34
- export function requestToState({
35
- ended,
36
- birthdayOfPEP,
37
- ...serverData
38
- }: PepRequest): PepState {
39
- const state: PepState = { ...serverData };
40
- if (ended) {
41
- state.ended = DateTime.fromFormat(ended, "yyyy-MM").toJSDate();
42
- }
43
- if (birthdayOfPEP) {
44
- state.birthdayOfPEP = DateTime.fromFormat(
45
- birthdayOfPEP,
46
- "yyyy-MM-dd"
47
- ).toJSDate();
48
- }
49
- state.isSweden = state.country === "SE" ? "sweden" : "other";
50
- state.isOngoing = state.ended ? PepStatus.ENDED : PepStatus.ONGOING;
51
- return state;
52
- }
@@ -1,67 +0,0 @@
1
- import { defineMessages } from "react-intl";
2
- import { PepType } from "../PepContext";
3
-
4
- export const messages = defineMessages({
5
- header: {
6
- id: "pep.ispep.header",
7
- description: "Not pep",
8
- defaultMessage: `{
9
- entityType, select,
10
- PERSON {
11
- Är du eller en närstående till dig en person i politisk utsatt ställning? (PEP)
12
- }
13
- CORPORATION {
14
- Är {name} eller en närstående till {name} en person i politisk utsatt ställning? (PEP)
15
- }
16
- }`,
17
- },
18
- required: {
19
- id: "pep.ispep.required",
20
- description: "Not pep",
21
- defaultMessage: "Du måste välja ett alternativ",
22
- },
23
- [PepType.NOT_PEP]: {
24
- id: "pep.ispep.NOT_PEP",
25
- description: "Not pep",
26
- defaultMessage: "Nej",
27
- },
28
- [PepType.ME]: {
29
- id: "pep.ispep.ME",
30
- description: "The person is pep",
31
- defaultMessage: `{
32
- entityType, select,
33
- PERSON {
34
- Jag har en funktion som gör mig till PEP
35
- }
36
- CORPORATION {
37
- På grund av sin funktion är {name} PEP
38
- }
39
- }`,
40
- },
41
- [PepType.RELATIVE]: {
42
- id: "pep.ispep.RELATIVE",
43
- description: "Jag har en relation med en person som är PEP",
44
- defaultMessage: `{
45
- entityType, select,
46
- PERSON {
47
- Jag har en relation med en person som är PEP
48
- }
49
- CORPORATION {
50
- {name} är medarbetare till, eller har en affärsrelation med, en person som är PEP
51
- }
52
- }`,
53
- },
54
- [PepType.COLLEAGUE]: {
55
- id: "pep.ispep.COLLEAGUE",
56
- description: "The person has a colleague that is pep",
57
- defaultMessage: `{
58
- entityType, select,
59
- PERSON {
60
- Jag är medarbetare till, eller har en affärsrelation med, en person som är PEP
61
- }
62
- CORPORATION {
63
- På grund av sin funktion är {name} PEP
64
- }
65
- }`,
66
- },
67
- });
@@ -1,118 +0,0 @@
1
- import React, {
2
- FunctionComponent,
3
- useRef,
4
- useCallback,
5
- useContext,
6
- } from "react";
7
- import {
8
- Form,
9
- RadioGroup,
10
- RequiredValidator,
11
- PrimaryButton,
12
- LysaFormRef,
13
- Card,
14
- } from "@lysaab/ui-2";
15
- import { PepType, PepContext, EntityType } from "../PepContext";
16
- import { useIntl, FormattedMessage } from "react-intl";
17
- import { messages } from "./IsPepMessages";
18
-
19
- export interface ExternalIsPepState {
20
- ownerName: string;
21
- entityType: EntityType;
22
- type?: PepType;
23
- onChange: (type: PepType) => void;
24
- }
25
-
26
- interface Props {
27
- next?: () => void;
28
- }
29
-
30
- export const IsPepRadioGroup: FunctionComponent<ExternalIsPepState> = ({
31
- ownerName,
32
- entityType,
33
- type,
34
- onChange,
35
- }) => {
36
- const intl = useIntl();
37
-
38
- const IsPepAlternatives = [
39
- {
40
- text: intl.formatMessage(messages[PepType.NOT_PEP], {
41
- entityType,
42
- name: ownerName,
43
- }),
44
- value: PepType.NOT_PEP,
45
- },
46
- {
47
- text: intl.formatMessage(messages[PepType.ME], {
48
- entityType,
49
- name: ownerName,
50
- }),
51
- value: PepType.ME,
52
- },
53
- {
54
- text: intl.formatMessage(messages[PepType.RELATIVE], {
55
- entityType,
56
- name: ownerName,
57
- }),
58
- value: PepType.RELATIVE,
59
- },
60
- {
61
- text: intl.formatMessage(messages[PepType.COLLEAGUE], {
62
- entityType,
63
- name: ownerName,
64
- }),
65
- value: PepType.COLLEAGUE,
66
- },
67
- ];
68
-
69
- return (
70
- <RadioGroup
71
- alternatives={IsPepAlternatives}
72
- onChange={(alt) => onChange(alt.value)}
73
- value={IsPepAlternatives.find((alt) => alt.value === type)}
74
- header={intl.formatMessage(messages.header, {
75
- entityType,
76
- name: ownerName,
77
- })}
78
- validators={[
79
- new RequiredValidator(intl.formatMessage(messages.required)),
80
- ]}
81
- data-test-id="pep-ispep"
82
- />
83
- );
84
- };
85
-
86
- export const IsPepPage: FunctionComponent<Props> = ({ next }) => {
87
- const pepContext = useContext(PepContext);
88
- const formRef = useRef<LysaFormRef>();
89
-
90
- const nextPage = useCallback(() => {
91
- if (formRef.current && formRef.current.isValid && next) {
92
- next();
93
- }
94
- }, [formRef, next]);
95
-
96
- return (
97
- <Form onSubmit={nextPage} lysaFormRef={formRef}>
98
- <Card>
99
- <IsPepRadioGroup
100
- entityType={pepContext.state.legalEntityType || EntityType.PERSON}
101
- ownerName={pepContext.state.ownerName || ""}
102
- type={pepContext.state.type}
103
- onChange={(type) => {
104
- pepContext.setState({ type });
105
- }}
106
- />
107
- </Card>
108
-
109
- <PrimaryButton block type="submit">
110
- <FormattedMessage
111
- id="pep.ispep.next"
112
- description="Next button"
113
- defaultMessage="Gå vidare"
114
- />
115
- </PrimaryButton>
116
- </Form>
117
- );
118
- };
@@ -1,144 +0,0 @@
1
- import React, { useReducer } from "react";
2
-
3
- export enum EntityType {
4
- PERSON = "PERSON",
5
- CORPORATION = "CORPORATION",
6
- }
7
-
8
- export enum PepType {
9
- NOT_PEP = "NOT_PEP",
10
- ME = "ME",
11
- RELATIVE = "RELATIVE",
12
- COLLEAGUE = "COLLEAGUE",
13
- }
14
-
15
- export enum PepStatus {
16
- ONGOING = "ONGOING",
17
- ENDED = "ENDED",
18
- }
19
-
20
- export enum Role {
21
- HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
22
- MINISTER = "MINISTER",
23
- PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
24
- CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
25
- BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
26
- JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
27
- JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
28
- REVISION_INSTITUTE = "REVISION_INSTITUTE",
29
- AMBASSADOR = "AMBASSADOR",
30
- MILITARY_OFFICER = "MILITARY_OFFICER",
31
- GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
32
- EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
33
- HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
34
- }
35
-
36
- export enum Relation {
37
- MARRIED_PARTNER = "MARRIED_PARTNER",
38
- COLIVING_PARTNER = "COLIVING_PARTNER",
39
- CHILD = "CHILD",
40
- PARENT = "PARENT",
41
- CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
42
- CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER",
43
- }
44
-
45
- export enum BusinessRelation {
46
- CO_OWNERSHIP = "CO_OWNERSHIP",
47
- CLOSE_CONNECTION = "CLOSE_CONNECTION",
48
- COMPANY_FOR_PEP = "COMPANY_FOR_PEP",
49
- }
50
-
51
- export enum MilitaryRank {
52
- GENERAL = "GENERAL",
53
- LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
54
- MAJOR_GENERAL = "MAJOR_GENERAL",
55
- ADMIRAL = "ADMIRAL",
56
- VICE_ADMIRAL = "VICE_ADMIRAL",
57
- REAR_ADMIRAL = "REAR_ADMIRAL",
58
- }
59
-
60
- // Types for the state
61
- export interface PepState {
62
- legalEntityType?: EntityType;
63
- type?: PepType;
64
- role?: Role;
65
- country?: string;
66
- ended?: Date;
67
- ambassadorCountry?: string;
68
- militaryRank?: MilitaryRank;
69
- governmentCompany?: string;
70
- governmentCompanyRole?: string;
71
- internationalOrganisation?: string;
72
- internationalOrganisationRole?: string;
73
- relationToPEP?: Relation;
74
- nameOfPEP?: string;
75
- birthdayOfPEP?: Date;
76
- tin?: string;
77
- businessRelation?: BusinessRelation;
78
-
79
- isOngoing?: PepStatus;
80
- isSweden?: string;
81
- ownerName?: string;
82
- }
83
-
84
- export const EMPTY_PEP_STATE: PepState = {
85
- legalEntityType: undefined,
86
- type: undefined,
87
- role: undefined,
88
- country: undefined,
89
- ended: undefined,
90
- ambassadorCountry: undefined,
91
- militaryRank: undefined,
92
- governmentCompany: undefined,
93
- governmentCompanyRole: undefined,
94
- internationalOrganisation: undefined,
95
- internationalOrganisationRole: undefined,
96
- relationToPEP: undefined,
97
- nameOfPEP: undefined,
98
- birthdayOfPEP: undefined,
99
- tin: undefined,
100
- businessRelation: undefined,
101
-
102
- isOngoing: undefined,
103
- isSweden: undefined,
104
- ownerName: undefined,
105
- };
106
-
107
- // All types for the context. This includes setter methods
108
- export interface PepContextProps {
109
- state: PepState;
110
- setState: (newState: Partial<PepState>) => void;
111
- }
112
-
113
- // Create the context. (This will just create a template)
114
- export const PepContext = React.createContext<PepContextProps>(
115
- {} as PepContextProps
116
- );
117
-
118
- /**
119
- * A Higher Order Component. This is used to wrap classes so that the context is injected
120
- * There is quite a bit TS magic here. This is so that the internal props off the component
121
- * will be stripped of the context props so that the external props will only show the relevant
122
- * props
123
- */
124
- export const withPep = <P extends object>(
125
- Component: React.ComponentType<P>
126
- ): React.FC<Omit<P, keyof PepContextProps>> => props => (
127
- <PepContext.Consumer>
128
- {contextProps => <Component {...(props as P)} {...contextProps} />}
129
- </PepContext.Consumer>
130
- );
131
-
132
- function stateReducer(state: PepState, newState: Partial<PepState>) {
133
- return { ...state, ...newState };
134
- }
135
-
136
- export const PepContextProvider: React.FC = ({ children }) => {
137
- const [pep, setPep] = useReducer(stateReducer, {});
138
-
139
- return (
140
- <PepContext.Provider value={{ state: pep, setState: setPep }}>
141
- {children}
142
- </PepContext.Provider>
143
- );
144
- };
@@ -1,288 +0,0 @@
1
- import { defineMessages } from "react-intl";
2
- import { BusinessRelation, Relation } from "../PepContext";
3
-
4
- export const relationMessages = defineMessages({
5
- header: {
6
- id: "pep.relation.relation.header",
7
- description: "Relation header",
8
- defaultMessage: `{
9
- entityType, select,
10
- PERSON {
11
- Vilken relation har du till personen i politiskt utsatt ställning?
12
- }
13
- CORPORATION {
14
- Vilken relation har {name} till personen i politiskt utsatt ställning?
15
- }
16
- }`,
17
- },
18
- required: {
19
- id: "pep.relation.relation.required",
20
- description: "Required error message",
21
- defaultMessage: `Du måste välja ett alternativ`,
22
- },
23
- [Relation.MARRIED_PARTNER]: {
24
- id: "pep.relation.relation.MARRIED_PARTNER",
25
- description: "The person is married to someone who is pep",
26
- defaultMessage: `Make/Maka till PEP`,
27
- },
28
- [Relation.COLIVING_PARTNER]: {
29
- id: "pep.relation.relation.COLIVING_PARTNER",
30
- description: "The person is married to someone who is pep",
31
- defaultMessage: `Sambo till PEP`,
32
- },
33
- [Relation.CHILD]: {
34
- id: "pep.relation.relation.CHILD",
35
- description: "The person is married to someone who is pep",
36
- defaultMessage: `Barn till PEP`,
37
- },
38
- [Relation.PARENT]: {
39
- id: "pep.relation.relation.PARENT",
40
- description: "The person is married to someone who is pep",
41
- defaultMessage: `Förälder till PEP`,
42
- },
43
- [Relation.CHILD_MARRIED_PARTNER]: {
44
- id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
45
- description: "The person is married to someone who is pep",
46
- defaultMessage: `Make/Maka till barn till PEP`,
47
- },
48
- [Relation.CHILD_COLIVING_PARTNER]: {
49
- id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
50
- description: "The person is married to someone who is pep",
51
- defaultMessage: `Sambo till barn till PEP`,
52
- },
53
- });
54
-
55
- export const businessRelationMessages = defineMessages({
56
- header: {
57
- id: "pep.relation.businessrelation.header",
58
- description: "Business relation header",
59
- defaultMessage: `{
60
- entityType, select,
61
- PERSON {
62
- Vilken relation har du till personen i politisk utsatt ställning?
63
- }
64
- CORPORATION {
65
- Vilken relation har {name} till personen i politisk utsatt ställning?
66
- }
67
- }`,
68
- },
69
- required: {
70
- id: "pep.relation.businessrelation.required",
71
- description: "Required error message",
72
- defaultMessage: `Du måste välja ett alternativ`,
73
- },
74
- [BusinessRelation.CO_OWNERSHIP]: {
75
- id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
76
- description: "Co-ownership alternative",
77
- defaultMessage: `{
78
- entityType, select,
79
- PERSON {
80
- Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
81
- }
82
- CORPORATION {
83
- {name} är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
84
- }
85
- }`,
86
- },
87
- [BusinessRelation.CLOSE_CONNECTION]: {
88
- id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
89
- description: "The person is married to someone who is pep",
90
- defaultMessage: `{
91
- entityType, select,
92
- PERSON {
93
- Jag är en person som på annat sätt har eller har haft nära förbindelser med en PEP
94
- }
95
- CORPORATION {
96
- {name} är en person som på annat sätt har eller har haft nära förbindelser med en PEP
97
- }
98
- }`,
99
- },
100
- [BusinessRelation.COMPANY_FOR_PEP]: {
101
- id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
102
- description: "The person is married to someone who is pep",
103
- defaultMessage: `{
104
- entityType, select,
105
- PERSON {
106
- Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
107
- }
108
- CORPORATION {
109
- {name} är ensam verklig huvudman till en juridisk person eller konstruktion som har upprättats till förmån för en PEP
110
-
111
- }
112
- }`,
113
- },
114
- });
115
-
116
- export const relativeNameMessages = defineMessages({
117
- header: {
118
- id: "pep.relation.relative.name.header",
119
- description: "Relative name",
120
- defaultMessage: `{
121
- entityType, select,
122
- PERSON {
123
- {
124
- relation, select,
125
- MARRIED_PARTNER {
126
- Vad heter din make/maka?
127
- }
128
- COLIVING_PARTNER {
129
- Vad heter din sambo?
130
- }
131
- CHILD {
132
- Vad heter din förälder?
133
- }
134
- PARENT {
135
- Vad heter ditt barn?
136
- }
137
- CHILD_MARRIED_PARTNER {
138
- Vad heter föräldern till din make/maka?
139
- }
140
- CHILD_COLIVING_PARTNER {
141
- Vad heter föräldern till din sambo?
142
- }
143
- other {}
144
- }
145
- }
146
- CORPORATION {
147
- {
148
- relation, select,
149
- MARRIED_PARTNER {
150
- Vad heter {possessiveName} make/maka?
151
- }
152
- COLIVING_PARTNER {
153
- Vad heter {possessiveName} sambo?
154
- }
155
- CHILD {
156
- Vad heter {possessiveName} förälder?
157
- }
158
- PARENT {
159
- Vad heter {possessiveName} barn?
160
- }
161
- CHILD_MARRIED_PARTNER {
162
- Vad heter föräldern till {possessiveName} make/maka?
163
- }
164
- CHILD_COLIVING_PARTNER {
165
- Vad heter föräldern till {possessiveName} sambo?
166
- }
167
- other {}
168
- }
169
- }
170
- other {}
171
- }`,
172
- },
173
- required: {
174
- id: "pep.relation.relative.name.required",
175
- description: "Required error message",
176
- defaultMessage: `Du måste välja ett alternativ`,
177
- },
178
- });
179
-
180
- export const birthdayMessages = defineMessages({
181
- header: {
182
- id: "pep.relation.birthday.header",
183
- description: "Relative birthday",
184
- defaultMessage: `{
185
- entityType, select,
186
- PERSON {
187
- {
188
- relation, select,
189
- MARRIED_PARTNER {
190
- När är din make/maka född?
191
- }
192
- COLIVING_PARTNER {
193
- När är din sambo född?
194
- }
195
- CHILD {
196
- När är din förälder född?
197
- }
198
- PARENT {
199
- När är ditt barn fött?
200
- }
201
- CHILD_MARRIED_PARTNER {
202
- När är föräldern till din make/maka född?
203
- }
204
- CHILD_COLIVING_PARTNER {
205
- När är föräldern till din sambo född?
206
- }
207
- other {}
208
- }
209
- }
210
- CORPORATION {
211
- {
212
- relation, select,
213
- MARRIED_PARTNER {
214
- När är {possessiveName} make/maka född?
215
- }
216
- COLIVING_PARTNER {
217
- När är {possessiveName} sambo född?
218
- }
219
- CHILD {
220
- När är {possessiveName} förälder född?
221
- }
222
- PARENT {
223
- När är {possessiveName} barn fött?
224
- }
225
- CHILD_MARRIED_PARTNER {
226
- När är föräldern till {possessiveName} make/maka född?
227
- }
228
- CHILD_COLIVING_PARTNER {
229
- När är föräldern till {possessiveName} sambo född?
230
- }
231
- other {}
232
- }
233
- }
234
- other {}
235
- }`,
236
- },
237
- required: {
238
- id: "pep.relation.birthday.required",
239
- description: "Required error message",
240
- defaultMessage: `Ange datum`,
241
- },
242
- });
243
-
244
- export const colleagueNameMessages = defineMessages({
245
- header: {
246
- id: "pep.relation.colleague.name.header",
247
- description: "Colleague name",
248
- defaultMessage: `{
249
- entityType, select,
250
- PERSON {
251
- {
252
- relation, select,
253
- CO_OWNERSHIP {
254
- Vad heter personen i politisk utsatt ställning som du har en relation till?
255
- }
256
- CLOSE_CONNECTION {
257
- Vad heter personen i politisk utsatt ställning som du har en relation till?
258
- }
259
- COMPANY_FOR_PEP {
260
- Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
261
- }
262
- other {}
263
- }
264
- }
265
- CORPORATION {
266
- {
267
- relation, select,
268
- CO_OWNERSHIP {
269
- Vad heter personen i politisk utsatt ställning som {name} har en relation till?
270
- }
271
- CLOSE_CONNECTION {
272
- Vad heter personen i politisk utsatt ställning som {name} har en relation till?
273
- }
274
- COMPANY_FOR_PEP {
275
- Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
276
- }
277
- other {}
278
- }
279
- }
280
- other {}
281
- }`,
282
- },
283
- required: {
284
- id: "pep.relation.colleague.name.required",
285
- description: "Required error message",
286
- defaultMessage: `Du måste välja ett alternativ`,
287
- },
288
- });