@colijnit/sharedcomponents 254.1.4 → 254.1.6
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/3rdpartylicenses.txt +1408 -0
- package/bundles/colijnit-sharedcomponents.umd.js +546 -158
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/activity-list/activity-list.component.js +21 -6
- package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +29 -3
- package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +112 -0
- package/esm2015/lib/components/role-email-selector/role-email-selector.module.js +29 -0
- package/esm2015/lib/components/task-creator/task-creator.component.js +205 -125
- package/esm2015/lib/components/task-creator/task-creator.module.js +6 -3
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/model/icon-svg.js +3 -1
- package/esm2015/lib/service/shared-connector.service.js +46 -1
- package/esm2015/lib/service/shared.service.js +22 -5
- package/esm2015/public-api.js +3 -1
- package/favicon.ico +0 -0
- package/fesm2015/colijnit-sharedcomponents.js +454 -140
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +12 -0
- package/lib/components/activity-list/activity-list.component.d.ts +5 -1
- package/lib/components/activity-list/style/_layout.scss +2 -1
- package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +6 -0
- package/lib/components/activity-overview-component/style/_layout.scss +2 -1
- package/lib/components/role-email-selector/role-email-selector.component.d.ts +29 -0
- package/lib/components/role-email-selector/role-email-selector.module.d.ts +2 -0
- package/lib/components/role-email-selector/style/_layout.scss +40 -0
- package/lib/components/role-email-selector/style/_material-definition.scss +15 -0
- package/lib/components/role-email-selector/style/_theme.scss +4 -0
- package/lib/components/role-email-selector/style/material.scss +4 -0
- package/lib/components/task-creator/style/_layout.scss +22 -0
- package/lib/components/task-creator/task-creator.component.d.ts +33 -16
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/service/shared-connector.service.d.ts +6 -0
- package/lib/service/shared.service.d.ts +6 -1
- package/main.a153b9974c5f3e2988db.js +1 -0
- package/package.json +3 -3
- package/polyfills.907fe9d1887c5de17993.js +1 -0
- package/public-api.d.ts +2 -0
- package/runtime.8aac21847ed3d3829cca.js +1 -0
- package/styles.ba4c8c9a3a37cb1c0c3a.css +1 -0
package/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head>
|
|
2
|
+
<meta charset="utf-8">
|
|
3
|
+
<title>Sharedcomponents</title>
|
|
4
|
+
<base href="/">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
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.ba4c8c9a3a37cb1c0c3a.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.ba4c8c9a3a37cb1c0c3a.css"></noscript></head>
|
|
8
|
+
<body>
|
|
9
|
+
<app-root></app-root>
|
|
10
|
+
<script src="runtime.8aac21847ed3d3829cca.js" defer></script><script src="polyfills.907fe9d1887c5de17993.js" defer></script><script src="main.a153b9974c5f3e2988db.js" defer></script>
|
|
11
|
+
|
|
12
|
+
</body></html>
|
|
@@ -16,11 +16,15 @@ export declare class ActivityListComponent implements OnInit {
|
|
|
16
16
|
readonly ActivityType: typeof ActivityType;
|
|
17
17
|
readonly TimeUtils: typeof TimeUtils;
|
|
18
18
|
showClass(): boolean;
|
|
19
|
-
activities: Activity[];
|
|
19
|
+
set activities(value: Activity[]);
|
|
20
|
+
get activities(): Activity[];
|
|
20
21
|
remarkIcon: Icon;
|
|
21
22
|
workIcon: Icon;
|
|
23
|
+
statusIcon: Icon;
|
|
24
|
+
taskIcon: Icon;
|
|
22
25
|
showActivityPopup: Boolean;
|
|
23
26
|
currentActivityDocuments: CoDocument[];
|
|
27
|
+
private _activities;
|
|
24
28
|
constructor(iconCacheService: IconCacheService, _dictionaryService: DictionaryService);
|
|
25
29
|
ngOnInit(): Promise<void>;
|
|
26
30
|
getRelationKind(author: RelationSmallObject): RelationKind;
|
package/lib/components/activity-overview-component/component-activity-overview.component.d.ts
CHANGED
|
@@ -4,12 +4,18 @@ import { Icon } from "../../enum/icon.enum";
|
|
|
4
4
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
5
|
import { DictionaryService } from "../../service/dictionary.service";
|
|
6
6
|
import { SharedService } from "../../service/shared.service";
|
|
7
|
+
import { Activity } from "@colijnit/mainapi/build/model/activity.bo";
|
|
7
8
|
export declare class ComponentActivityOverviewComponent extends BaseActivityOverviewComponent {
|
|
8
9
|
iconCacheService: IconCacheService;
|
|
9
10
|
dialogService: CoreDialogService;
|
|
10
11
|
dictionaryService: DictionaryService;
|
|
11
12
|
protected sharedService: SharedService;
|
|
12
13
|
readonly Icon: typeof Icon;
|
|
14
|
+
remarkIcon: Icon;
|
|
15
|
+
workIcon: Icon;
|
|
16
|
+
statusIcon: Icon;
|
|
17
|
+
taskIcon: Icon;
|
|
13
18
|
showClass(): boolean;
|
|
14
19
|
constructor(iconCacheService: IconCacheService, dialogService: CoreDialogService, dictionaryService: DictionaryService, sharedService: SharedService);
|
|
20
|
+
getActivityIcon(activity: Activity): Icon;
|
|
15
21
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { RoleEmailaddress } from "@colijnit/mainapi/build/model/role-email-address";
|
|
6
|
+
import { SharedService } from "../../service/shared.service";
|
|
7
|
+
export declare class RoleEmailSelectorComponent implements OnInit {
|
|
8
|
+
iconService: IconCacheService;
|
|
9
|
+
sharedService: SharedService;
|
|
10
|
+
readonly icons: typeof Icon;
|
|
11
|
+
set model(value: string[]);
|
|
12
|
+
get model(): string[];
|
|
13
|
+
set key(value: string);
|
|
14
|
+
get key(): string;
|
|
15
|
+
set workflowCategoryType(value: WorkflowCategoryType);
|
|
16
|
+
get workflowCategoryType(): WorkflowCategoryType;
|
|
17
|
+
readonly modelChange: EventEmitter<any>;
|
|
18
|
+
emailAddressesAvailable: RoleEmailaddress[];
|
|
19
|
+
private _model;
|
|
20
|
+
private _key;
|
|
21
|
+
private _workflowCategoryType;
|
|
22
|
+
showClass(): boolean;
|
|
23
|
+
constructor(iconService: IconCacheService, sharedService: SharedService);
|
|
24
|
+
ngOnInit(): Promise<void>;
|
|
25
|
+
fetchRoleEmailAddresses(): Promise<void>;
|
|
26
|
+
roleChosen(role: RoleEmailaddress): void;
|
|
27
|
+
addEmail(email: string): void;
|
|
28
|
+
removeOptionFromModel(email: string): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@include export-module('co-role-email-selector-layout') {
|
|
2
|
+
.co-role-email-selector {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
row-gap: 2px;
|
|
8
|
+
.chips-wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
column-gap: $cc-co-role-email-selector-chips-column-gap;
|
|
12
|
+
row-gap: $cc-co-role-email-selector-chips-row-gap;
|
|
13
|
+
padding: $cc-co-role-email-selector-chips-padding;
|
|
14
|
+
|
|
15
|
+
.chips {
|
|
16
|
+
font-family: $cc-co-role-email-selector-chip-font-family;
|
|
17
|
+
font-size: $cc-co-role-email-selector-chip-font-size;
|
|
18
|
+
color: $cc-co-role-email-selector-chip-font-color;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
background: $cc-co-role-email-selector-chip-background-color;
|
|
22
|
+
border-radius: $cc-co-role-email-selector-chip-border-radius; // 5px;
|
|
23
|
+
padding: $cc-co-role-email-selector-chip-padding; // 5px 7px;
|
|
24
|
+
user-select: none;
|
|
25
|
+
}
|
|
26
|
+
.remove-chip-icon {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
padding: 5px;
|
|
29
|
+
height: $cc-co-role-email-selector-chip-delete-icon-size;
|
|
30
|
+
width: $cc-co-role-email-selector-chip-delete-icon-size;
|
|
31
|
+
svg { // for fontawesome icons
|
|
32
|
+
fill: $cc-co-role-email-selector-chip-delete-icon-color;
|
|
33
|
+
}
|
|
34
|
+
& [fill] { // for own icons
|
|
35
|
+
fill: $cc-co-role-email-selector-chip-delete-icon-color;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -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;
|
|
@@ -5,14 +5,36 @@
|
|
|
5
5
|
.input-fields {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: row;
|
|
8
|
+
width: 100%;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: 15px;
|
|
8
11
|
.ask-input-fields {
|
|
9
12
|
display: flex;
|
|
10
13
|
flex-direction: column;
|
|
11
14
|
}
|
|
15
|
+
.co-input-text {
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
.co-list-of-icons {
|
|
19
|
+
.icon-item {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
12
24
|
}
|
|
13
25
|
.extras-buttons {
|
|
14
26
|
display: flex;
|
|
15
27
|
flex-direction: row;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
margin-top: 10px;
|
|
31
|
+
gap: 5px;
|
|
32
|
+
.co-button {
|
|
33
|
+
background-color: transparent;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
width: 30px;
|
|
36
|
+
height: 30px;
|
|
37
|
+
}
|
|
16
38
|
}
|
|
17
39
|
}
|
|
18
40
|
}
|
|
@@ -1,53 +1,70 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
2
|
import { Icon } from "../../enum/icon.enum";
|
|
3
3
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
|
+
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
4
5
|
import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
|
|
5
6
|
import { TableName } from "@colijnit/mainapi/build/enum/table-name.enum";
|
|
7
|
+
import { Work } from "@colijnit/mainapi/build/model/work.bo";
|
|
8
|
+
import { Task } from "@colijnit/mainapi/build/model/task.bo";
|
|
6
9
|
import { WorkflowCategoryType } from "@colijnit/mainapi/build/enum/workflow-category.enum";
|
|
7
10
|
import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
8
|
-
import { RoleEmailaddress } from "@colijnit/mainapi/build/model/role-email-address";
|
|
9
11
|
import { activityEmailRequestData } from "@colijnit/mainapi/build/model/activity-email-request-data";
|
|
10
12
|
import { SharedService } from "../../service/shared.service";
|
|
11
|
-
import { FormComponent } from "@colijnit/corecomponents_v12";
|
|
13
|
+
import { CoreDialogService, FormComponent } from "@colijnit/corecomponents_v12";
|
|
14
|
+
import { IconListItem } from "@colijnit/corecomponents_v12/lib/model/icon-list-item";
|
|
15
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
12
16
|
export declare class TaskCreatorComponent implements OnInit {
|
|
13
17
|
iconService: IconCacheService;
|
|
18
|
+
dictionaryService: DictionaryService;
|
|
14
19
|
sharedService: SharedService;
|
|
20
|
+
private _dialogService;
|
|
15
21
|
readonly icons: typeof Icon;
|
|
16
22
|
createForm: FormComponent;
|
|
17
23
|
author: RelationSmallObject;
|
|
18
24
|
branchNo: string;
|
|
19
25
|
table: TableName;
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
remarkAndWorkKey: string;
|
|
27
|
+
taskKey: string;
|
|
22
28
|
workflowCategoryType: WorkflowCategoryType;
|
|
23
29
|
activityCreated: EventEmitter<void>;
|
|
30
|
+
showClass(): boolean;
|
|
31
|
+
optionCollection: IconListItem[];
|
|
24
32
|
showFilesDialog: boolean;
|
|
25
33
|
documents: CoDocument[];
|
|
26
34
|
showEmailDialog: boolean;
|
|
27
|
-
emailAddressesAvailable: RoleEmailaddress[];
|
|
28
35
|
senderAddress: string;
|
|
29
|
-
emailAddresses:
|
|
30
|
-
|
|
36
|
+
emailAddresses: string[];
|
|
37
|
+
bccEmailAddresses: string[];
|
|
31
38
|
emailRequest: activityEmailRequestData;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
createdTask: Task;
|
|
40
|
+
createdRemark: Remark;
|
|
41
|
+
createdWork: Work;
|
|
42
|
+
chosenActivityType: IconListItem;
|
|
35
43
|
remarkText: string;
|
|
36
44
|
workDescription: string;
|
|
37
45
|
taskName: string;
|
|
38
46
|
taskDescription: string;
|
|
39
|
-
constructor(iconService: IconCacheService, sharedService: SharedService);
|
|
47
|
+
constructor(iconService: IconCacheService, dictionaryService: DictionaryService, sharedService: SharedService, _dialogService: CoreDialogService);
|
|
40
48
|
ngOnInit(): Promise<void>;
|
|
41
|
-
|
|
42
|
-
createWorkClicked(): Promise<void>;
|
|
43
|
-
createTaskClicked(): Promise<void>;
|
|
49
|
+
itemSelected(item: IconListItem): void;
|
|
44
50
|
addedDocument(docs: CoDocument[]): Promise<void>;
|
|
45
51
|
deletedDocument(doc: CoDocument): Promise<void>;
|
|
52
|
+
createRemarkClicked(): Promise<void>;
|
|
46
53
|
emailDialogClosed(): void;
|
|
47
|
-
|
|
54
|
+
createWorkClicked(): Promise<void>;
|
|
55
|
+
createTaskClicked(): Promise<void>;
|
|
56
|
+
private createRemark;
|
|
57
|
+
private createWork;
|
|
58
|
+
private createTask;
|
|
59
|
+
private handleAfterCreation;
|
|
48
60
|
private sendEmailIfNeccesary;
|
|
49
61
|
private findReportType;
|
|
50
|
-
private startEmailing;
|
|
51
62
|
private findDefault;
|
|
63
|
+
private startEmailing;
|
|
64
|
+
private registerSentEmails;
|
|
65
|
+
private createEmailAddressString;
|
|
66
|
+
private createEmailSubject;
|
|
67
|
+
private createAttachmentsArray;
|
|
68
|
+
private createEmailParams;
|
|
52
69
|
private clearFields;
|
|
53
70
|
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -26,9 +26,11 @@ export declare enum Icon {
|
|
|
26
26
|
DeleteLeftRegular = "delete_left_regular",
|
|
27
27
|
DeliveryTruck = "delivery_truck",
|
|
28
28
|
DetailView = "detail_view",
|
|
29
|
+
DiagramProjectRegular = "diagram_project_regular",
|
|
29
30
|
Dropzone = "dropzone",
|
|
30
31
|
EditPenRegular = "edit_pen_regular",
|
|
31
32
|
Email = "email",
|
|
33
|
+
EmailRegular = "email_regular",
|
|
32
34
|
Employee = "employee",
|
|
33
35
|
EnvelopeRegular = "envelope_regular",
|
|
34
36
|
EyeRegular = "eye_regular",
|
|
@@ -39,6 +39,9 @@ import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-smal
|
|
|
39
39
|
import { SelectReportTemplatesRequest } from "@colijnit/mainapi/build/model/select-report-templates-request";
|
|
40
40
|
import { Report } from "@colijnit/mainapi/build/model/report.bo";
|
|
41
41
|
import { EmailJob } from "@colijnit/mainapi/build/model/email-job";
|
|
42
|
+
import { Work } from "@colijnit/mainapi/build/model/work.bo";
|
|
43
|
+
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
44
|
+
import { Task } from "@colijnit/mainapi/build/model/task.bo";
|
|
42
45
|
export declare class SharedConnectorService {
|
|
43
46
|
private _optionsService;
|
|
44
47
|
articleConnector: Articles;
|
|
@@ -57,6 +60,9 @@ export declare class SharedConnectorService {
|
|
|
57
60
|
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<Activity[]>;
|
|
58
61
|
getRelationSmallObject(relationId: number): Promise<RelationSmallObject>;
|
|
59
62
|
insertActivity(activity: Activity): Promise<boolean>;
|
|
63
|
+
insertWork(activity: Activity): Promise<Work>;
|
|
64
|
+
insertRemark(activity: Activity): Promise<Remark>;
|
|
65
|
+
insertTask(activity: Activity): Promise<Task>;
|
|
60
66
|
updateActivity(activity: Activity): Promise<boolean>;
|
|
61
67
|
deleteActivity(activity: Activity): Promise<boolean>;
|
|
62
68
|
lockTask(id: number): Promise<boolean>;
|
|
@@ -20,6 +20,8 @@ import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-smal
|
|
|
20
20
|
import { Report } from "@colijnit/mainapi/build/model/report.bo";
|
|
21
21
|
import { ReportType } from "@colijnit/mainapi/build/enum/report-type.enum";
|
|
22
22
|
import { LanguageCode } from "../enum/language-code.enum";
|
|
23
|
+
import { Work } from "@colijnit/mainapi/build/model/work.bo";
|
|
24
|
+
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
23
25
|
export declare class SharedService {
|
|
24
26
|
protected readonly locale: LanguageCode;
|
|
25
27
|
protected options: OptionsService;
|
|
@@ -37,6 +39,9 @@ export declare class SharedService {
|
|
|
37
39
|
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<Activity[]>;
|
|
38
40
|
getRelationSmallObject(relationId: number): Promise<RelationSmallObject>;
|
|
39
41
|
insertActivity(activity: Activity): Promise<boolean>;
|
|
42
|
+
insertWork(activity: Activity): Promise<Work>;
|
|
43
|
+
insertRemark(activity: Activity): Promise<Remark>;
|
|
44
|
+
insertTask(activity: Activity): Promise<Task>;
|
|
40
45
|
updateActivity(activity: Activity): Promise<boolean>;
|
|
41
46
|
deleteActivity(activity: Activity): Promise<boolean>;
|
|
42
47
|
lockTask(id: number): Promise<boolean>;
|
|
@@ -50,7 +55,7 @@ export declare class SharedService {
|
|
|
50
55
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
|
|
51
56
|
getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<string>;
|
|
52
57
|
getDefaultEmailReportTemplatesForBranch(branchNr: string, reportType: ReportType): Promise<Report[]>;
|
|
53
|
-
emailViaTemplate(template: Report, emailTo: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<
|
|
58
|
+
emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<boolean>;
|
|
54
59
|
private _createEmailJob;
|
|
55
60
|
getWorkflowProcessInfoPerStatus(workflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
56
61
|
getActivities(table: TableName, key: string): Promise<Activity[]>;
|