@colijnit/sharedcomponents 254.1.3 → 254.1.4
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 +595 -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/task-creator/task-creator.component.js +275 -0
- package/esm2015/lib/components/task-creator/task-creator.module.js +34 -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 +72 -3
- package/esm2015/lib/service/shared.service.js +52 -4
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +416 -8
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- 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 +53 -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 +10 -1
- package/lib/service/shared.service.d.ts +12 -1
- package/package.json +3 -3
- package/public-api.d.ts +2 -0
- package/3rdpartylicenses.txt +0 -1408
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.b62bfdc80736ecda90e4.js +0 -1
- package/polyfills.907fe9d1887c5de17993.js +0 -1
- package/runtime.8aac21847ed3d3829cca.js +0 -1
- package/styles.051675db76590b099897.css +0 -1
|
@@ -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,53 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../enum/icon.enum";
|
|
3
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
|
+
import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
|
|
5
|
+
import { TableName } from "@colijnit/mainapi/build/enum/table-name.enum";
|
|
6
|
+
import { WorkflowCategoryType } from "@colijnit/mainapi/build/enum/workflow-category.enum";
|
|
7
|
+
import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
8
|
+
import { RoleEmailaddress } from "@colijnit/mainapi/build/model/role-email-address";
|
|
9
|
+
import { activityEmailRequestData } from "@colijnit/mainapi/build/model/activity-email-request-data";
|
|
10
|
+
import { SharedService } from "../../service/shared.service";
|
|
11
|
+
import { FormComponent } from "@colijnit/corecomponents_v12";
|
|
12
|
+
export declare class TaskCreatorComponent implements OnInit {
|
|
13
|
+
iconService: IconCacheService;
|
|
14
|
+
sharedService: SharedService;
|
|
15
|
+
readonly icons: typeof Icon;
|
|
16
|
+
createForm: FormComponent;
|
|
17
|
+
author: RelationSmallObject;
|
|
18
|
+
branchNo: string;
|
|
19
|
+
table: TableName;
|
|
20
|
+
RemarkAndWorkKey: string;
|
|
21
|
+
TaskKey: string;
|
|
22
|
+
workflowCategoryType: WorkflowCategoryType;
|
|
23
|
+
activityCreated: EventEmitter<void>;
|
|
24
|
+
showFilesDialog: boolean;
|
|
25
|
+
documents: CoDocument[];
|
|
26
|
+
showEmailDialog: boolean;
|
|
27
|
+
emailAddressesAvailable: RoleEmailaddress[];
|
|
28
|
+
senderAddress: string;
|
|
29
|
+
emailAddresses: RoleEmailaddress[];
|
|
30
|
+
ccEmailAddresses: RoleEmailaddress[];
|
|
31
|
+
emailRequest: activityEmailRequestData;
|
|
32
|
+
showClass(): boolean;
|
|
33
|
+
optionCollection: object[];
|
|
34
|
+
chosenActivityType: object;
|
|
35
|
+
remarkText: string;
|
|
36
|
+
workDescription: string;
|
|
37
|
+
taskName: string;
|
|
38
|
+
taskDescription: string;
|
|
39
|
+
constructor(iconService: IconCacheService, sharedService: SharedService);
|
|
40
|
+
ngOnInit(): Promise<void>;
|
|
41
|
+
createRemarkClicked(): Promise<void>;
|
|
42
|
+
createWorkClicked(): Promise<void>;
|
|
43
|
+
createTaskClicked(): Promise<void>;
|
|
44
|
+
addedDocument(docs: CoDocument[]): Promise<void>;
|
|
45
|
+
deletedDocument(doc: CoDocument): Promise<void>;
|
|
46
|
+
emailDialogClosed(): void;
|
|
47
|
+
createAddressList(addresses: RoleEmailaddress[]): string[];
|
|
48
|
+
private sendEmailIfNeccesary;
|
|
49
|
+
private findReportType;
|
|
50
|
+
private startEmailing;
|
|
51
|
+
private findDefault;
|
|
52
|
+
private clearFields;
|
|
53
|
+
}
|
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,10 @@ 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";
|
|
38
42
|
export declare class SharedConnectorService {
|
|
39
43
|
private _optionsService;
|
|
40
44
|
articleConnector: Articles;
|
|
@@ -51,6 +55,8 @@ export declare class SharedConnectorService {
|
|
|
51
55
|
getScreenConfigSubRubric(parentRubricId: number, configId: number, fixedKey: string): Promise<any>;
|
|
52
56
|
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<TagTreeItem[]>;
|
|
53
57
|
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<Activity[]>;
|
|
58
|
+
getRelationSmallObject(relationId: number): Promise<RelationSmallObject>;
|
|
59
|
+
insertActivity(activity: Activity): Promise<boolean>;
|
|
54
60
|
updateActivity(activity: Activity): Promise<boolean>;
|
|
55
61
|
deleteActivity(activity: Activity): Promise<boolean>;
|
|
56
62
|
lockTask(id: number): Promise<boolean>;
|
|
@@ -75,7 +81,10 @@ export declare class SharedConnectorService {
|
|
|
75
81
|
getTaskCategories(): Promise<TaskCategory[]>;
|
|
76
82
|
getActiveProcessesByTableAndKey(table: TableName, key: string): Promise<WorkflowProcess[]>;
|
|
77
83
|
getDomainCollection(languageCode: string, domain: DomainName): Promise<CoDomainValue[]>;
|
|
78
|
-
getRoleEmailAddressesByWorkflowCategoryAndKey(
|
|
84
|
+
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
|
|
85
|
+
getEmailSenderByWorkflowCategoryAndKey(worlflowCategory: string, key: string): Promise<string>;
|
|
86
|
+
getReportTemplates(reportTemplatesRequest: SelectReportTemplatesRequest): Promise<Report[]>;
|
|
87
|
+
emailReport(emailJob: EmailJob): Promise<boolean>;
|
|
79
88
|
getWorkflowProcessInfoPerStatus(worlflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
80
89
|
getHistoricActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
81
90
|
getComponentActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
@@ -16,10 +16,15 @@ 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";
|
|
19
23
|
export declare class SharedService {
|
|
24
|
+
protected readonly locale: LanguageCode;
|
|
20
25
|
protected options: OptionsService;
|
|
21
26
|
protected connector: SharedConnectorService;
|
|
22
|
-
constructor(options: OptionsService, connector: SharedConnectorService);
|
|
27
|
+
constructor(locale: LanguageCode, options: OptionsService, connector: SharedConnectorService);
|
|
23
28
|
init(options: any): Promise<void>;
|
|
24
29
|
connect(): Promise<void>;
|
|
25
30
|
getAllPrinters(): Promise<Printer[]>;
|
|
@@ -30,6 +35,8 @@ export declare class SharedService {
|
|
|
30
35
|
getJoinedTags(table: string, key: string): Promise<TagTreeItem[]>;
|
|
31
36
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
32
37
|
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<Activity[]>;
|
|
38
|
+
getRelationSmallObject(relationId: number): Promise<RelationSmallObject>;
|
|
39
|
+
insertActivity(activity: Activity): Promise<boolean>;
|
|
33
40
|
updateActivity(activity: Activity): Promise<boolean>;
|
|
34
41
|
deleteActivity(activity: Activity): Promise<boolean>;
|
|
35
42
|
lockTask(id: number): Promise<boolean>;
|
|
@@ -41,6 +48,10 @@ export declare class SharedService {
|
|
|
41
48
|
getActiveProcessesByTableAndKey(table: TableName, key: string): Promise<WorkflowProcess[]>;
|
|
42
49
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<CoDomainValue[]>;
|
|
43
50
|
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<RoleEmailaddress[]>;
|
|
51
|
+
getEmailSenderByWorkflowCategoryAndKey(workflowCategory: string, key: string): Promise<string>;
|
|
52
|
+
getDefaultEmailReportTemplatesForBranch(branchNr: string, reportType: ReportType): Promise<Report[]>;
|
|
53
|
+
emailViaTemplate(template: Report, emailTo: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<any>;
|
|
54
|
+
private _createEmailJob;
|
|
44
55
|
getWorkflowProcessInfoPerStatus(workflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
45
56
|
getActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
46
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/sharedcomponents",
|
|
3
|
-
"version": "254.1.
|
|
3
|
+
"version": "254.1.4",
|
|
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": ">=254.1.1",
|
|
13
|
-
"@colijnit/mainapi": ">=254.1.
|
|
14
|
-
"@colijnit/corecomponents_v12": ">=254.1.
|
|
13
|
+
"@colijnit/mainapi": ">=254.1.3",
|
|
14
|
+
"@colijnit/corecomponents_v12": ">=254.1.5",
|
|
15
15
|
"@colijnit/ioneconnector": ">=254.1.1",
|
|
16
16
|
"@colijnit/sharedapi": ">=1.0.20",
|
|
17
17
|
"@colijnit/relationapi": ">=1.0.14",
|
package/public-api.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export * from './lib/components/open-activity-list/component-activity-list.compo
|
|
|
27
27
|
export * from './lib/components/open-activity-list/component-activity-list.module';
|
|
28
28
|
export * from './lib/components/workflow-info-tiles/workflow-info-tiles.component';
|
|
29
29
|
export * from './lib/components/workflow-info-tiles/workflow-info-tiles.module';
|
|
30
|
+
export * from './lib/components/task-creator/task-creator.component';
|
|
31
|
+
export * from './lib/components/task-creator/task-creator.module';
|
|
30
32
|
export * from './lib/service/shared.service';
|
|
31
33
|
export * from './lib/enum/calendar-view.enum';
|
|
32
34
|
export * from './lib/model/agenda-event-per-day.model';
|