@colijnit/sharedcomponents 254.1.4 → 254.1.5
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 +440 -126
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- 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 +166 -111
- package/esm2015/lib/components/task-creator/task-creator.module.js +6 -3
- package/esm2015/lib/service/shared-connector.service.js +46 -1
- package/esm2015/lib/service/shared.service.js +21 -4
- package/esm2015/public-api.js +3 -1
- package/favicon.ico +0 -0
- package/fesm2015/colijnit-sharedcomponents.js +363 -118
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +12 -0
- 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/task-creator.component.d.ts +28 -13
- package/lib/service/shared-connector.service.d.ts +6 -0
- package/lib/service/shared.service.d.ts +6 -1
- package/main.9761831eb5f539b50eb2.js +1 -0
- package/package.json +2 -2
- package/polyfills.907fe9d1887c5de17993.js +1 -0
- package/public-api.d.ts +2 -0
- package/runtime.8aac21847ed3d3829cca.js +1 -0
- package/styles.ccda7309f28016f3304b.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.ccda7309f28016f3304b.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.ccda7309f28016f3304b.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.9761831eb5f539b50eb2.js" defer></script>
|
|
11
|
+
|
|
12
|
+
</body></html>
|
|
@@ -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;
|
|
@@ -1,53 +1,68 @@
|
|
|
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
13
|
import { 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;
|
|
15
20
|
readonly icons: typeof Icon;
|
|
16
21
|
createForm: FormComponent;
|
|
17
22
|
author: RelationSmallObject;
|
|
18
23
|
branchNo: string;
|
|
19
24
|
table: TableName;
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
remarkAndWorkKey: string;
|
|
26
|
+
taskKey: string;
|
|
22
27
|
workflowCategoryType: WorkflowCategoryType;
|
|
23
28
|
activityCreated: EventEmitter<void>;
|
|
29
|
+
showClass(): boolean;
|
|
30
|
+
optionCollection: IconListItem[];
|
|
24
31
|
showFilesDialog: boolean;
|
|
25
32
|
documents: CoDocument[];
|
|
26
33
|
showEmailDialog: boolean;
|
|
27
|
-
emailAddressesAvailable: RoleEmailaddress[];
|
|
28
34
|
senderAddress: string;
|
|
29
|
-
emailAddresses:
|
|
30
|
-
|
|
35
|
+
emailAddresses: string[];
|
|
36
|
+
bccEmailAddresses: string[];
|
|
31
37
|
emailRequest: activityEmailRequestData;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
createdTask: Task;
|
|
39
|
+
createdRemark: Remark;
|
|
40
|
+
createdWork: Work;
|
|
41
|
+
chosenActivityType: IconListItem;
|
|
35
42
|
remarkText: string;
|
|
36
43
|
workDescription: string;
|
|
37
44
|
taskName: string;
|
|
38
45
|
taskDescription: string;
|
|
39
|
-
constructor(iconService: IconCacheService, sharedService: SharedService);
|
|
46
|
+
constructor(iconService: IconCacheService, dictionaryService: DictionaryService, sharedService: SharedService);
|
|
40
47
|
ngOnInit(): Promise<void>;
|
|
48
|
+
itemSelected(item: IconListItem): void;
|
|
41
49
|
createRemarkClicked(): Promise<void>;
|
|
42
50
|
createWorkClicked(): Promise<void>;
|
|
43
51
|
createTaskClicked(): Promise<void>;
|
|
44
52
|
addedDocument(docs: CoDocument[]): Promise<void>;
|
|
45
53
|
deletedDocument(doc: CoDocument): Promise<void>;
|
|
46
54
|
emailDialogClosed(): void;
|
|
47
|
-
|
|
55
|
+
private createRemark;
|
|
56
|
+
private createWork;
|
|
57
|
+
private createTask;
|
|
58
|
+
private handleAfterCreation;
|
|
59
|
+
private clearFields;
|
|
48
60
|
private sendEmailIfNeccesary;
|
|
49
|
-
private findReportType;
|
|
50
61
|
private startEmailing;
|
|
62
|
+
private findReportType;
|
|
51
63
|
private findDefault;
|
|
52
|
-
private
|
|
64
|
+
private createEmailParams;
|
|
65
|
+
private createEmailSubject;
|
|
66
|
+
private createEmailAddressString;
|
|
67
|
+
private createAttachmentsStringArray;
|
|
53
68
|
}
|
|
@@ -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<any>;
|
|
58
|
+
emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<any>;
|
|
54
59
|
private _createEmailJob;
|
|
55
60
|
getWorkflowProcessInfoPerStatus(workflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
56
61
|
getActivities(table: TableName, key: string): Promise<Activity[]>;
|