@lysaab/lysa-pep 5.0.0 → 5.1.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.
@@ -1,119 +1,119 @@
1
- export declare const roleMessages: {
2
- header: {
3
- id: string;
4
- };
5
- placeholder: {
6
- id: string;
7
- };
8
- required: {
9
- id: string;
10
- };
11
- HEAD_OF_GOVERNMENT: {
12
- id: string;
13
- };
14
- MINISTER: {
15
- id: string;
16
- };
17
- PARLIMENT_MEMBER: {
18
- id: string;
19
- };
20
- CENTRAL_BANK_MEMBER: {
21
- id: string;
22
- };
23
- BOARD_MEMBER_POLITICAL_PARTY: {
24
- id: string;
25
- };
26
- JUDGE_SUPREME_COURT: {
27
- id: string;
28
- };
29
- JUDGE_OTHER_HIGH_COURT: {
30
- id: string;
31
- };
32
- REVISION_INSTITUTE: {
33
- id: string;
34
- };
35
- AMBASSADOR: {
36
- id: string;
37
- };
38
- MILITARY_OFFICER: {
39
- id: string;
40
- };
41
- GOVERNMENT_COMPANY: {
42
- id: string;
43
- };
44
- EU_HIGH_RANKING_POSITION: {
45
- id: string;
46
- };
47
- HIGH_RANKING_POSITION_INTERNALTIONAL_CORP: {
48
- id: string;
49
- };
50
- };
51
- export declare const militaryMessages: {
52
- header: {
53
- id: string;
54
- };
55
- placeholder: {
56
- id: string;
57
- };
58
- required: {
59
- id: string;
60
- };
61
- GENERAL: {
62
- id: string;
63
- };
64
- LIEUTENANT_GENERAL: {
65
- id: string;
66
- };
67
- MAJOR_GENERAL: {
68
- id: string;
69
- };
70
- ADMIRAL: {
71
- id: string;
72
- };
73
- VICE_ADMIRAL: {
74
- id: string;
75
- };
76
- REAR_ADMIRAL: {
77
- id: string;
78
- };
79
- };
80
- export declare const ambassadorMessages: {
81
- header: {
82
- id: string;
83
- };
84
- required: {
85
- id: string;
86
- };
87
- placeholder: {
88
- id: string;
89
- };
90
- };
91
- export declare const governmentCompanyMessages: {
92
- nameHeader: {
93
- id: string;
94
- };
95
- nameRequired: {
96
- id: string;
97
- };
98
- roleHeader: {
99
- id: string;
100
- };
101
- roleRequired: {
102
- id: string;
103
- };
104
- };
105
- export declare const intCompanyMessages: {
106
- nameHeader: {
107
- id: string;
108
- };
109
- nameRequired: {
110
- id: string;
111
- };
112
- roleHeader: {
113
- id: string;
114
- };
115
- roleRequired: {
116
- id: string;
117
- };
118
- };
119
- export declare const countrySelectionMessages: {};
1
+ export declare const roleMessages: {
2
+ header: {
3
+ id: string;
4
+ };
5
+ placeholder: {
6
+ id: string;
7
+ };
8
+ required: {
9
+ id: string;
10
+ };
11
+ HEAD_OF_GOVERNMENT: {
12
+ id: string;
13
+ };
14
+ MINISTER: {
15
+ id: string;
16
+ };
17
+ PARLIMENT_MEMBER: {
18
+ id: string;
19
+ };
20
+ CENTRAL_BANK_MEMBER: {
21
+ id: string;
22
+ };
23
+ BOARD_MEMBER_POLITICAL_PARTY: {
24
+ id: string;
25
+ };
26
+ JUDGE_SUPREME_COURT: {
27
+ id: string;
28
+ };
29
+ JUDGE_OTHER_HIGH_COURT: {
30
+ id: string;
31
+ };
32
+ REVISION_INSTITUTE: {
33
+ id: string;
34
+ };
35
+ AMBASSADOR: {
36
+ id: string;
37
+ };
38
+ MILITARY_OFFICER: {
39
+ id: string;
40
+ };
41
+ GOVERNMENT_COMPANY: {
42
+ id: string;
43
+ };
44
+ EU_HIGH_RANKING_POSITION: {
45
+ id: string;
46
+ };
47
+ HIGH_RANKING_POSITION_INTERNALTIONAL_CORP: {
48
+ id: string;
49
+ };
50
+ };
51
+ export declare const militaryMessages: {
52
+ header: {
53
+ id: string;
54
+ };
55
+ placeholder: {
56
+ id: string;
57
+ };
58
+ required: {
59
+ id: string;
60
+ };
61
+ GENERAL: {
62
+ id: string;
63
+ };
64
+ LIEUTENANT_GENERAL: {
65
+ id: string;
66
+ };
67
+ MAJOR_GENERAL: {
68
+ id: string;
69
+ };
70
+ ADMIRAL: {
71
+ id: string;
72
+ };
73
+ VICE_ADMIRAL: {
74
+ id: string;
75
+ };
76
+ REAR_ADMIRAL: {
77
+ id: string;
78
+ };
79
+ };
80
+ export declare const ambassadorMessages: {
81
+ header: {
82
+ id: string;
83
+ };
84
+ required: {
85
+ id: string;
86
+ };
87
+ placeholder: {
88
+ id: string;
89
+ };
90
+ };
91
+ export declare const governmentCompanyMessages: {
92
+ nameHeader: {
93
+ id: string;
94
+ };
95
+ nameRequired: {
96
+ id: string;
97
+ };
98
+ roleHeader: {
99
+ id: string;
100
+ };
101
+ roleRequired: {
102
+ id: string;
103
+ };
104
+ };
105
+ export declare const intCompanyMessages: {
106
+ nameHeader: {
107
+ id: string;
108
+ };
109
+ nameRequired: {
110
+ id: string;
111
+ };
112
+ roleHeader: {
113
+ id: string;
114
+ };
115
+ roleRequired: {
116
+ id: string;
117
+ };
118
+ };
119
+ export declare const countrySelectionMessages: {};
@@ -1,121 +1,121 @@
1
- import { defineMessages } from "react-intl";
2
- import { Role, MilitaryRank } from "../PepContext";
3
- export const roleMessages = defineMessages({
4
- header: {
5
- id: "pep.role.roles.header",
6
- },
7
- placeholder: {
8
- id: "pep.role.roles.placeholder",
9
- },
10
- required: {
11
- id: "pep.role.roles.required",
12
- },
13
- [Role.HEAD_OF_GOVERNMENT]: {
14
- id: "pep.role.roles.alt.HEAD_OF_GOVERNMENT",
15
- },
16
- [Role.MINISTER]: {
17
- id: "pep.role.roles.alt.MINISTER",
18
- },
19
- [Role.PARLIMENT_MEMBER]: {
20
- id: "pep.role.roles.alt.PARLIMENT_MEMBER",
21
- },
22
- [Role.CENTRAL_BANK_MEMBER]: {
23
- id: "pep.role.roles.alt.CENTRAL_BANK_MEMBER",
24
- },
25
- [Role.BOARD_MEMBER_POLITICAL_PARTY]: {
26
- id: "pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY",
27
- },
28
- [Role.JUDGE_SUPREME_COURT]: {
29
- id: "pep.role.roles.alt.JUDGE_SUPREME_COURT",
30
- },
31
- [Role.JUDGE_OTHER_HIGH_COURT]: {
32
- id: "pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT",
33
- },
34
- [Role.REVISION_INSTITUTE]: {
35
- id: "pep.role.roles.alt.REVISION_INSTITUTE",
36
- },
37
- [Role.AMBASSADOR]: {
38
- id: "pep.role.roles.alt.AMBASSADOR",
39
- },
40
- [Role.MILITARY_OFFICER]: {
41
- id: "pep.role.roles.alt.MILITARY_OFFICER",
42
- },
43
- [Role.GOVERNMENT_COMPANY]: {
44
- id: "pep.role.roles.alt.GOVERNMENT_COMPANY",
45
- },
46
- [Role.EU_HIGH_RANKING_POSITION]: {
47
- id: "pep.role.roles.alt.EU_HIGH_RANKING_POSITION",
48
- },
49
- [Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]: {
50
- id: "pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
51
- },
52
- });
53
- export const militaryMessages = defineMessages({
54
- header: {
55
- id: "pep.role.military.name.header",
56
- },
57
- placeholder: {
58
- id: "pep.role.military.header",
59
- },
60
- required: {
61
- id: "pep.role.military.required",
62
- },
63
- [MilitaryRank.GENERAL]: {
64
- id: "pep.role.military.alt.GENERAL",
65
- },
66
- [MilitaryRank.LIEUTENANT_GENERAL]: {
67
- id: "pep.role.military.alt.LIEUTENANT_GENERAL",
68
- },
69
- [MilitaryRank.MAJOR_GENERAL]: {
70
- id: "pep.role.military.alt.MAJOR_GENERAL",
71
- },
72
- [MilitaryRank.ADMIRAL]: {
73
- id: "pep.role.military.alt.ADMIRAL",
74
- },
75
- [MilitaryRank.VICE_ADMIRAL]: {
76
- id: "pep.role.military.alt.VICE_ADMIRAL",
77
- },
78
- [MilitaryRank.REAR_ADMIRAL]: {
79
- id: "pep.role.military.alt.REAR_ADMIRAL",
80
- },
81
- });
82
- export const ambassadorMessages = defineMessages({
83
- header: {
84
- id: "pep.role.ambassador.header",
85
- },
86
- required: {
87
- id: "pep.role.ambassador.required",
88
- },
89
- placeholder: {
90
- id: "pep.role.ambassador.placeholder",
91
- },
92
- });
93
- export const governmentCompanyMessages = defineMessages({
94
- nameHeader: {
95
- id: "pep.role.governmentCompany.name.header",
96
- },
97
- nameRequired: {
98
- id: "pep.role.governmentCompany.name.required",
99
- },
100
- roleHeader: {
101
- id: "pep.role.governmentCompany.role.header",
102
- },
103
- roleRequired: {
104
- id: "pep.role.governmentCompany.role.required",
105
- },
106
- });
107
- export const intCompanyMessages = defineMessages({
108
- nameHeader: {
109
- id: "pep.role.intCompany.name.header",
110
- },
111
- nameRequired: {
112
- id: "pep.role.intCompany.name.required",
113
- },
114
- roleHeader: {
115
- id: "pep.role.intCompany.role.header",
116
- },
117
- roleRequired: {
118
- id: "pep.role.intCompany.role.required",
119
- },
120
- });
121
- export const countrySelectionMessages = defineMessages({});
1
+ import { defineMessages } from "react-intl";
2
+ import { Role, MilitaryRank } from "../PepContext";
3
+ export const roleMessages = defineMessages({
4
+ header: {
5
+ id: "pep.role.roles.header",
6
+ },
7
+ placeholder: {
8
+ id: "pep.role.roles.placeholder",
9
+ },
10
+ required: {
11
+ id: "pep.role.roles.required",
12
+ },
13
+ [Role.HEAD_OF_GOVERNMENT]: {
14
+ id: "pep.role.roles.alt.HEAD_OF_GOVERNMENT",
15
+ },
16
+ [Role.MINISTER]: {
17
+ id: "pep.role.roles.alt.MINISTER",
18
+ },
19
+ [Role.PARLIMENT_MEMBER]: {
20
+ id: "pep.role.roles.alt.PARLIMENT_MEMBER",
21
+ },
22
+ [Role.CENTRAL_BANK_MEMBER]: {
23
+ id: "pep.role.roles.alt.CENTRAL_BANK_MEMBER",
24
+ },
25
+ [Role.BOARD_MEMBER_POLITICAL_PARTY]: {
26
+ id: "pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY",
27
+ },
28
+ [Role.JUDGE_SUPREME_COURT]: {
29
+ id: "pep.role.roles.alt.JUDGE_SUPREME_COURT",
30
+ },
31
+ [Role.JUDGE_OTHER_HIGH_COURT]: {
32
+ id: "pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT",
33
+ },
34
+ [Role.REVISION_INSTITUTE]: {
35
+ id: "pep.role.roles.alt.REVISION_INSTITUTE",
36
+ },
37
+ [Role.AMBASSADOR]: {
38
+ id: "pep.role.roles.alt.AMBASSADOR",
39
+ },
40
+ [Role.MILITARY_OFFICER]: {
41
+ id: "pep.role.roles.alt.MILITARY_OFFICER",
42
+ },
43
+ [Role.GOVERNMENT_COMPANY]: {
44
+ id: "pep.role.roles.alt.GOVERNMENT_COMPANY",
45
+ },
46
+ [Role.EU_HIGH_RANKING_POSITION]: {
47
+ id: "pep.role.roles.alt.EU_HIGH_RANKING_POSITION",
48
+ },
49
+ [Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]: {
50
+ id: "pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
51
+ },
52
+ });
53
+ export const militaryMessages = defineMessages({
54
+ header: {
55
+ id: "pep.role.military.name.header",
56
+ },
57
+ placeholder: {
58
+ id: "pep.role.military.header",
59
+ },
60
+ required: {
61
+ id: "pep.role.military.required",
62
+ },
63
+ [MilitaryRank.GENERAL]: {
64
+ id: "pep.role.military.alt.GENERAL",
65
+ },
66
+ [MilitaryRank.LIEUTENANT_GENERAL]: {
67
+ id: "pep.role.military.alt.LIEUTENANT_GENERAL",
68
+ },
69
+ [MilitaryRank.MAJOR_GENERAL]: {
70
+ id: "pep.role.military.alt.MAJOR_GENERAL",
71
+ },
72
+ [MilitaryRank.ADMIRAL]: {
73
+ id: "pep.role.military.alt.ADMIRAL",
74
+ },
75
+ [MilitaryRank.VICE_ADMIRAL]: {
76
+ id: "pep.role.military.alt.VICE_ADMIRAL",
77
+ },
78
+ [MilitaryRank.REAR_ADMIRAL]: {
79
+ id: "pep.role.military.alt.REAR_ADMIRAL",
80
+ },
81
+ });
82
+ export const ambassadorMessages = defineMessages({
83
+ header: {
84
+ id: "pep.role.ambassador.header",
85
+ },
86
+ required: {
87
+ id: "pep.role.ambassador.required",
88
+ },
89
+ placeholder: {
90
+ id: "pep.role.ambassador.placeholder",
91
+ },
92
+ });
93
+ export const governmentCompanyMessages = defineMessages({
94
+ nameHeader: {
95
+ id: "pep.role.governmentCompany.name.header",
96
+ },
97
+ nameRequired: {
98
+ id: "pep.role.governmentCompany.name.required",
99
+ },
100
+ roleHeader: {
101
+ id: "pep.role.governmentCompany.role.header",
102
+ },
103
+ roleRequired: {
104
+ id: "pep.role.governmentCompany.role.required",
105
+ },
106
+ });
107
+ export const intCompanyMessages = defineMessages({
108
+ nameHeader: {
109
+ id: "pep.role.intCompany.name.header",
110
+ },
111
+ nameRequired: {
112
+ id: "pep.role.intCompany.name.required",
113
+ },
114
+ roleHeader: {
115
+ id: "pep.role.intCompany.role.header",
116
+ },
117
+ roleRequired: {
118
+ id: "pep.role.intCompany.role.required",
119
+ },
120
+ });
121
+ export const countrySelectionMessages = defineMessages({});
@@ -1,13 +1,13 @@
1
- import { FunctionComponent } from "react";
2
- import { Alternative } from "@lysaab/ui-2/components/input/InputAPI";
3
- import { Language } from "@lysaab/ui-2";
4
- import { Role, MilitaryRank } from "../PepContext";
5
- import { IntlShape } from "react-intl";
6
- interface Props {
7
- language: Language;
8
- next: () => void;
9
- }
10
- export declare const RolePage: FunctionComponent<Props>;
11
- export declare function getRoleAlts(intl: IntlShape): Alternative<Role>[];
12
- export declare function getMilitaryAlts(intl: IntlShape): Alternative<MilitaryRank>[];
13
- export {};
1
+ import { FunctionComponent } from "react";
2
+ import { Alternative } from "@lysaab/ui-2/components/input/InputAPI";
3
+ import { Language } from "@lysaab/ui-2";
4
+ import { Role, MilitaryRank } from "../PepContext";
5
+ import { IntlShape } from "react-intl";
6
+ interface Props {
7
+ language: Language;
8
+ next: () => void;
9
+ }
10
+ export declare const RolePage: FunctionComponent<Props>;
11
+ export declare function getRoleAlts(intl: IntlShape): Alternative<Role>[];
12
+ export declare function getMilitaryAlts(intl: IntlShape): Alternative<MilitaryRank>[];
13
+ export {};