@colijnit/sharedcomponents 255.1.13 → 255.1.15

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 (35) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +214 -74
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +19 -17
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +20 -18
  6. package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +38 -14
  7. package/esm2015/lib/components/email-selector/email-selector.component.js +105 -0
  8. package/esm2015/lib/components/email-selector/email-selector.module.js +32 -0
  9. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +1 -6
  10. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.js +4 -2
  11. package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +5 -3
  12. package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +46 -26
  13. package/esm2015/lib/components/task-creator/task-creator.component.js +5 -57
  14. package/esm2015/lib/components/task-creator/task-creator.module.js +4 -2
  15. package/esm2015/lib/enum/icon.enum.js +3 -1
  16. package/esm2015/lib/model/icon-svg.js +3 -1
  17. package/fesm2015/colijnit-sharedcomponents.js +223 -104
  18. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  19. package/index.html +2 -2
  20. package/lib/components/activity-overview-component/style/_layout.scss +63 -39
  21. package/lib/components/email-selector/email-selector.component.d.ts +33 -0
  22. package/lib/components/email-selector/email-selector.module.d.ts +2 -0
  23. package/lib/components/email-selector/style/_layout.scss +15 -0
  24. package/lib/components/email-selector/style/_material-definition.scss +15 -0
  25. package/lib/components/email-selector/style/_theme.scss +4 -0
  26. package/lib/components/email-selector/style/material.scss +4 -0
  27. package/lib/components/role-email-selector/role-email-selector.component.d.ts +9 -3
  28. package/lib/components/role-email-selector/style/_layout.scss +2 -2
  29. package/lib/components/task-creator/style/_layout.scss +73 -55
  30. package/lib/components/task-creator/task-creator.component.d.ts +0 -5
  31. package/lib/enum/icon.enum.d.ts +2 -0
  32. package/main.a44fb262c84ddaedcaa8.js +1 -0
  33. package/package.json +2 -2
  34. package/{styles.8fce26887e7ff9657567.css → styles.148f8e42f62a8231d70c.css} +1 -1
  35. package/main.e4088c92fb309d6af37a.js +0 -1
package/index.html CHANGED
@@ -4,9 +4,9 @@
4
4
  <base href="/">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <link rel="icon" type="image/x-icon" href="favicon.ico">
7
- <style>@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Public+Sans&display=swap);body,html{margin:0;overflow:hidden}body,html{width:100%;height:100%}*{box-sizing:border-box;padding:0;margin:0}</style><link rel="stylesheet" href="styles.8fce26887e7ff9657567.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.8fce26887e7ff9657567.css"></noscript></head>
7
+ <style>@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Public+Sans&display=swap);body,html{margin:0;overflow:hidden}body,html{width:100%;height:100%}*{box-sizing:border-box;padding:0;margin:0}</style><link rel="stylesheet" href="styles.148f8e42f62a8231d70c.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.148f8e42f62a8231d70c.css"></noscript></head>
8
8
  <body>
9
9
  <app-root></app-root>
10
- <script src="runtime.8aac21847ed3d3829cca.js" defer></script><script src="polyfills.907fe9d1887c5de17993.js" defer></script><script src="main.e4088c92fb309d6af37a.js" defer></script>
10
+ <script src="runtime.8aac21847ed3d3829cca.js" defer></script><script src="polyfills.907fe9d1887c5de17993.js" defer></script><script src="main.a44fb262c84ddaedcaa8.js" defer></script>
11
11
 
12
12
  </body></html>
@@ -27,8 +27,8 @@
27
27
  font-size: 12px;
28
28
  padding: 4px 15px;
29
29
  border-radius: 5px;
30
- background: #5FDCB399;
31
- border: 1px solid #5FDCB3;
30
+ background: #D0A46B99;
31
+ border: 1px solid #D0A46B;
32
32
  white-space: nowrap;
33
33
  color: #FFF;
34
34
  }
@@ -86,47 +86,47 @@
86
86
  align-items: center;
87
87
  }
88
88
  }
89
-
90
- .button-trigger {
91
- background-color: #FFFFFF;
92
- border: 1px solid #5FDCB3;
93
- height: auto;
94
- padding: 5px 15px;
95
- cursor: pointer;
96
- margin-right: auto;
97
- &:after {
98
- display: none;
99
- }
100
- span {
101
- font-size: 10px;
102
- color: #5FDCB3;
103
- font-weight: bold;
104
- }
105
- }
106
-
107
- .button-trigger-icon {
108
- background-color: #FFFFFF;
109
- border: 1px solid #5FDCB3;
110
- height: auto;
111
- padding: 5px 15px;
112
- cursor: pointer;
113
- margin-right: auto;
114
- span {
115
- font-size: 10px;
116
- color: #5FDCB3;
117
- font-weight: bold;
118
- }
119
- .co-icon {
120
- height: 10px;
121
- svg [fill] {
122
- fill: #5FDCB3;
89
+ .activity-buttons {
90
+ display: flex;
91
+ gap: 5px;
92
+ flex-wrap: wrap;
93
+ .button-trigger {
94
+ background-color: #FFFFFF;
95
+ border: 1px solid #D0A46B;
96
+ height: auto;
97
+ padding: 5px 15px;
98
+ cursor: pointer;
99
+ &:after {
100
+ display: none;
101
+ }
102
+ span {
103
+ font-size: 10px;
104
+ color: #D0A46B;
105
+ font-weight: bold;
123
106
  }
124
107
  }
125
- &:after {
126
- display: none;
108
+ .button-trigger-icon {
109
+ background-color: #FFFFFF;
110
+ border: 1px solid #D0A46B;
111
+ height: auto;
112
+ padding: 5px 15px;
113
+ cursor: pointer;
114
+ span {
115
+ font-size: 10px;
116
+ color: #D0A46B;
117
+ font-weight: bold;
118
+ }
119
+ .co-icon {
120
+ height: 10px;
121
+ svg [fill] {
122
+ fill: #5FDCB3;
123
+ }
124
+ }
125
+ &:after {
126
+ display: none;
127
+ }
127
128
  }
128
129
  }
129
-
130
130
  .date-divider {
131
131
  margin: 0 5px;
132
132
  font-weight: bold;
@@ -148,6 +148,30 @@
148
148
  background: #FAFAFA;
149
149
  color: #171721;
150
150
  }
151
+ .overview-task-wrapper {
152
+ .button-trigger {
153
+ background: #5FDCB399;
154
+ border: 1px solid #5FDCB3;
155
+ height: auto;
156
+ padding: 5px 15px;
157
+ cursor: pointer;
158
+ margin-right: auto;
159
+ color: #FFF;
160
+ }
161
+ .button-trigger-icon {
162
+ background: #5FDCB399;
163
+ border: 1px solid #5FDCB3;
164
+ height: auto;
165
+ padding: 5px 15px;
166
+ cursor: pointer;
167
+ margin-right: auto;
168
+ color: #FFF;
169
+ }
170
+ .task-box {
171
+ display: flex;
172
+ flex-direction: column;
173
+ }
174
+ }
151
175
  }
152
176
  }
153
177
 
@@ -0,0 +1,33 @@
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { Icon } from "../../enum/icon.enum";
3
+ import { IconCacheService } from "../../service/icon-cache.service";
4
+ import { WorkflowCategoryType } from "@colijnit/mainapi/build/enum/workflow-category.enum";
5
+ import { SharedService } from "../../service/shared.service";
6
+ import { SafeHtml } from "@angular/platform-browser";
7
+ export declare class EmailSelectorComponent implements OnInit {
8
+ iconService: IconCacheService;
9
+ sharedService: SharedService;
10
+ readonly icons: typeof Icon;
11
+ set key(value: string);
12
+ get key(): string;
13
+ set workflowCategoryType(value: WorkflowCategoryType);
14
+ get workflowCategoryType(): WorkflowCategoryType;
15
+ set emailAddresses(value: string[]);
16
+ get emailAddresses(): string[];
17
+ set bccEmailAddresses(value: string[]);
18
+ get bccEmailAddresses(): string[];
19
+ showBCC: boolean;
20
+ buttonIcon: SafeHtml;
21
+ readonly emailAddressesChange: EventEmitter<any>;
22
+ readonly bccEmailAddressesChange: EventEmitter<any>;
23
+ private _key;
24
+ private _workflowCategoryType;
25
+ private _emailAddresses;
26
+ private _bccEmailAddresses;
27
+ showClass(): boolean;
28
+ constructor(iconService: IconCacheService, sharedService: SharedService);
29
+ ngOnInit(): Promise<void>;
30
+ toggleBCC(): void;
31
+ handleEmailAddressesChanged(): void;
32
+ handleBccEmailAddressesChanged(): void;
33
+ }
@@ -0,0 +1,2 @@
1
+ export declare class EmailSelectorModule {
2
+ }
@@ -0,0 +1,15 @@
1
+ @include export-module('co-email-selector-layout') {
2
+ .co-email-selector {
3
+ width: 100%;
4
+ height: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ row-gap: 5px;
8
+ .recipients-line {
9
+ width: 100%;
10
+ display: flex;
11
+ flex-direction: row;
12
+ row-gap: 5px;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ $cc-co-role-email-selector-chips-padding: 0 10px 10px 10px !default;
2
+ $cc-co-role-email-selector-chips-column-gap: 5px !default;
3
+ $cc-co-role-email-selector-chips-row-gap: 2px !default;
4
+
5
+ $cc-co-role-email-selector-chip-font-family: $cc-font-family !default;
6
+ $cc-co-role-email-selector-chip-font-size: $cc-font-size-small !default;
7
+ $cc-co-role-email-selector-chip-font-color: $cc-color-light !default;
8
+
9
+ $cc-co-role-email-selector-chip-background-color: $cc-color-active !default;
10
+ $cc-co-role-email-selector-chip-border-radius: 5px !default;
11
+ $cc-co-role-email-selector-chip-padding: 2px 7px !default;
12
+
13
+
14
+ $cc-co-role-email-selector-chip-delete-icon-color: $cc-color-light !default;
15
+ $cc-co-role-email-selector-chip-delete-icon-size: 20px !default;
@@ -0,0 +1,4 @@
1
+ @include export-module('co-email-selector-theme') {
2
+ .co-email-selector {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -17,7 +17,11 @@ export declare class RoleEmailSelectorComponent implements OnInit {
17
17
  set workflowCategoryType(value: WorkflowCategoryType);
18
18
  get workflowCategoryType(): WorkflowCategoryType;
19
19
  readonly modelChange: EventEmitter<any>;
20
- emailAddressesAvailable: RoleEmailaddress[];
20
+ emailAddressesAvailableForDropdown: RoleEmailaddress[];
21
+ chosenEmailAddressesInDropDown: RoleEmailaddress[];
22
+ emailModel: string;
23
+ private _roleEmailAddresses;
24
+ private _customEmailAddresses;
21
25
  private _model;
22
26
  private _key;
23
27
  private _workflowCategoryType;
@@ -25,7 +29,9 @@ export declare class RoleEmailSelectorComponent implements OnInit {
25
29
  constructor(iconService: IconCacheService, sharedService: SharedService);
26
30
  ngOnInit(): Promise<void>;
27
31
  fetchRoleEmailAddresses(): Promise<void>;
28
- roleChosen(role: RoleEmailaddress): void;
29
- addEmail(email: string): void;
32
+ roleChosen(roles: RoleEmailaddress[]): void;
33
+ handleKeyPressed(event: KeyboardEvent): void;
34
+ addEmail(): void;
35
+ updateModel(): void;
30
36
  removeOptionFromModel(email: string): void;
31
37
  }
@@ -3,8 +3,8 @@
3
3
  width: 100%;
4
4
  height: 100%;
5
5
  display: flex;
6
- flex-direction: column;
7
- row-gap: 2px;
6
+ flex-direction: row;
7
+ row-gap: 0px;
8
8
  .chips-wrapper {
9
9
  display: flex;
10
10
  flex-wrap: wrap;
@@ -3,70 +3,88 @@
3
3
  width: 100%;
4
4
  height: 100%;
5
5
  position: relative;
6
- .input-fields {
6
+ .top-rows {
7
7
  display: flex;
8
- flex-direction: row;
8
+ flex-direction: column;
9
9
  width: 100%;
10
- align-items: flex-start;
11
- gap: 15px;
12
- .task-input-fields {
10
+ gap: 5px;
11
+ .input-fields {
13
12
  display: flex;
14
- flex-direction: column;
13
+ flex-direction: row;
15
14
  width: 100%;
16
- }
17
- .co-input-text {
18
- width: 100%;
19
- margin-left: 45px;
20
- }
21
- .co-list-of-icons {
22
- position: absolute;
23
- display: block;
24
- left: 0;
25
- height: fit-content;
26
- background: linear-gradient(180deg, rgba(15, 64, 130, 0.04) 3%, rgba(26, 115, 232, 0.04) 90%);
27
- box-shadow: 0 4px 4px 0 #0000001A;
28
- border: 1px solid #DEDEEF;
29
- .icon-item {
15
+ align-items: flex-start;
16
+ gap: 15px;
17
+
18
+ .task-input-fields {
30
19
  display: flex;
31
- align-items: center;
32
- position: relative;
33
- &.menu-opened {
34
- background: #f6f9fc;
35
- }
36
- .drop-arrow {
37
- display: none;
38
- }
39
- .label {
40
- display: none;
41
- }
42
- .co-icon {
43
- padding: 2px;
44
- }
20
+ flex-direction: column;
21
+ width: 100%;
45
22
  }
46
- & > .icon-item {
47
- cursor: pointer;
48
- padding: 5px;
49
- &:after {
50
- content: '';
51
- width: 0;
52
- height: 0;
53
- border-left: 4px solid transparent;
54
- border-top: 4px solid transparent;
55
- border-right: 4px solid #000;
56
- border-bottom: 4px solid #000;
57
- position: absolute;
58
- right: -1px;
59
- bottom: -1px;
60
- transform: rotate(0deg);
61
- }
23
+
24
+ .co-input-text {
25
+ width: 100%;
26
+ margin-left: 45px;
62
27
  }
63
- .dropdown-menu {
64
- padding: 5px;
65
- display: flex;
66
- flex-direction: column;
67
- gap: 5px;
28
+
29
+ .co-list-of-icons {
30
+ position: absolute;
31
+ display: block;
32
+ left: 0;
33
+ height: fit-content;
34
+ background: linear-gradient(180deg, rgba(15, 64, 130, 0.04) 3%, rgba(26, 115, 232, 0.04) 90%);
35
+ box-shadow: 0 4px 4px 0 #0000001A;
36
+ border: 1px solid #DEDEEF;
37
+
68
38
  .icon-item {
39
+ display: flex;
40
+ align-items: center;
41
+ position: relative;
42
+
43
+ &.menu-opened {
44
+ background: #f6f9fc;
45
+ }
46
+
47
+ .drop-arrow {
48
+ display: none;
49
+ }
50
+
51
+ .label {
52
+ display: none;
53
+ }
54
+
55
+ .co-icon {
56
+ padding: 2px;
57
+ }
58
+ }
59
+
60
+ & > .icon-item {
69
61
  cursor: pointer;
62
+ padding: 5px;
63
+
64
+ &:after {
65
+ content: '';
66
+ width: 0;
67
+ height: 0;
68
+ border-left: 4px solid transparent;
69
+ border-top: 4px solid transparent;
70
+ border-right: 4px solid #000;
71
+ border-bottom: 4px solid #000;
72
+ position: absolute;
73
+ right: -1px;
74
+ bottom: -1px;
75
+ transform: rotate(0deg);
76
+ }
77
+ }
78
+
79
+ .dropdown-menu {
80
+ padding: 5px;
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: 5px;
84
+
85
+ .icon-item {
86
+ cursor: pointer;
87
+ }
70
88
  }
71
89
  }
72
90
  }
@@ -37,8 +37,6 @@ export declare class TaskCreatorComponent implements OnInit {
37
37
  senderAddress: string;
38
38
  emailAddresses: string[];
39
39
  bccEmailAddresses: string[];
40
- oldEmailAddresses: string[];
41
- oldBccEmailAddresses: string[];
42
40
  emailRequest: activityEmailRequestData;
43
41
  createdTask: Task;
44
42
  createdRemark: Remark;
@@ -56,9 +54,6 @@ export declare class TaskCreatorComponent implements OnInit {
56
54
  attachmentDialogCancelled(): void;
57
55
  addedDocument(docs: CoDocument[]): Promise<void>;
58
56
  deletedDocument(doc: CoDocument): Promise<void>;
59
- openEmailDialog(): void;
60
- emailDialogClosed(): void;
61
- emailDialogCancelled(): void;
62
57
  createRemarkClicked(): Promise<void>;
63
58
  createWorkClicked(): Promise<void>;
64
59
  createTaskClicked(): Promise<void>;
@@ -45,12 +45,14 @@ export declare enum Icon {
45
45
  Lock = "lock",
46
46
  MessageSmsRegular = "message_sms_regular",
47
47
  MessageSmsSolid = "message_sms_solid",
48
+ MinusSimple = "minus_simple",
48
49
  Notification = "notification",
49
50
  PaperclipRegular = "paperclip_regular",
50
51
  PaperPlaneTopSolid = "paper_plane_top_solid",
51
52
  Pdf = "pdf",
52
53
  PersonDiggingRegular = "person_digging_regular",
53
54
  PinRoundOpen = "pin_round_open",
55
+ PlusSimple = "plus_simple",
54
56
  Print = "print",
55
57
  PrintRegular = "print_regular",
56
58
  PrintSolid = "print_solid",