@colijnit/sharedcomponents 255.1.1 → 255.1.3
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 +373 -179
- 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 +10 -1
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +2 -2
- package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +39 -3
- package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.js +4 -2
- package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +7 -3
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +13 -4
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +21 -14
- package/esm2015/lib/components/stock/stock.module.js +4 -3
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +18 -8
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +3 -2
- package/esm2015/lib/components/tab-bar/tab.interface.js +1 -1
- package/esm2015/lib/components/task-creator/task-creator.component.js +29 -5
- package/esm2015/lib/enum/shared-cfg-name.enum.js +19 -0
- package/esm2015/lib/service/shared-connector.service.js +43 -1
- package/esm2015/lib/service/shared.service.js +23 -4
- package/fesm2015/colijnit-sharedcomponents.js +340 -166
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/activity-list/activity-list.component.d.ts +1 -0
- package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +6 -1
- package/lib/components/role-email-selector/role-email-selector.component.d.ts +2 -0
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +2 -0
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +3 -1
- package/lib/components/tab-bar/tab.interface.d.ts +2 -0
- package/lib/enum/shared-cfg-name.enum.d.ts +14 -0
- package/lib/service/shared-connector.service.d.ts +4 -0
- package/lib/service/shared.service.d.ts +7 -1
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ export declare class ActivityListComponent implements OnInit {
|
|
|
32
32
|
getActivityIcon(activity: Activity): Icon;
|
|
33
33
|
showTriggers(activity: Activity): boolean;
|
|
34
34
|
showAttachments(activity: Activity): boolean;
|
|
35
|
+
showEmailHistory(activity: Activity): boolean;
|
|
35
36
|
showWorkedTime(activity: Activity): boolean;
|
|
36
37
|
getWorkedTime(activity: Activity): number;
|
|
37
38
|
openActivityPopup(activity: Activity): void;
|
|
@@ -7,17 +7,22 @@ import { BusinessObjectFactory } from "@colijnit/ioneconnector/build/service/bus
|
|
|
7
7
|
import { DictionaryService } from "../../../../service/dictionary.service";
|
|
8
8
|
import { RoleEmailaddress } from "@colijnit/mainapi/build/model/role-email-address";
|
|
9
9
|
import { SharedService } from "../../../../service/shared.service";
|
|
10
|
+
import { WorkflowCategoryType } from "@colijnit/mainapi/build/enum/workflow-category.enum";
|
|
10
11
|
export declare class NotificationSummaryBlockComponent extends BaseActivitySummaryComponent implements OnInit {
|
|
11
12
|
protected boFactory: BusinessObjectFactory;
|
|
12
13
|
protected dictionaryService: DictionaryService;
|
|
13
14
|
protected dialogService: CoreDialogService;
|
|
14
15
|
protected sharedService: SharedService;
|
|
15
16
|
readonly Icon: typeof Icon;
|
|
17
|
+
readonly WorkflowCategoryType: typeof WorkflowCategoryType;
|
|
16
18
|
summaryBlock: ActivitySummaryBlockComponent;
|
|
17
19
|
showClass(): boolean;
|
|
18
20
|
listItems: RoleEmailaddress[];
|
|
19
21
|
emailAddresses: string[];
|
|
20
22
|
constructor(boFactory: BusinessObjectFactory, dictionaryService: DictionaryService, dialogService: CoreDialogService, sharedService: SharedService);
|
|
21
23
|
ngOnInit(): Promise<void>;
|
|
22
|
-
handleSendEmail(event: MouseEvent): void
|
|
24
|
+
handleSendEmail(event: MouseEvent): Promise<void>;
|
|
25
|
+
private createEmailAddressString;
|
|
26
|
+
private createEmailSubject;
|
|
27
|
+
private findDefault;
|
|
23
28
|
}
|
|
@@ -8,6 +8,8 @@ export declare class RoleEmailSelectorComponent implements OnInit {
|
|
|
8
8
|
iconService: IconCacheService;
|
|
9
9
|
sharedService: SharedService;
|
|
10
10
|
readonly icons: typeof Icon;
|
|
11
|
+
recipientLabel: string;
|
|
12
|
+
extraLabel: string;
|
|
11
13
|
set model(value: string[]);
|
|
12
14
|
get model(): string[];
|
|
13
15
|
set key(value: string);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
3
|
+
import { SharedCfgName } from "../../../../enum/shared-cfg-name.enum";
|
|
3
4
|
export declare class StockTabComponent {
|
|
5
|
+
readonly sharedCfgName: typeof SharedCfgName;
|
|
4
6
|
articleStockInformation: ArticleStockBo[];
|
|
5
7
|
locationClicked: EventEmitter<string>;
|
|
6
8
|
onLocationClick(data: ArticleStockBo): void;
|
|
@@ -14,10 +14,12 @@ import { LocalizeService } from '../../../localization/localize.service';
|
|
|
14
14
|
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
15
15
|
import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
|
|
16
16
|
import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
|
|
17
|
+
import { BaseModuleScreenConfigService } from "@colijnit/corecomponents_v12";
|
|
17
18
|
export declare class StockTabsComponent implements OnInit {
|
|
18
19
|
private _stockService;
|
|
19
20
|
private _localizeService;
|
|
20
21
|
private _changeDetector;
|
|
22
|
+
private _screenConfigService;
|
|
21
23
|
readonly icons: typeof Icon;
|
|
22
24
|
stockInformation: ArticleStockBo[];
|
|
23
25
|
article: ArticleExtended;
|
|
@@ -42,7 +44,7 @@ export declare class StockTabsComponent implements OnInit {
|
|
|
42
44
|
articleDetails: ArticleDetailsBo[];
|
|
43
45
|
tabs: Tab[];
|
|
44
46
|
historyTabs: Tab[];
|
|
45
|
-
constructor(_stockService: StockService, _localizeService: LocalizeService, _changeDetector: ChangeDetectorRef);
|
|
47
|
+
constructor(_stockService: StockService, _localizeService: LocalizeService, _changeDetector: ChangeDetectorRef, _screenConfigService: BaseModuleScreenConfigService);
|
|
46
48
|
ngOnInit(): void;
|
|
47
49
|
onShowStockTransferChange(show: boolean): void;
|
|
48
50
|
handleLocationClicked(data: string): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum SharedCfgName {
|
|
2
|
+
Overview = "overview",
|
|
3
|
+
OverviewDetails = "overviewDetails",
|
|
4
|
+
StockForecast = "stockForecast",
|
|
5
|
+
InventoryForecast = "inventoryForecast",
|
|
6
|
+
InventoryDetails = "inventoryDetails",
|
|
7
|
+
InOrder = "inOrder",
|
|
8
|
+
History = "history",
|
|
9
|
+
HistoryStock = "historyStock",
|
|
10
|
+
HistoryOrderStock = "historyOrderStock",
|
|
11
|
+
HistoryOrderCommission = "historyOrderCommission",
|
|
12
|
+
HistoryOrder = "historyOrder",
|
|
13
|
+
HistoryAssign = "historyAssign"
|
|
14
|
+
}
|
|
@@ -42,6 +42,7 @@ import { EmailJob } from "@colijnit/mainapi/build/model/email-job";
|
|
|
42
42
|
import { Work } from "@colijnit/mainapi/build/model/work.bo";
|
|
43
43
|
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
44
44
|
import { Task } from "@colijnit/mainapi/build/model/task.bo";
|
|
45
|
+
import { ActivityEmailHistory } from "@colijnit/mainapi/build/model/activity-email-history.bo";
|
|
45
46
|
export declare class SharedConnectorService {
|
|
46
47
|
private _optionsService;
|
|
47
48
|
articleConnector: Articles;
|
|
@@ -91,6 +92,9 @@ export declare class SharedConnectorService {
|
|
|
91
92
|
getEmailSenderByWorkflowCategoryAndKey(worlflowCategory: string, key: string): Promise<string>;
|
|
92
93
|
getReportTemplates(reportTemplatesRequest: SelectReportTemplatesRequest): Promise<Report[]>;
|
|
93
94
|
emailReport(emailJob: EmailJob): Promise<boolean>;
|
|
95
|
+
insertEmailHistoryForRemark(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
|
|
96
|
+
insertEmailHistoryForWork(workId: number, history: ActivityEmailHistory): Promise<boolean>;
|
|
97
|
+
insertEmailHistoryForTask(taskId: number, history: ActivityEmailHistory): Promise<boolean>;
|
|
94
98
|
getWorkflowProcessInfoPerStatus(worlflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
95
99
|
getHistoricActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
96
100
|
getComponentActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
@@ -22,11 +22,14 @@ import { ReportType } from "@colijnit/mainapi/build/enum/report-type.enum";
|
|
|
22
22
|
import { LanguageCode } from "../enum/language-code.enum";
|
|
23
23
|
import { Work } from "@colijnit/mainapi/build/model/work.bo";
|
|
24
24
|
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
25
|
+
import { DictionaryService } from "./dictionary.service";
|
|
26
|
+
import { ActivityEmailHistory } from "@colijnit/mainapi/build/model/activity-email-history.bo";
|
|
25
27
|
export declare class SharedService {
|
|
26
28
|
protected readonly locale: LanguageCode;
|
|
27
29
|
protected options: OptionsService;
|
|
28
30
|
protected connector: SharedConnectorService;
|
|
29
|
-
|
|
31
|
+
protected dictionary: DictionaryService;
|
|
32
|
+
constructor(locale: LanguageCode, options: OptionsService, connector: SharedConnectorService, dictionary: DictionaryService);
|
|
30
33
|
init(options: any): Promise<void>;
|
|
31
34
|
connect(): Promise<void>;
|
|
32
35
|
getAllPrinters(): Promise<Printer[]>;
|
|
@@ -57,6 +60,9 @@ export declare class SharedService {
|
|
|
57
60
|
getDefaultEmailReportTemplatesForBranch(branchNr: string, reportType: ReportType): Promise<Report[]>;
|
|
58
61
|
emailViaTemplate(template: Report, emailTo: string, emailBcc: string, reply: string, subject?: string, message?: string, attachments?: string[], parameters?: object): Promise<boolean>;
|
|
59
62
|
private _createEmailJob;
|
|
63
|
+
insertEmailHistoryForRemark(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
|
|
64
|
+
insertEmailHistoryForWork(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
|
|
65
|
+
insertEmailHistoryForTask(remarkId: number, history: ActivityEmailHistory): Promise<boolean>;
|
|
60
66
|
getWorkflowProcessInfoPerStatus(workflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
61
67
|
getActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
62
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/sharedcomponents",
|
|
3
|
-
"version": "255.1.
|
|
3
|
+
"version": "255.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"chart.js": "4.3.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
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.
|
|
13
|
+
"@colijnit/mainapi": ">=255.1.2",
|
|
14
14
|
"@colijnit/corecomponents_v12": ">=255.1.2",
|
|
15
15
|
"@colijnit/ioneconnector": ">=255.1.1",
|
|
16
16
|
"@colijnit/sharedapi": ">=1.0.20",
|