@colijnit/relation 260.1.0 → 261.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.
- package/README.md +24 -24
- package/bundles/colijnit-relation.umd.js +409 -228
- package/bundles/colijnit-relation.umd.js.map +1 -1
- package/colijnit-relation.d.ts +3 -1
- package/colijnit-relation.metadata.json +1 -1
- package/esm2015/colijnit-relation.js +4 -2
- package/esm2015/lib/component/relation/relation.component.js +26 -18
- package/esm2015/lib/component/relation/relation.module.js +8 -3
- package/esm2015/lib/component/relation-avatar/relation-avatar.component.js +8 -4
- package/esm2015/lib/component/relation-contact-options/relation-contact-option-list.component.js +23 -8
- package/esm2015/lib/component/relation-contact-options/relation-contact-option.component.js +13 -3
- package/esm2015/lib/component/relation-contact-options/relation-contact-options.component.js +10 -6
- package/esm2015/lib/component/relation-documents/relation-documents.component.js +97 -0
- package/esm2015/lib/component/relation-documents/relation-documents.module.js +24 -0
- package/esm2015/lib/component/relation-first-name/relation-first-name.component.js +14 -4
- package/esm2015/lib/component/relation-gender/relation-gender.component.js +8 -3
- package/esm2015/lib/component/relation-initials/relation-initials.component.js +14 -4
- package/esm2015/lib/component/relation-language/relation-language.component.js +14 -4
- package/esm2015/lib/component/relation-language/relation-language.module.js +4 -3
- package/esm2015/lib/component/relation-last-name/relation-last-name.component.js +14 -4
- package/esm2015/lib/component/relation-prefix-name/relation-prefix-name.component.js +14 -4
- package/esm2015/lib/component/relation-title/relation-title.component.js +14 -4
- package/esm2015/lib/component/relation-title/relation-title.module.js +4 -3
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/esm2015/lib/relation-version.js +3 -3
- package/esm2015/lib/res/dictionary/dictionaries.js +5 -5
- package/fesm2015/colijnit-relation.js +504 -284
- package/fesm2015/colijnit-relation.js.map +1 -1
- package/lib/component/relation/relation.component.d.ts +2 -0
- package/lib/component/relation-contact-options/relation-contact-option-list.component.d.ts +2 -0
- package/lib/component/relation-contact-options/relation-contact-option.component.d.ts +3 -0
- package/lib/component/relation-contact-options/style/_layout.scss +98 -44
- package/lib/component/relation-contact-options/style/_material-definition.scss +2 -1
- package/lib/component/relation-contact-options/style/_theme.scss +21 -0
- package/lib/component/relation-documents/relation-documents.component.d.ts +18 -0
- package/lib/component/relation-documents/relation-documents.module.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/res/dictionary/dictionaries.d.ts +138 -0
- package/package.json +5 -5
|
@@ -8,6 +8,7 @@ import { RelationConnectorService } from '../../service/relation-connector.servi
|
|
|
8
8
|
import { Title } from "@colijnit/mainapi/build/model/title.bo";
|
|
9
9
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
10
10
|
import { Icon } from "../../enum/icon.enum";
|
|
11
|
+
import { RelmanCfgName } from '../../enum/relman-cfg-name.enum';
|
|
11
12
|
export declare class RelationComponent implements OnInit, OnDestroy {
|
|
12
13
|
protected relationEventService: RelationEventService;
|
|
13
14
|
private _translationService;
|
|
@@ -16,6 +17,7 @@ export declare class RelationComponent implements OnInit, OnDestroy {
|
|
|
16
17
|
private _relationService;
|
|
17
18
|
iconCacheService: IconCacheService;
|
|
18
19
|
readonly icons: typeof Icon;
|
|
20
|
+
readonly relmanCfgNames: typeof RelmanCfgName;
|
|
19
21
|
loadRelationFromLoginResponse: boolean;
|
|
20
22
|
forceReadOnly: boolean;
|
|
21
23
|
customerPortal: boolean;
|
|
@@ -18,5 +18,7 @@ export declare class RelationContactOptionListComponent {
|
|
|
18
18
|
*/
|
|
19
19
|
handleOptionMouseDown(event: MouseEvent): void;
|
|
20
20
|
handleOptionMouseUp(event: MouseEvent): void;
|
|
21
|
+
handleSequenceUp(option: ContactOption): void;
|
|
22
|
+
handleSequenceDown(option: ContactOption): void;
|
|
21
23
|
private _reArrangeSequences;
|
|
22
24
|
}
|
|
@@ -18,10 +18,13 @@ export declare class RelationContactOptionComponent implements OnInit {
|
|
|
18
18
|
screenConfigObjectName: string;
|
|
19
19
|
saveClick: EventEmitter<ContactOption>;
|
|
20
20
|
deleteClick: EventEmitter<ContactOption>;
|
|
21
|
+
sequenceChangeUp: EventEmitter<ContactOption>;
|
|
22
|
+
sequenceChangeDown: EventEmitter<ContactOption>;
|
|
21
23
|
showClass: boolean;
|
|
22
24
|
iconType: Icon;
|
|
23
25
|
label: string;
|
|
24
26
|
input: InputTextComponent;
|
|
27
|
+
showSequenceArrows: boolean;
|
|
25
28
|
private _model;
|
|
26
29
|
private _type;
|
|
27
30
|
constructor(iconCacheService: IconCacheService, _relationService: RelationService);
|
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
.co-relation-contact-options {
|
|
3
3
|
font-family: $re-co-relation-contact-options-font-family;
|
|
4
4
|
font-size: $re-co-relation-contact-options-font-size;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
gap: $re-co-relation-contact-options-gap;
|
|
5
8
|
.relation-option-wrapper {
|
|
6
9
|
margin: 0 0 10px 0;
|
|
10
|
+
width: calc(50% - 5px);
|
|
11
|
+
flex-direction: column-reverse;
|
|
12
|
+
display: flex;
|
|
7
13
|
}
|
|
14
|
+
|
|
8
15
|
.relation-contact-options-label {
|
|
9
16
|
font-family: $re-co-relation-contact-options-label-font-family;
|
|
10
17
|
font-size: $re-co-relation-contact-options-label-font-size;
|
|
@@ -15,97 +22,141 @@
|
|
|
15
22
|
align-items: center;
|
|
16
23
|
margin: $re-co-relation-contact-options-label-margin;
|
|
17
24
|
gap: $re-co-relation-contact-options-label-gap;
|
|
25
|
+
width: 100%;
|
|
18
26
|
.co-icon {
|
|
19
27
|
cursor: pointer;
|
|
20
28
|
height: $re-co-relation-contact-options-label-icon-size;
|
|
21
29
|
width: $re-co-relation-contact-options-label-icon-size;
|
|
30
|
+
|
|
22
31
|
svg {
|
|
23
32
|
fill: #1A73E8;
|
|
24
33
|
}
|
|
34
|
+
|
|
25
35
|
svg [fill] {
|
|
26
36
|
fill: #1A73E8;
|
|
27
37
|
}
|
|
28
38
|
}
|
|
39
|
+
|
|
29
40
|
.relation-contact-options-type-label {
|
|
30
41
|
font-size: 12px;
|
|
31
42
|
color: #1A73E8;
|
|
32
43
|
cursor: pointer;
|
|
33
44
|
}
|
|
34
45
|
}
|
|
46
|
+
|
|
35
47
|
.contact-option-wrapper {
|
|
36
48
|
display: flex;
|
|
37
|
-
flex-direction:
|
|
49
|
+
flex-direction: column;
|
|
38
50
|
gap: $re-co-relation-contact-options-type-gap;
|
|
39
51
|
}
|
|
52
|
+
|
|
40
53
|
&.adding-email-option, .adding-phone-option, .adding-other-option {
|
|
41
54
|
.co-relation-contact-option:not(.new-contact-option) {
|
|
42
55
|
opacity: 0.5;
|
|
43
56
|
pointer-events: none;
|
|
44
57
|
}
|
|
45
58
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
position: relative;
|
|
54
|
-
width: 50%;
|
|
55
|
-
.co-input-text {
|
|
59
|
+
.co-relation-contact-option {
|
|
60
|
+
font-family: $re-co-relation-contact-options-font-family;
|
|
61
|
+
font-size: $re-co-relation-contact-options-font-size;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: $re-co-relation-contact-option-gap;
|
|
65
|
+
position: relative;
|
|
56
66
|
width: 100%;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
height:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
|
|
68
|
+
.co-input-text {
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.co-icon {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
height: $re-co-relation-contact-option-delete-icon-size;
|
|
75
|
+
width: $re-co-relation-contact-option-delete-icon-size;
|
|
76
|
+
|
|
77
|
+
&.relation-delete {
|
|
78
|
+
width: 10px;
|
|
79
|
+
height: 10px;
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 5px;
|
|
82
|
+
right: 5px;
|
|
83
|
+
display: none;
|
|
84
|
+
|
|
85
|
+
& svg {
|
|
86
|
+
fill: #000;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& svg [fill] {
|
|
90
|
+
fill: #000;
|
|
91
|
+
}
|
|
71
92
|
}
|
|
72
|
-
|
|
73
|
-
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.new-contact-option {
|
|
96
|
+
margin: $re-co-relation-contact-options-type-new-option-margin;
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
.co-icon {
|
|
100
|
+
&.relation-delete {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
74
104
|
}
|
|
75
105
|
}
|
|
76
|
-
|
|
77
|
-
&.new-contact-option {
|
|
78
|
-
margin: $re-co-relation-contact-options-type-new-option-margin;
|
|
106
|
+
|
|
79
107
|
&:hover {
|
|
80
108
|
.co-icon {
|
|
81
109
|
&.relation-delete {
|
|
82
|
-
display:
|
|
110
|
+
display: block;
|
|
83
111
|
}
|
|
84
112
|
}
|
|
85
113
|
}
|
|
86
114
|
}
|
|
87
|
-
&:hover {
|
|
88
|
-
.co-icon {
|
|
89
|
-
&.relation-delete {
|
|
90
|
-
display: block;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
115
|
}
|
|
116
|
+
|
|
95
117
|
.relation-contact-option-sequence {
|
|
96
118
|
border-radius: 50%;
|
|
97
119
|
position: absolute;
|
|
98
|
-
z-index:
|
|
99
|
-
top:
|
|
100
|
-
left:
|
|
101
|
-
height:
|
|
102
|
-
width:
|
|
103
|
-
font-size:
|
|
120
|
+
z-index: 2;
|
|
121
|
+
top: -4px;
|
|
122
|
+
left: -4px;
|
|
123
|
+
height: 13px;
|
|
124
|
+
width: 13px;
|
|
125
|
+
font-size: 9px;
|
|
126
|
+
font-family: 'Public Sans', $re-co-relation-contact-options-font-family;
|
|
104
127
|
align-items: center;
|
|
105
128
|
display: flex;
|
|
106
129
|
justify-content: center;
|
|
107
130
|
}
|
|
108
131
|
|
|
132
|
+
.arrows {
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
transition: all 0.15s;
|
|
135
|
+
position: absolute;
|
|
136
|
+
z-index: 2;
|
|
137
|
+
left: 50%;
|
|
138
|
+
|
|
139
|
+
&.up {
|
|
140
|
+
top: -25px;
|
|
141
|
+
|
|
142
|
+
svg {
|
|
143
|
+
transform: rotate(-90deg);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.down {
|
|
148
|
+
bottom: -25px;
|
|
149
|
+
|
|
150
|
+
svg {
|
|
151
|
+
transform: rotate(90deg);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:hover {
|
|
156
|
+
scale: 1.25;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
109
160
|
.draggable-contact-option.cdk-drag-preview, can-drag.cdk-drag-preview {
|
|
110
161
|
box-sizing: border-box;
|
|
111
162
|
border-radius: 4px;
|
|
@@ -141,17 +192,20 @@
|
|
|
141
192
|
border-style: $re-co-relation-contact-options-type-popup-border-style;
|
|
142
193
|
border-width: $re-co-relation-contact-options-type-popup-border-width;
|
|
143
194
|
box-shadow: $re-co-relation-contact-options-type-popup-box-shadow;
|
|
195
|
+
|
|
144
196
|
.other-types-wrapper {
|
|
145
197
|
cursor: pointer;
|
|
146
198
|
display: flex;
|
|
147
199
|
align-items: center;
|
|
148
200
|
gap: $re-co-relation-contact-options-type-popup-gap;
|
|
149
201
|
padding: $re-co-relation-contact-options-type-popup-item-padding;
|
|
202
|
+
|
|
150
203
|
.co-icon {
|
|
151
204
|
height: $re-co-relation-contact-options-type-popup-icon-size;
|
|
152
205
|
width: $re-co-relation-contact-options-type-popup-icon-size;
|
|
153
206
|
}
|
|
154
207
|
}
|
|
208
|
+
|
|
155
209
|
.other-type-label {
|
|
156
210
|
|
|
157
211
|
}
|
|
@@ -5,12 +5,13 @@ $re-co-relation-contact-options-font-color: $re-color-font !default;
|
|
|
5
5
|
$re-co-relation-contact-options-label-font-family: $re-font-family !default;
|
|
6
6
|
$re-co-relation-contact-options-label-font-size: $re-font-size !default;
|
|
7
7
|
|
|
8
|
+
$re-co-relation-contact-options-gap: 10px !default;
|
|
8
9
|
$re-co-relation-contact-options-label-margin: 0 !default;
|
|
9
10
|
$re-co-relation-contact-options-label-gap: 0 !default;
|
|
10
11
|
$re-co-relation-contact-options-label-icon-size: 20px !default;
|
|
11
12
|
$re-co-relation-contact-options-label-icon-color: $re-color-action !default;
|
|
12
13
|
$re-co-relation-contact-options-type-gap: 5px !default;
|
|
13
|
-
$re-co-relation-contact-options-type-new-option-margin: 0 !default;
|
|
14
|
+
$re-co-relation-contact-options-type-new-option-margin: 20px 0 0 0 !default;
|
|
14
15
|
|
|
15
16
|
$re-co-relation-contact-options-sequence-background-color: #e85152 !default;
|
|
16
17
|
$re-co-relation-contact-options-sequence-color: #f7fafa !default;
|
|
@@ -3,41 +3,62 @@
|
|
|
3
3
|
}
|
|
4
4
|
.co-relation-contact-option {
|
|
5
5
|
color: $re-co-relation-contact-options-font-color;
|
|
6
|
+
|
|
6
7
|
.co-icon {
|
|
7
8
|
svg {
|
|
8
9
|
fill: $re-co-relation-contact-options-label-icon-color;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
[fill] {
|
|
11
13
|
fill: $re-co-relation-contact-options-label-icon-color;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
16
|
+
|
|
17
|
+
.arrows {
|
|
18
|
+
background-color: $re-co-relation-contact-options-sequence-background-color;
|
|
19
|
+
|
|
20
|
+
svg {
|
|
21
|
+
fill: $re-co-relation-contact-options-sequence-color;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[fill] {
|
|
25
|
+
fill: $re-co-relation-contact-options-sequence-color;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
14
28
|
}
|
|
15
29
|
.relation-contact-option-sequence {
|
|
16
30
|
background-color: $re-co-relation-contact-options-sequence-background-color;
|
|
17
31
|
color: $re-co-relation-contact-options-sequence-color;
|
|
18
32
|
}
|
|
33
|
+
|
|
19
34
|
.relation-contact-options-other-types-popup-content {
|
|
20
35
|
background-color: $re-co-relation-contact-options-type-popup-background-color;
|
|
21
36
|
border-color: $re-co-relation-contact-options-type-popup-border-color;
|
|
22
37
|
color: $re-co-relation-contact-options-type-popup-color;
|
|
38
|
+
|
|
23
39
|
.other-types-wrapper {
|
|
24
40
|
background-color: $re-co-relation-contact-options-type-popup-item-background-color;
|
|
25
41
|
color: $re-co-relation-contact-options-type-popup-item-color;
|
|
42
|
+
|
|
26
43
|
.co-icon {
|
|
27
44
|
svg {
|
|
28
45
|
fill: $re-co-relation-contact-options-type-popup-item-color;
|
|
29
46
|
}
|
|
47
|
+
|
|
30
48
|
[fill] {
|
|
31
49
|
fill: $re-co-relation-contact-options-type-popup-item-color;
|
|
32
50
|
}
|
|
33
51
|
}
|
|
52
|
+
|
|
34
53
|
&:hover {
|
|
35
54
|
background-color: $re-co-relation-contact-options-type-popup-item-hover-background-color;
|
|
36
55
|
color: $re-co-relation-contact-options-type-popup-item-hover-color;
|
|
56
|
+
|
|
37
57
|
.co-icon {
|
|
38
58
|
svg {
|
|
39
59
|
fill: $re-co-relation-contact-options-type-popup-item-hover-color;
|
|
40
60
|
}
|
|
61
|
+
|
|
41
62
|
[fill] {
|
|
42
63
|
fill: $re-co-relation-contact-options-type-popup-item-hover-color;
|
|
43
64
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RelationAnyType } from "@colijnit/relationapi/build/model/relation-any-type";
|
|
2
|
+
import { CoDocument } from "@colijnit/mainapi/build/model/co-document.bo";
|
|
3
|
+
import { Icon } from "../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
|
+
export declare class RelationDocumentsComponent {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly icons: typeof Icon;
|
|
8
|
+
private _relation;
|
|
9
|
+
set relation(value: RelationAnyType);
|
|
10
|
+
get relation(): RelationAnyType;
|
|
11
|
+
get documentsCollection(): CoDocument[];
|
|
12
|
+
constructor(iconCacheService: IconCacheService);
|
|
13
|
+
showDocument(relDocument: CoDocument): void;
|
|
14
|
+
downloadDocument(relDocument: CoDocument, event: MouseEvent): Promise<void>;
|
|
15
|
+
getDocumentFileExtension(relDocument: CoDocument): string;
|
|
16
|
+
formatDate(date: string | Date): string;
|
|
17
|
+
private documentHasKlantportaalTag;
|
|
18
|
+
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ export declare enum Icon {
|
|
|
3
3
|
ArrowPointRight = "arrow_point_right",
|
|
4
4
|
CheckDuotone = "check_duotone",
|
|
5
5
|
Crossskinny = "crossskinny",
|
|
6
|
+
DownloadRegular = "download_regular",
|
|
6
7
|
Email = "email",
|
|
8
|
+
EyeRegular = "eye_regular",
|
|
7
9
|
Mobile = "mobile",
|
|
8
10
|
PencilRegular = "pencil_regular",
|
|
9
11
|
PencilRoundOpen = "pencil_round_open",
|