@colijnit/sharedcomponents 255.1.16 → 255.1.18

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 (41) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +60 -36
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/email-selector/email-selector.component.js +21 -16
  5. package/esm2015/lib/components/file-upload/file-upload.component.js +4 -1
  6. package/esm2015/lib/components/files-upload/files-upload.component.js +30 -20
  7. package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +41 -21
  8. package/esm2015/lib/components/task-creator/task-creator.component.js +41 -35
  9. package/esm2015/lib/components/task-creator/task-creator.module.js +4 -3
  10. package/esm2015/lib/enum/icon.enum.js +3 -1
  11. package/esm2015/lib/enum/keyboard-code.enum.js +2 -1
  12. package/esm2015/lib/model/icon-svg.js +3 -1
  13. package/esm2015/lib/service/shared.service.js +2 -2
  14. package/fesm2015/colijnit-sharedcomponents.js +138 -86
  15. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  16. package/lib/components/access/style/_layout.scss +16 -14
  17. package/lib/components/activity-list/style/_layout.scss +1 -1
  18. package/lib/components/activity-list-header/components/period-filter/style/_layout.scss +4 -4
  19. package/lib/components/activity-list-header/style/_layout.scss +1 -1
  20. package/lib/components/activity-overview-component/style/_layout.scss +1 -1
  21. package/lib/components/app-file-dropzone/style/_layout.scss +1 -1
  22. package/lib/components/email-selector/email-selector.component.d.ts +0 -4
  23. package/lib/components/email-selector/style/_layout.scss +34 -1
  24. package/lib/components/file-upload/file-upload.component.d.ts +1 -0
  25. package/lib/components/file-upload/style/_layout.scss +13 -3
  26. package/lib/components/files-upload/style/_layout.scss +35 -2
  27. package/lib/components/modify-task-form/components/activity-summary-block/style/_layout.scss +113 -100
  28. package/lib/components/modify-task-form/components/notification-summary-block/style/_layout.scss +110 -98
  29. package/lib/components/modify-task-form/components/status-summary-block/style/_layout.scss +2 -2
  30. package/lib/components/modify-task-form/components/task-details/style/_layout.scss +6 -6
  31. package/lib/components/modify-task-form/style/_layout.scss +5 -5
  32. package/lib/components/open-activity-list/components/personal-activity-overview/style/_layout.scss +2 -2
  33. package/lib/components/role-email-selector/role-email-selector.component.d.ts +10 -4
  34. package/lib/components/role-email-selector/style/_layout.scss +9 -2
  35. package/lib/components/role-email-selector/style/_material-definition.scss +4 -4
  36. package/lib/components/stock/style/_layout.scss +2 -2
  37. package/lib/components/task-creator/style/_layout.scss +39 -10
  38. package/lib/enum/icon.enum.d.ts +2 -0
  39. package/lib/enum/keyboard-code.enum.d.ts +2 -1
  40. package/lib/service/shared.service.d.ts +1 -2
  41. package/package.json +2 -2
@@ -4,6 +4,7 @@
4
4
  .value {
5
5
  flex-wrap: wrap;
6
6
  }
7
+
7
8
  .notification-email {
8
9
  display: flex;
9
10
  flex-shrink: 0;
@@ -16,9 +17,11 @@
16
17
  height: auto;
17
18
  display: flex;
18
19
  flex-direction: column;
20
+
19
21
  &:not(.no-border) {
20
22
  border: 1px solid $color_border;
21
23
  }
24
+
22
25
  .left-seperator {
23
26
  &:before {
24
27
  content: "|";
@@ -36,126 +39,135 @@
36
39
  height: 100%;
37
40
  }
38
41
 
39
- }
40
-
41
- ::ng-deep image-display {
42
- height: $block_content_height;
43
- width: $block_content_height;
44
- span {
45
- display: none;
46
- }
47
-
48
- .icon-wrapper {
49
- display: flex;
50
- flex-shrink: 0;
51
- align-items: center;
52
- justify-content: center;
53
- background: #F8FBFA;
42
+ .image-display {
54
43
  height: $block_content_height;
55
44
  width: $block_content_height;
56
- border-radius: 50%;
57
- border: 1px solid $color_border;
58
- overflow: hidden;
59
- ::ng-deep icon {
60
- height: 60px !important;
61
- width: 60px !important;
45
+
46
+ span {
47
+ display: none;
48
+ }
49
+
50
+ .icon-wrapper {
51
+ display: flex;
62
52
  flex-shrink: 0;
53
+ align-items: center;
54
+ justify-content: center;
55
+ background: #F8FBFA;
56
+ height: $block_content_height;
57
+ width: $block_content_height;
58
+ border-radius: 50%;
59
+ border: 1px solid $color_border;
60
+ overflow: hidden;
61
+
62
+ .co-icon {
63
+ height: 60px;
64
+ width: 60px;
65
+ flex-shrink: 0;
66
+ }
67
+
68
+ &.small {
69
+ height: 50px;
70
+ width: 50px;
71
+
72
+ .co-icon {
73
+ height: 40px;
74
+ width: 40px;
75
+ }
76
+ }
63
77
  }
64
- &.small {
65
- height: 50px;
66
- width: 50px;
67
- ::ng-deep icon {
68
- height: 40px !important;
69
- width: 40px !important;
78
+
79
+
80
+ .block-wrapper {
81
+ position: relative;
82
+ display: flex;
83
+ align-items: center;
84
+
85
+ .expandable-wrapper {
86
+ position: absolute;
87
+ bottom: 0;
88
+ left: 50%;
89
+ transform: translateX(-50%);
70
90
  }
71
91
  }
72
- }
73
92
 
93
+ .content-wrapper {
94
+ display: flex;
95
+ flex-direction: column;
96
+ justify-content: space-between;
97
+ margin-left: 10px;
98
+ min-height: $block_content_height;
99
+ height: auto;
100
+ width: 100%;
101
+ }
74
102
 
75
- .block-wrapper {
76
- position: relative;
77
- display: flex;
78
- align-items: center;
79
- .expandable-wrapper {
80
- position: absolute;
81
- bottom: 0;
82
- left: 50%;
83
- transform: translateX(-50%);
103
+ .value {
104
+ font-size: 13px;
105
+ font-weight: bold;
106
+ color: $color-dark;
107
+ align-items: center;
84
108
  }
85
- }
86
109
 
87
- .content-wrapper {
88
- display: flex;
89
- flex-direction: column;
90
- justify-content: space-between;
91
- margin-left: 10px;
92
- min-height: $block_content_height;
93
- height: auto;
94
- width: 100%;
95
- }
110
+ .title {
111
+ font-size: 11px;
112
+ line-height: 13px;
113
+ color: $color-label;
114
+ }
96
115
 
97
- .value {
98
- font-size: 13px;
99
- font-weight: bold;
100
- color: $color-dark;
101
- align-items: center;
102
- }
116
+ .activity-summary-block-edit-template {
117
+ display: flex;
118
+ width: 100%;
119
+ flex-direction: column;
120
+ justify-content: space-between;
121
+ z-index: 9000;
122
+ max-height: 100%;
103
123
 
104
- .title {
105
- font-size: 11px;
106
- line-height: 13px;
107
- color: $color-label;
108
- }
124
+ .template-wrapper {
125
+ margin-bottom: 10px;
126
+ }
109
127
 
110
- .activity-summary-block-edit-template {
111
- display: flex;
112
- width: 100%;
113
- flex-direction: column;
114
- justify-content: space-between;
115
- z-index: 9000;
116
- max-height: 100%;
128
+ .co-form {
129
+ co-list-of-values {
130
+ margin-bottom: 5px;
117
131
 
118
- .template-wrapper {
119
- margin-bottom: 10px;
120
- }
121
- ::ng-deep co-form {
122
- co-list-of-values {
123
- margin-bottom: 5px;
124
- &:before {
125
- box-shadow: none;
132
+ &:before {
133
+ box-shadow: none;
134
+ }
126
135
  }
127
136
  }
137
+
138
+ .title-wrapper {
139
+ align-items: center;
140
+ margin-bottom: 10px;
141
+ }
142
+
143
+ h3:not(.no-margin) {
144
+ margin-top: 25px;
145
+ }
128
146
  }
129
- .title-wrapper {
130
- align-items: center;
131
- margin-bottom: 10px;
132
- }
133
- ::ng-deep h3:not(.no-margin) {
134
- margin-top: 25px;
147
+
148
+ .collapseable-wrapper {
149
+ padding: 10px;
150
+ border-bottom: 1px solid $color_border;
135
151
  }
136
- }
137
152
 
138
- .collapseable-wrapper {
139
- padding: 10px;
140
- border-bottom: 1px solid $color_border;
141
- }
153
+ .input-date-window {
154
+ z-index: 9001;
155
+ }
142
156
 
143
- ::ng-deep .input-date-window {
144
- z-index: 9001!important;
145
- }
157
+ .initial {
158
+ position: initial;
159
+ }
146
160
 
147
- .initial {
148
- position: initial !important;
149
- }
161
+ .center {
162
+ justify-content: center;
163
+ }
150
164
 
151
- .center {
152
- justify-content: center;
153
- }
154
- .planning-row {
155
- display: flex;
156
- flex-direction: row;
157
- gap: 5px;
158
- align-items:flex-start;
165
+ .planning-row {
166
+ display: flex;
167
+ flex-direction: row;
168
+ gap: 5px;
169
+ align-items: flex-start;
170
+ }
159
171
  }
160
172
  }
161
173
  }
@@ -9,8 +9,8 @@
9
9
  }
10
10
  }
11
11
 
12
- ::ng-deep #status_summary_block_edit_template {
13
- ::ng-deep arrow-link {
12
+ #status_summary_block_edit_template {
13
+ .arrow-link {
14
14
  height: 25px;
15
15
  }
16
16
  .single-field {
@@ -14,14 +14,14 @@
14
14
  margin-bottom: 15px;
15
15
  }
16
16
 
17
- ::ng-deep .form-input {
17
+ .form-input {
18
18
  width: 100%;
19
19
  }
20
20
  .details-wrapper {
21
21
  display: flex;
22
22
  flex-direction: column;
23
23
  gap: 5px;
24
- ::ng-deep co-input-textarea {
24
+ .co-input-textarea {
25
25
  textarea {
26
26
  min-height: 150px;
27
27
  }
@@ -29,15 +29,15 @@
29
29
  box-shadow: none;
30
30
  }
31
31
  }
32
- ::ng-deep co-input-text {
32
+ .co-input-text {
33
33
  &:before {
34
34
  box-shadow: none;
35
35
  }
36
36
  }
37
37
  }
38
38
 
39
- ::ng-deep arrow-link a {
40
- font-size: 17px !important;
39
+ .arrow-link a {
40
+ font-size: 17px;
41
41
  }
42
42
 
43
43
  .workflow-dropdown-wrapper {
@@ -77,7 +77,7 @@
77
77
  color: #FFFFFF;
78
78
  white-space: nowrap;
79
79
  }
80
- co-icon ::ng-deep {
80
+ .co-icon {
81
81
  width: 10px;
82
82
  height: 10px;
83
83
  svg {
@@ -92,17 +92,17 @@
92
92
  }
93
93
  }
94
94
 
95
- ::ng-deep form-expand-container {
95
+ .form-expand-container {
96
96
  border: 1px solid #DCE4EA;
97
97
  }
98
98
 
99
- ::ng-deep tags {
99
+ .tags {
100
100
  display: block;
101
101
  padding: 30px;
102
102
  min-height: initial;
103
103
  }
104
104
 
105
- ::ng-deep input-notification {
105
+ .input-notification {
106
106
  padding: 15px;
107
107
  width: 100%;
108
108
  }
@@ -127,11 +127,11 @@
127
127
  }
128
128
  }
129
129
 
130
- ::ng-deep #task_modifier_popup {
130
+ #task_modifier_popup {
131
131
  .popup-buttons {
132
132
  align-self: center;
133
133
  }
134
- ::ng-deep .invoice-checkbox {
134
+ .invoice-checkbox {
135
135
  margin: 10px 0;
136
136
  }
137
137
 
@@ -1,5 +1,5 @@
1
1
  @include export-module('co-personal-activity-overview') {
2
- .co-personal-activity-overview{
2
+ .co-personal-activity-overview {
3
3
  user-select: none;
4
4
  display: block;
5
5
  background: rgba(255, 255, 255, 0);
@@ -42,7 +42,7 @@
42
42
  }
43
43
  &.overdue {
44
44
  color: red;
45
- .icon ::ng-deep [fill] {
45
+ .co-icon [fill] {
46
46
  fill: red;
47
47
  }
48
48
  }
@@ -1,14 +1,16 @@
1
- import { EventEmitter, OnInit } from "@angular/core";
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnInit, Renderer2 } from "@angular/core";
2
2
  import { Icon } from "../../enum/icon.enum";
3
3
  import { IconCacheService } from "../../service/icon-cache.service";
4
4
  import { WorkflowCategoryType } from "@colijnit/mainapi/build/enum/workflow-category.enum";
5
5
  import { RoleEmailaddress } from "@colijnit/mainapi/build/model/role-email-address";
6
6
  import { SharedService } from "../../service/shared.service";
7
- export declare class RoleEmailSelectorComponent implements OnInit {
7
+ export declare class RoleEmailSelectorComponent implements OnInit, AfterViewInit {
8
8
  iconService: IconCacheService;
9
9
  sharedService: SharedService;
10
+ private renderer;
10
11
  readonly icons: typeof Icon;
11
12
  recipientLabel: string;
13
+ fieldLabel: string;
12
14
  extraLabel: string;
13
15
  set model(value: string[]);
14
16
  get model(): string[];
@@ -25,14 +27,18 @@ export declare class RoleEmailSelectorComponent implements OnInit {
25
27
  private _model;
26
28
  private _key;
27
29
  private _workflowCategoryType;
30
+ chipsWrapperWidth: number;
28
31
  showClass(): boolean;
29
- constructor(iconService: IconCacheService, sharedService: SharedService);
32
+ chipsWrapper: ElementRef;
33
+ inputText: ElementRef;
34
+ constructor(iconService: IconCacheService, sharedService: SharedService, renderer: Renderer2);
30
35
  ngOnInit(): Promise<void>;
36
+ ngAfterViewInit(): void;
31
37
  fetchRoleEmailAddresses(): Promise<void>;
32
38
  roleChosen(roles: RoleEmailaddress[]): void;
33
39
  handleKeyPressed(event: KeyboardEvent): void;
34
40
  addEmail(): void;
35
41
  updateModel(): void;
36
42
  removeOptionFromModel(email: string): void;
37
- clear(): void;
43
+ private updateChipsWrapperWidth;
38
44
  }
@@ -4,14 +4,18 @@
4
4
  height: 100%;
5
5
  display: flex;
6
6
  flex-direction: row;
7
- row-gap: 0px;
7
+ row-gap: 0;
8
+ justify-content: space-between;
9
+ position: relative;
8
10
  .chips-wrapper {
9
11
  display: flex;
10
12
  flex-wrap: wrap;
11
13
  column-gap: $cc-co-role-email-selector-chips-column-gap;
12
14
  row-gap: $cc-co-role-email-selector-chips-row-gap;
13
15
  padding: $cc-co-role-email-selector-chips-padding;
14
-
16
+ position: absolute;
17
+ left: 10px;
18
+ top: 8px;
15
19
  .chips {
16
20
  font-family: $cc-co-role-email-selector-chip-font-family;
17
21
  font-size: $cc-co-role-email-selector-chip-font-size;
@@ -22,6 +26,9 @@
22
26
  border-radius: $cc-co-role-email-selector-chip-border-radius; // 5px;
23
27
  padding: $cc-co-role-email-selector-chip-padding; // 5px 7px;
24
28
  user-select: none;
29
+ &:last-child {
30
+ margin-right: 20px;
31
+ }
25
32
  }
26
33
  .remove-chip-icon {
27
34
  cursor: pointer;
@@ -1,15 +1,15 @@
1
- $cc-co-role-email-selector-chips-padding: 0 10px 10px 10px !default;
1
+ $cc-co-role-email-selector-chips-padding: 0 !default;
2
2
  $cc-co-role-email-selector-chips-column-gap: 5px !default;
3
3
  $cc-co-role-email-selector-chips-row-gap: 2px !default;
4
4
 
5
5
  $cc-co-role-email-selector-chip-font-family: $cc-font-family !default;
6
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;
7
+ $cc-co-role-email-selector-chip-font-color: #000 !default;
8
8
 
9
- $cc-co-role-email-selector-chip-background-color: $cc-color-active !default;
9
+ $cc-co-role-email-selector-chip-background-color: #f5f5fc !default;
10
10
  $cc-co-role-email-selector-chip-border-radius: 5px !default;
11
11
  $cc-co-role-email-selector-chip-padding: 2px 7px !default;
12
12
 
13
13
 
14
- $cc-co-role-email-selector-chip-delete-icon-color: $cc-color-light !default;
14
+ $cc-co-role-email-selector-chip-delete-icon-color: $cc-color-icons-dark !default;
15
15
  $cc-co-role-email-selector-chip-delete-icon-size: 20px !default;
@@ -164,8 +164,8 @@
164
164
  display: flex;
165
165
  justify-content: flex-end;
166
166
 
167
- co-list-of-values ::ng-deep {
168
- co-input-text {
167
+ .co-list-of-values {
168
+ .co-input-text {
169
169
  height: 100%;
170
170
  }
171
171
  }
@@ -1,13 +1,18 @@
1
1
  @include export-module('co-task-creator-layout') {
2
2
  .co-task-creator{
3
3
  width: 100%;
4
- height: 100%;
5
4
  position: relative;
5
+ display: block;
6
+ .task-creator-wrapper {
7
+ margin-left: 40px;
8
+ box-shadow: 0px 2px 4px 0px #0000001A;
9
+ border-radius: 5px;
10
+ }
6
11
  .top-rows {
7
12
  display: flex;
8
13
  flex-direction: column;
9
14
  width: 100%;
10
- gap: 5px;
15
+ gap: 0;
11
16
  .input-fields {
12
17
  display: flex;
13
18
  flex-direction: row;
@@ -20,16 +25,11 @@
20
25
  flex-direction: column;
21
26
  width: 100%;
22
27
  }
23
-
24
- .co-input-text {
25
- width: 100%;
26
- margin-left: 45px;
27
- }
28
-
29
28
  .co-list-of-icons {
30
29
  position: absolute;
31
30
  display: block;
32
31
  left: 0;
32
+ top: 0;
33
33
  height: fit-content;
34
34
  background: linear-gradient(180deg, rgba(15, 64, 130, 0.04) 3%, rgba(26, 115, 232, 0.04) 90%);
35
35
  box-shadow: 0 4px 4px 0 #0000001A;
@@ -87,14 +87,43 @@
87
87
  }
88
88
  }
89
89
  }
90
+ &.creator-remarks {
91
+ .co-input-text {
92
+ width: 100%;
93
+ margin-left: 0;
94
+ border-bottom: 4px solid #f5f5fc;
95
+ &:before {
96
+ box-shadow: none;
97
+ }
98
+ }
99
+ .co-input-textarea {
100
+ &.large-remark {
101
+ min-height: 130px;
102
+ width: 100%;
103
+ border-bottom: 4px solid #f5f5fc;
104
+ }
105
+ &:before {
106
+ box-shadow: none;
107
+ }
108
+ label {
109
+ top: 10px;
110
+ transform: none;
111
+ }
112
+ textarea {
113
+ margin-top: 0;
114
+ padding-top: 30px;
115
+ min-height: 130px;
116
+ }
117
+ }
118
+ }
90
119
  }
91
120
  }
92
121
  .extras-buttons {
93
122
  display: flex;
94
123
  flex-direction: row;
95
124
  align-items: center;
96
- justify-content: center;
97
- margin-top: 10px;
125
+ justify-content: space-between;
126
+ padding: 10px;
98
127
  gap: 5px;
99
128
  .co-button {
100
129
  background-color: transparent;
@@ -39,6 +39,7 @@ export declare enum Icon {
39
39
  FilePdfRegular = "file_pdf_regular",
40
40
  FilePdfSolid = "file_pdf_solid",
41
41
  FileSignatureRegular = "file_signature_regular",
42
+ FoldersSharpRegular = "folders_sharp_regular",
42
43
  HouseBlankRegular = "house_blank_regular",
43
44
  IoneWorkflow = "ione_workflow",
44
45
  ListUlRegular = "list_ul_regular",
@@ -57,6 +58,7 @@ export declare enum Icon {
57
58
  PrintRegular = "print_regular",
58
59
  PrintSolid = "print_solid",
59
60
  SignatureField = "signature_field",
61
+ SquarePlusRegular = "square_plus_regular",
60
62
  TagRegular = "tag_regular",
61
63
  Task = "task",
62
64
  Trashbin = "trashbin",
@@ -26,5 +26,6 @@ export declare enum KeyboardCode {
26
26
  NumpadDecimal = "NumpadDecimal",
27
27
  NumpadEnter = "NumpadEnter",
28
28
  NumpadSubtract = "NumpadSubtract",
29
- Period = "Period"
29
+ Period = "Period",
30
+ Tab = "Tab"
30
31
  }
@@ -25,7 +25,6 @@ import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
25
25
  import { DictionaryService } from "./dictionary.service";
26
26
  import { ActivityEmailHistory } from "@colijnit/mainapi/build/model/activity-email-history.bo";
27
27
  import { ActivityWorkflow } from "@colijnit/mainapi/build/model/activity-workflow";
28
- import { CoEmailAttachment } from "@colijnit/mainapi/build/model/co-email-attachment.bo";
29
28
  export declare class SharedService {
30
29
  protected readonly locale: LanguageCode;
31
30
  protected options: OptionsService;
@@ -61,7 +60,7 @@ export declare class SharedService {
61
60
  getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
62
61
  getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<string>;
63
62
  getDefaultEmailReportTemplatesForBranch(branchNr: string, reportType: ReportType): Promise<Report[]>;
64
- emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: CoEmailAttachment[], parameters?: object): Promise<boolean>;
63
+ emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<boolean>;
65
64
  private _createEmailJob;
66
65
  insertEmailHistoryForRemark(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
67
66
  insertEmailHistoryForWork(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "255.1.16",
3
+ "version": "255.1.18",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
@@ -10,7 +10,7 @@
10
10
  "@angular/common": ">=12.2.0",
11
11
  "@angular/core": ">=12.2.0",
12
12
  "@colijnit/articleapi": ">=255.1.1",
13
- "@colijnit/mainapi": ">=255.1.5",
13
+ "@colijnit/mainapi": ">=255.1.4",
14
14
  "@colijnit/corecomponents_v12": ">=255.1.8",
15
15
  "@colijnit/ioneconnector": ">=255.1.1",
16
16
  "@colijnit/sharedapi": ">=1.0.20",