@colijnit/sharedcomponents 255.1.14 → 255.1.16

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 (38) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +230 -80
  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 +4 -3
  7. package/esm2015/lib/components/email-selector/email-selector.component.js +112 -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/role-email-selector/role-email-selector.component.js +49 -26
  12. package/esm2015/lib/components/task-creator/task-creator.component.js +15 -64
  13. package/esm2015/lib/components/task-creator/task-creator.module.js +4 -2
  14. package/esm2015/lib/enum/icon.enum.js +3 -1
  15. package/esm2015/lib/model/icon-svg.js +3 -1
  16. package/esm2015/lib/service/shared.service.js +2 -2
  17. package/fesm2015/colijnit-sharedcomponents.js +204 -99
  18. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  19. package/lib/components/email-selector/email-selector.component.d.ts +37 -0
  20. package/lib/components/email-selector/email-selector.module.d.ts +2 -0
  21. package/lib/components/email-selector/style/_layout.scss +15 -0
  22. package/lib/components/email-selector/style/_material-definition.scss +15 -0
  23. package/lib/components/email-selector/style/_theme.scss +4 -0
  24. package/lib/components/email-selector/style/material.scss +4 -0
  25. package/lib/components/role-email-selector/role-email-selector.component.d.ts +10 -3
  26. package/lib/components/role-email-selector/style/_layout.scss +2 -2
  27. package/lib/components/task-creator/style/_layout.scss +73 -55
  28. package/lib/components/task-creator/task-creator.component.d.ts +0 -5
  29. package/lib/enum/icon.enum.d.ts +2 -0
  30. package/lib/service/shared.service.d.ts +2 -1
  31. package/package.json +3 -3
  32. package/3rdpartylicenses.txt +0 -1405
  33. package/favicon.ico +0 -0
  34. package/index.html +0 -12
  35. package/main.f010af331eeb875858fe.js +0 -1
  36. package/polyfills.907fe9d1887c5de17993.js +0 -1
  37. package/runtime.8aac21847ed3d3829cca.js +0 -1
  38. package/styles.eab53d84c672390d990a.css +0 -1
@@ -0,0 +1,37 @@
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
+ import { RoleEmailSelectorComponent } from "../role-email-selector/role-email-selector.component";
8
+ export declare class EmailSelectorComponent implements OnInit {
9
+ iconService: IconCacheService;
10
+ sharedService: SharedService;
11
+ readonly icons: typeof Icon;
12
+ email: RoleEmailSelectorComponent;
13
+ bccEmail: RoleEmailSelectorComponent;
14
+ set key(value: string);
15
+ get key(): string;
16
+ set workflowCategoryType(value: WorkflowCategoryType);
17
+ get workflowCategoryType(): WorkflowCategoryType;
18
+ set emailAddresses(value: string[]);
19
+ get emailAddresses(): string[];
20
+ set bccEmailAddresses(value: string[]);
21
+ get bccEmailAddresses(): string[];
22
+ showBCC: boolean;
23
+ buttonIcon: SafeHtml;
24
+ readonly emailAddressesChange: EventEmitter<any>;
25
+ readonly bccEmailAddressesChange: EventEmitter<any>;
26
+ private _key;
27
+ private _workflowCategoryType;
28
+ private _emailAddresses;
29
+ private _bccEmailAddresses;
30
+ showClass(): boolean;
31
+ constructor(iconService: IconCacheService, sharedService: SharedService);
32
+ ngOnInit(): Promise<void>;
33
+ toggleBCC(): void;
34
+ handleEmailAddressesChanged(): void;
35
+ handleBccEmailAddressesChanged(): void;
36
+ clear(): void;
37
+ }
@@ -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,10 @@ 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;
37
+ clear(): void;
31
38
  }
@@ -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",
@@ -25,6 +25,7 @@ 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";
28
29
  export declare class SharedService {
29
30
  protected readonly locale: LanguageCode;
30
31
  protected options: OptionsService;
@@ -60,7 +61,7 @@ export declare class SharedService {
60
61
  getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
61
62
  getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<string>;
62
63
  getDefaultEmailReportTemplatesForBranch(branchNr: string, reportType: ReportType): Promise<Report[]>;
63
- emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<boolean>;
64
+ emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: CoEmailAttachment[], parameters?: object): Promise<boolean>;
64
65
  private _createEmailJob;
65
66
  insertEmailHistoryForRemark(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
66
67
  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.14",
3
+ "version": "255.1.16",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
@@ -10,8 +10,8 @@
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.4",
14
- "@colijnit/corecomponents_v12": ">=255.1.5",
13
+ "@colijnit/mainapi": ">=255.1.5",
14
+ "@colijnit/corecomponents_v12": ">=255.1.8",
15
15
  "@colijnit/ioneconnector": ">=255.1.1",
16
16
  "@colijnit/sharedapi": ">=1.0.20",
17
17
  "@colijnit/relationapi": ">=1.0.14",