@colijnit/sharedcomponents 255.1.23 → 255.1.24
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 +207 -24
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/preferred-planning/preferred-planning.component.js +210 -0
- package/esm2015/lib/components/preferred-planning/preferred-planning.module.js +25 -0
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +9 -13
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +4 -5
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +4 -3
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +10 -5
- package/esm2015/lib/service/stock.service.js +2 -3
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +248 -24
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +2 -2
- package/lib/components/preferred-planning/preferred-planning.component.d.ts +34 -0
- package/lib/components/preferred-planning/preferred-planning.module.d.ts +2 -0
- package/lib/components/preferred-planning/style/_layout.scss +74 -0
- package/lib/components/preferred-planning/style/_material-definition.scss +0 -0
- package/lib/components/preferred-planning/style/_theme.scss +5 -0
- package/lib/components/preferred-planning/style/material.scss +5 -0
- package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +4 -6
- package/lib/components/tab-bar/tab-bar.component.d.ts +4 -1
- package/lib/service/stock.service.d.ts +0 -2
- package/main.fbdbe938084ad6fbf240.js +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/{styles.486be41aa0593b705e42.css → styles.49bd98bd336b5413992f.css} +1 -1
- package/main.744dc3d73d03c6e7b1d4.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.49bd98bd336b5413992f.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.49bd98bd336b5413992f.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.fbdbe938084ad6fbf240.js" defer></script>
|
|
11
11
|
|
|
12
12
|
</body></html>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AgendaEventPerDay } from "../../model/agenda-event-per-day.model";
|
|
3
|
+
import { AgendaEvent } from "../../model/agenda-event.model";
|
|
4
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
|
+
import { Icon } from "../../enum/icon.enum";
|
|
6
|
+
export declare class PreferredPlanningComponent implements OnInit {
|
|
7
|
+
locale: string;
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
private _changeDetector;
|
|
10
|
+
dayStart: ElementRef;
|
|
11
|
+
readonly icons: typeof Icon;
|
|
12
|
+
firstAvailableDate: Date;
|
|
13
|
+
buttonLabel: string;
|
|
14
|
+
headerText: string;
|
|
15
|
+
headerDescription: string;
|
|
16
|
+
disclaimerHeader: string;
|
|
17
|
+
disclaimerDescription: string;
|
|
18
|
+
loadMoreButtonText: string;
|
|
19
|
+
eventsPerDay: AgendaEventPerDay[];
|
|
20
|
+
selectedDate: Date;
|
|
21
|
+
readonly buttonClick: EventEmitter<MouseEvent>;
|
|
22
|
+
selected: EventEmitter<AgendaEventPerDay>;
|
|
23
|
+
showClass: boolean;
|
|
24
|
+
days: Date[];
|
|
25
|
+
events: AgendaEventPerDay[];
|
|
26
|
+
limit: number;
|
|
27
|
+
selectedOption: AgendaEvent;
|
|
28
|
+
moreLoadable: boolean;
|
|
29
|
+
checkDisabled: boolean;
|
|
30
|
+
constructor(locale: string, iconCacheService: IconCacheService, _changeDetector: ChangeDetectorRef);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
handleOptionSelect(event: boolean, selectedOption: AgendaEvent, date: Date, index: number): void;
|
|
33
|
+
loadMore(): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@include export-module('co-preferred-planning') {
|
|
2
|
+
.co-preferred-planning {
|
|
3
|
+
.planning-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
margin-top: 20px;
|
|
7
|
+
.eventOption {
|
|
8
|
+
border: 1px solid #939397;
|
|
9
|
+
border-radius: 2px;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: 15px;
|
|
12
|
+
min-width: 330px;
|
|
13
|
+
margin-bottom: 15px;
|
|
14
|
+
p {
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
margin-bottom: 5px;
|
|
17
|
+
}
|
|
18
|
+
.planning-option {
|
|
19
|
+
margin-bottom: 10px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.day-selected {
|
|
23
|
+
border: 1px solid #1A73E8;
|
|
24
|
+
}
|
|
25
|
+
.planning-disclaimer {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
padding-left: 20px;
|
|
28
|
+
h2 {
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.planning-disclaimer-contents {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-items: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
.disclaimer-icon {
|
|
38
|
+
path {
|
|
39
|
+
fill: #1A73E8;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.load-more-container {
|
|
46
|
+
margin: 10px 0;
|
|
47
|
+
}
|
|
48
|
+
.load-more-container p {
|
|
49
|
+
display: flex;
|
|
50
|
+
color: #1A73E8;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
align-items: center;
|
|
53
|
+
polygon {
|
|
54
|
+
fill: #1A73E8;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.load-more-container-disabled p {
|
|
58
|
+
color: #939397;
|
|
59
|
+
cursor: default;
|
|
60
|
+
polygon {
|
|
61
|
+
fill: #939397;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.submit-button {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
padding: 15px;
|
|
69
|
+
place-content: center;
|
|
70
|
+
background: #1A73E8;
|
|
71
|
+
color: #fff;
|
|
72
|
+
max-width: 250px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from "@angular/core";
|
|
2
2
|
import { IconCacheService } from "../../../../../../service/icon-cache.service";
|
|
3
3
|
import { Icon } from "../../../../../../enum/icon.enum";
|
|
4
4
|
import { StockService } from "../../../../../../service/stock.service";
|
|
@@ -8,7 +8,7 @@ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-detai
|
|
|
8
8
|
import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
|
|
9
9
|
import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
|
|
10
10
|
import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
|
|
11
|
-
export declare class StockLocationPopupComponent
|
|
11
|
+
export declare class StockLocationPopupComponent {
|
|
12
12
|
iconCacheService: IconCacheService;
|
|
13
13
|
private _stockService;
|
|
14
14
|
private _changeDetector;
|
|
@@ -26,17 +26,15 @@ export declare class StockLocationPopupComponent implements OnInit, OnDestroy {
|
|
|
26
26
|
stockLocations: StockLocation[];
|
|
27
27
|
stockStatus: StockStatus[];
|
|
28
28
|
constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
|
|
29
|
-
|
|
30
|
-
statusForId(id: number): StockStatus;
|
|
29
|
+
statusForId(id: number): 0 | StockStatus;
|
|
31
30
|
handleStockStatusChange(status: StockStatus): void;
|
|
32
31
|
handleStockStatusRemarkChange(remark: string): void;
|
|
33
32
|
amountInStockChanged(data: any): void;
|
|
34
33
|
disabled(): boolean;
|
|
35
34
|
handleOkClick(): void;
|
|
36
|
-
ngOnDestroy(): void;
|
|
37
35
|
togglePopup(): void;
|
|
38
36
|
getStockLocations(): void;
|
|
39
|
-
locationForNumber(number: string): StockLocation;
|
|
37
|
+
locationForNumber(number: string): "" | StockLocation;
|
|
40
38
|
locationChanged(event: StockLocation): void;
|
|
41
39
|
handleStockChange(): void;
|
|
42
40
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { Tab } from "./tab.interface";
|
|
3
3
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
4
|
+
import { StockService } from "../../service/stock.service";
|
|
4
5
|
export declare class TabBarComponent {
|
|
6
|
+
private _stockService;
|
|
5
7
|
wareHouseLabel: string;
|
|
6
8
|
wareHouseSearchLabel: string;
|
|
7
9
|
tabs: Tab[];
|
|
@@ -12,7 +14,8 @@ export declare class TabBarComponent {
|
|
|
12
14
|
showWarehouseSelection: boolean;
|
|
13
15
|
warehouseSelected: EventEmitter<StockManagementWarehouses>;
|
|
14
16
|
selectedWarehouse: StockManagementWarehouses;
|
|
17
|
+
constructor(_stockService: StockService);
|
|
15
18
|
selectTab(tab: Tab): void;
|
|
16
19
|
selectSecondaryTab(secondaryTab: Tab): void;
|
|
17
|
-
onSelectWarehouse(event:
|
|
20
|
+
onSelectWarehouse(event: StockManagementWarehouses): void;
|
|
18
21
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
1
|
import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
|
|
3
2
|
import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
|
|
4
3
|
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
@@ -22,7 +21,6 @@ export declare class StockService {
|
|
|
22
21
|
private _sharedService;
|
|
23
22
|
stockStickers: PrintStockStickers;
|
|
24
23
|
printLayoutParams: SendMethodParams;
|
|
25
|
-
readonly warehouseSelected: EventEmitter<StockManagementWarehouses>;
|
|
26
24
|
constructor(_sharedService: SharedConnectorService);
|
|
27
25
|
getStockHistory(data: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
|
|
28
26
|
getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
|