@colijnit/sharedcomponents 254.1.3 → 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/bundles/colijnit-sharedcomponents.umd.js +909 -125
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +45 -45
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +46 -46
- 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 +330 -0
- package/esm2015/lib/components/task-creator/task-creator.module.js +37 -0
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/service/shared-connector.service.js +117 -3
- package/esm2015/lib/service/shared.service.js +69 -4
- package/esm2015/public-api.js +5 -1
- package/fesm2015/colijnit-sharedcomponents.js +662 -9
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +2 -2
- 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 +18 -0
- package/lib/components/task-creator/style/_material-definition.scss +0 -0
- package/lib/components/task-creator/style/_theme.scss +4 -0
- package/lib/components/task-creator/style/material.scss +4 -0
- package/lib/components/task-creator/task-creator.component.d.ts +68 -0
- package/lib/components/task-creator/task-creator.module.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/service/shared-connector.service.d.ts +16 -1
- package/lib/service/shared.service.d.ts +17 -1
- package/main.9761831eb5f539b50eb2.js +1 -0
- package/package.json +3 -3
- package/public-api.d.ts +4 -0
- package/{styles.051675db76590b099897.css → styles.ccda7309f28016f3304b.css} +1 -1
- package/main.b62bfdc80736ecda90e4.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.
|
|
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
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.
|
|
10
|
+
<script src="runtime.8aac21847ed3d3829cca.js" defer></script><script src="polyfills.907fe9d1887c5de17993.js" defer></script><script src="main.9761831eb5f539b50eb2.js" defer></script>
|
|
11
11
|
|
|
12
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@include export-module('co-task-creator-layout') {
|
|
2
|
+
.co-task-creator{
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
.input-fields {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
.ask-input-fields {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.extras-buttons {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../enum/icon.enum";
|
|
3
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
|
+
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
5
|
+
import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
|
|
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";
|
|
9
|
+
import { WorkflowCategoryType } from "@colijnit/mainapi/build/enum/workflow-category.enum";
|
|
10
|
+
import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
11
|
+
import { activityEmailRequestData } from "@colijnit/mainapi/build/model/activity-email-request-data";
|
|
12
|
+
import { SharedService } from "../../service/shared.service";
|
|
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";
|
|
16
|
+
export declare class TaskCreatorComponent implements OnInit {
|
|
17
|
+
iconService: IconCacheService;
|
|
18
|
+
dictionaryService: DictionaryService;
|
|
19
|
+
sharedService: SharedService;
|
|
20
|
+
readonly icons: typeof Icon;
|
|
21
|
+
createForm: FormComponent;
|
|
22
|
+
author: RelationSmallObject;
|
|
23
|
+
branchNo: string;
|
|
24
|
+
table: TableName;
|
|
25
|
+
remarkAndWorkKey: string;
|
|
26
|
+
taskKey: string;
|
|
27
|
+
workflowCategoryType: WorkflowCategoryType;
|
|
28
|
+
activityCreated: EventEmitter<void>;
|
|
29
|
+
showClass(): boolean;
|
|
30
|
+
optionCollection: IconListItem[];
|
|
31
|
+
showFilesDialog: boolean;
|
|
32
|
+
documents: CoDocument[];
|
|
33
|
+
showEmailDialog: boolean;
|
|
34
|
+
senderAddress: string;
|
|
35
|
+
emailAddresses: string[];
|
|
36
|
+
bccEmailAddresses: string[];
|
|
37
|
+
emailRequest: activityEmailRequestData;
|
|
38
|
+
createdTask: Task;
|
|
39
|
+
createdRemark: Remark;
|
|
40
|
+
createdWork: Work;
|
|
41
|
+
chosenActivityType: IconListItem;
|
|
42
|
+
remarkText: string;
|
|
43
|
+
workDescription: string;
|
|
44
|
+
taskName: string;
|
|
45
|
+
taskDescription: string;
|
|
46
|
+
constructor(iconService: IconCacheService, dictionaryService: DictionaryService, sharedService: SharedService);
|
|
47
|
+
ngOnInit(): Promise<void>;
|
|
48
|
+
itemSelected(item: IconListItem): void;
|
|
49
|
+
createRemarkClicked(): Promise<void>;
|
|
50
|
+
createWorkClicked(): Promise<void>;
|
|
51
|
+
createTaskClicked(): Promise<void>;
|
|
52
|
+
addedDocument(docs: CoDocument[]): Promise<void>;
|
|
53
|
+
deletedDocument(doc: CoDocument): Promise<void>;
|
|
54
|
+
emailDialogClosed(): void;
|
|
55
|
+
private createRemark;
|
|
56
|
+
private createWork;
|
|
57
|
+
private createTask;
|
|
58
|
+
private handleAfterCreation;
|
|
59
|
+
private clearFields;
|
|
60
|
+
private sendEmailIfNeccesary;
|
|
61
|
+
private startEmailing;
|
|
62
|
+
private findReportType;
|
|
63
|
+
private findDefault;
|
|
64
|
+
private createEmailParams;
|
|
65
|
+
private createEmailSubject;
|
|
66
|
+
private createEmailAddressString;
|
|
67
|
+
private createAttachmentsStringArray;
|
|
68
|
+
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare enum Icon {
|
|
|
44
44
|
MessageSmsSolid = "message_sms_solid",
|
|
45
45
|
Notification = "notification",
|
|
46
46
|
PaperclipRegular = "paperclip_regular",
|
|
47
|
+
PaperPlaneTopSolid = "paper_plane_top_solid",
|
|
47
48
|
Pdf = "pdf",
|
|
48
49
|
PersonDiggingRegular = "person_digging_regular",
|
|
49
50
|
PinRoundOpen = "pin_round_open",
|
|
@@ -35,6 +35,13 @@ import { RoleEmailaddress } from "@colijnit/mainapi/build/model/role-email-addre
|
|
|
35
35
|
import { Activity } from "@colijnit/mainapi/build/model/activity.bo";
|
|
36
36
|
import { ValidationResult } from "@colijnit/ioneconnector/build/model/validation-result";
|
|
37
37
|
import { WorkflowProcessInfoPerStatus } from "@colijnit/mainapi/build/model/workflow-process-info-per-status";
|
|
38
|
+
import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
|
|
39
|
+
import { SelectReportTemplatesRequest } from "@colijnit/mainapi/build/model/select-report-templates-request";
|
|
40
|
+
import { Report } from "@colijnit/mainapi/build/model/report.bo";
|
|
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";
|
|
38
45
|
export declare class SharedConnectorService {
|
|
39
46
|
private _optionsService;
|
|
40
47
|
articleConnector: Articles;
|
|
@@ -51,6 +58,11 @@ export declare class SharedConnectorService {
|
|
|
51
58
|
getScreenConfigSubRubric(parentRubricId: number, configId: number, fixedKey: string): Promise<any>;
|
|
52
59
|
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<TagTreeItem[]>;
|
|
53
60
|
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<Activity[]>;
|
|
61
|
+
getRelationSmallObject(relationId: number): Promise<RelationSmallObject>;
|
|
62
|
+
insertActivity(activity: Activity): Promise<boolean>;
|
|
63
|
+
insertWork(activity: Activity): Promise<Work>;
|
|
64
|
+
insertRemark(activity: Activity): Promise<Remark>;
|
|
65
|
+
insertTask(activity: Activity): Promise<Task>;
|
|
54
66
|
updateActivity(activity: Activity): Promise<boolean>;
|
|
55
67
|
deleteActivity(activity: Activity): Promise<boolean>;
|
|
56
68
|
lockTask(id: number): Promise<boolean>;
|
|
@@ -75,7 +87,10 @@ export declare class SharedConnectorService {
|
|
|
75
87
|
getTaskCategories(): Promise<TaskCategory[]>;
|
|
76
88
|
getActiveProcessesByTableAndKey(table: TableName, key: string): Promise<WorkflowProcess[]>;
|
|
77
89
|
getDomainCollection(languageCode: string, domain: DomainName): Promise<CoDomainValue[]>;
|
|
78
|
-
getRoleEmailAddressesByWorkflowCategoryAndKey(
|
|
90
|
+
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
|
|
91
|
+
getEmailSenderByWorkflowCategoryAndKey(worlflowCategory: string, key: string): Promise<string>;
|
|
92
|
+
getReportTemplates(reportTemplatesRequest: SelectReportTemplatesRequest): Promise<Report[]>;
|
|
93
|
+
emailReport(emailJob: EmailJob): Promise<boolean>;
|
|
79
94
|
getWorkflowProcessInfoPerStatus(worlflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
80
95
|
getHistoricActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
81
96
|
getComponentActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
@@ -16,10 +16,17 @@ import { Activity } from "@colijnit/mainapi/build/model/activity.bo";
|
|
|
16
16
|
import { ValidationResult } from "@colijnit/ioneconnector/build/model/validation-result";
|
|
17
17
|
import { Task } from "@colijnit/mainapi/build/model/task.bo";
|
|
18
18
|
import { WorkflowProcessInfoPerStatus } from "@colijnit/mainapi/build/model/workflow-process-info-per-status";
|
|
19
|
+
import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
|
|
20
|
+
import { Report } from "@colijnit/mainapi/build/model/report.bo";
|
|
21
|
+
import { ReportType } from "@colijnit/mainapi/build/enum/report-type.enum";
|
|
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";
|
|
19
25
|
export declare class SharedService {
|
|
26
|
+
protected readonly locale: LanguageCode;
|
|
20
27
|
protected options: OptionsService;
|
|
21
28
|
protected connector: SharedConnectorService;
|
|
22
|
-
constructor(options: OptionsService, connector: SharedConnectorService);
|
|
29
|
+
constructor(locale: LanguageCode, options: OptionsService, connector: SharedConnectorService);
|
|
23
30
|
init(options: any): Promise<void>;
|
|
24
31
|
connect(): Promise<void>;
|
|
25
32
|
getAllPrinters(): Promise<Printer[]>;
|
|
@@ -30,6 +37,11 @@ export declare class SharedService {
|
|
|
30
37
|
getJoinedTags(table: string, key: string): Promise<TagTreeItem[]>;
|
|
31
38
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
32
39
|
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<Activity[]>;
|
|
40
|
+
getRelationSmallObject(relationId: number): Promise<RelationSmallObject>;
|
|
41
|
+
insertActivity(activity: Activity): Promise<boolean>;
|
|
42
|
+
insertWork(activity: Activity): Promise<Work>;
|
|
43
|
+
insertRemark(activity: Activity): Promise<Remark>;
|
|
44
|
+
insertTask(activity: Activity): Promise<Task>;
|
|
33
45
|
updateActivity(activity: Activity): Promise<boolean>;
|
|
34
46
|
deleteActivity(activity: Activity): Promise<boolean>;
|
|
35
47
|
lockTask(id: number): Promise<boolean>;
|
|
@@ -41,6 +53,10 @@ export declare class SharedService {
|
|
|
41
53
|
getActiveProcessesByTableAndKey(table: TableName, key: string): Promise<WorkflowProcess[]>;
|
|
42
54
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<CoDomainValue[]>;
|
|
43
55
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
|
|
56
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<string>;
|
|
57
|
+
getDefaultEmailReportTemplatesForBranch(branchNr: string, reportType: ReportType): Promise<Report[]>;
|
|
58
|
+
emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<any>;
|
|
59
|
+
private _createEmailJob;
|
|
44
60
|
getWorkflowProcessInfoPerStatus(workflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
45
61
|
getActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
46
62
|
}
|