@colijnit/sharedcomponents 1.0.41 → 1.0.43
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 +298 -134
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +58 -56
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +59 -57
- package/esm2015/lib/components/statusbar/statusbar.component.js +3 -3
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +7 -7
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +9 -9
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +29 -18
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +8 -9
- package/esm2015/lib/components/stock/localization/localize.pipe.js +26 -0
- package/esm2015/lib/components/stock/localization/localize.service.js +30 -0
- package/esm2015/lib/components/stock/localization/translation.js +55 -0
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +6 -7
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +9 -12
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +61 -61
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +26 -18
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +5 -5
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +12 -12
- package/esm2015/lib/components/stock/stock.component.js +11 -3
- package/esm2015/lib/components/stock/stock.module.js +10 -5
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +54 -13
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +4 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +405 -234
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/statusbar/statusbar.component.d.ts +1 -0
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +4 -0
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +0 -1
- package/lib/components/stock/localization/localize.pipe.d.ts +7 -0
- package/lib/components/stock/localization/localize.service.d.ts +7 -0
- package/lib/components/stock/localization/translation.d.ts +52 -0
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +0 -1
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -1
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +8 -13
- package/lib/components/stock/stock.component.d.ts +5 -1
- package/lib/components/stock/style/_layout.scss +13 -4
- package/lib/components/stock/style/_material-definition.scss +3 -0
- package/lib/components/stock-statusbar/style/_layout.scss +2 -3
- package/lib/components/tab-bar/style/_layout.scss +20 -1
- package/lib/components/tab-bar/tab-bar.component.d.ts +16 -1
- package/lib/style/_variables.scss +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -17,6 +17,7 @@ export declare class StatusbarComponent {
|
|
|
17
17
|
handleClick(event: MouseEvent): void;
|
|
18
18
|
popupShowing: boolean;
|
|
19
19
|
private _statusbarData;
|
|
20
|
+
private _statusbarPopupComponentRef;
|
|
20
21
|
constructor(_elementRef: ElementRef, _overlayService: OverlayService);
|
|
21
22
|
handleShowPopup(event: MouseEvent): void;
|
|
22
23
|
handleHidePopup(): void;
|
|
@@ -21,6 +21,10 @@ export declare class StockLocationComponent implements OnInit {
|
|
|
21
21
|
readonly transferIconClicked: EventEmitter<ArticleStockBo>;
|
|
22
22
|
readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
|
|
23
23
|
selectedWarehouse: any;
|
|
24
|
+
selectedWarehouseModel: {
|
|
25
|
+
value: 1;
|
|
26
|
+
label: 'danny & dane';
|
|
27
|
+
};
|
|
24
28
|
dataWareHouseFields: CoDropDownListFields;
|
|
25
29
|
dataLocationFields: CoDropDownListFields;
|
|
26
30
|
articleDetailsInformation: ArticleStockManagement;
|
|
@@ -3,6 +3,5 @@ import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model
|
|
|
3
3
|
export declare class StockTabComponent {
|
|
4
4
|
articleStockInformation: ArticleStockBo[];
|
|
5
5
|
locationClicked: EventEmitter<ArticleStockBo>;
|
|
6
|
-
constructor();
|
|
7
6
|
onLocationClick(data: ArticleStockBo): void;
|
|
8
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { LocalizeService } from './localize.service';
|
|
3
|
+
export declare class LocalizePipe implements PipeTransform {
|
|
4
|
+
private _localizeService;
|
|
5
|
+
constructor(_localizeService: LocalizeService);
|
|
6
|
+
transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Translation } from './translation';
|
|
2
|
+
export declare class LocalizeService {
|
|
3
|
+
set translation(value: Translation);
|
|
4
|
+
get translation(): Translation;
|
|
5
|
+
private _translation;
|
|
6
|
+
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare class Translation {
|
|
2
|
+
ALLOCATED?: string;
|
|
3
|
+
ALLOCATION?: string;
|
|
4
|
+
ALREADY_IN_ORDER?: string;
|
|
5
|
+
AMOUNT?: string;
|
|
6
|
+
AMOUNT_AVAILABLE?: string;
|
|
7
|
+
AMOUNT_IN_STOCK?: string;
|
|
8
|
+
AMOUNT_LATER_AVAILABLE?: string;
|
|
9
|
+
AVAILABLE_STOCK?: string;
|
|
10
|
+
BACK_TO_STOCK_LINES?: string;
|
|
11
|
+
BATCH?: string;
|
|
12
|
+
CANCEL?: string;
|
|
13
|
+
CHOICES?: string;
|
|
14
|
+
CUSTOMER?: string;
|
|
15
|
+
DATE?: string;
|
|
16
|
+
DELIVERY_DATE?: string;
|
|
17
|
+
DESCRIPTION?: string;
|
|
18
|
+
DOCUMENT_NUMBER?: string;
|
|
19
|
+
ECONOMICAL_STOCK?: string;
|
|
20
|
+
FREE_STOCK?: string;
|
|
21
|
+
HISTORY?: string;
|
|
22
|
+
IN_ORDER?: string;
|
|
23
|
+
LINE?: string;
|
|
24
|
+
LOCATION?: string;
|
|
25
|
+
LOOK_AT?: string;
|
|
26
|
+
MUTATION_DATE?: string;
|
|
27
|
+
MUTATION_TIME?: string;
|
|
28
|
+
MUTATION_TYPE?: string;
|
|
29
|
+
OK?: string;
|
|
30
|
+
ORDER?: string;
|
|
31
|
+
ORDER_COMMISSION?: string;
|
|
32
|
+
ORDER_STOCK?: string;
|
|
33
|
+
OVERVIEW?: string;
|
|
34
|
+
PURCHASE_ORDER_NR?: string;
|
|
35
|
+
PURCHASE_PRICE?: string;
|
|
36
|
+
RELATION_ID?: string;
|
|
37
|
+
RELATION_NR?: string;
|
|
38
|
+
RESERVED?: string;
|
|
39
|
+
SEARCH?: string;
|
|
40
|
+
SERIAL_NO?: string;
|
|
41
|
+
STICKER?: string;
|
|
42
|
+
STOCK?: string;
|
|
43
|
+
STOCK_DETAILS?: string;
|
|
44
|
+
STOCK_REMARK?: string;
|
|
45
|
+
STOCK_STATE?: string;
|
|
46
|
+
STOCK_STATUS?: string;
|
|
47
|
+
SUPPLIER_NUMBER?: string;
|
|
48
|
+
TRANSFER?: string;
|
|
49
|
+
USER?: string;
|
|
50
|
+
VALUTA?: string;
|
|
51
|
+
WAREHOUSE?: string;
|
|
52
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Icon } from "../../../enum/icon.enum";
|
|
3
3
|
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
4
4
|
import { StockService } from "../../../service/stock.service";
|
|
@@ -7,15 +7,17 @@ import { Tab } from "../../tab-bar/tab.interface";
|
|
|
7
7
|
import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
|
|
8
8
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
9
9
|
import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
|
|
10
|
-
|
|
10
|
+
import { LocalizeService } from '../localization/localize.service';
|
|
11
|
+
export declare class StockTabsComponent implements OnInit {
|
|
11
12
|
private _stockService;
|
|
13
|
+
private _localizeService;
|
|
12
14
|
readonly icons: typeof Icon;
|
|
13
15
|
stockInformation: ArticleStockBo[];
|
|
14
16
|
article: any;
|
|
15
17
|
warehouses: StockManagementWarehouses[];
|
|
16
18
|
readonly transferIconClicked: EventEmitter<ArticleStockBo>;
|
|
17
19
|
readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
|
|
18
|
-
|
|
20
|
+
selectedLocation: string;
|
|
19
21
|
stockHistory: StockHistoryBo[];
|
|
20
22
|
orderSupplyStockHistory: StockHistoryBo[];
|
|
21
23
|
orderCommissionStockHistory: StockHistoryBo[];
|
|
@@ -23,17 +25,10 @@ export declare class StockTabsComponent {
|
|
|
23
25
|
orderAllocationStockHistory: StockHistoryBo[];
|
|
24
26
|
inOrderInformation: ArticleTransactionBo[];
|
|
25
27
|
orderInformation: ArticleTransactionBo[];
|
|
26
|
-
tabs:
|
|
27
|
-
title: string;
|
|
28
|
-
active: boolean;
|
|
29
|
-
clickHandler?: undefined;
|
|
30
|
-
} | {
|
|
31
|
-
title: string;
|
|
32
|
-
active: boolean;
|
|
33
|
-
clickHandler: any;
|
|
34
|
-
})[];
|
|
28
|
+
tabs: Tab[];
|
|
35
29
|
historyTabs: Tab[];
|
|
36
|
-
constructor(_stockService: StockService);
|
|
30
|
+
constructor(_stockService: StockService, _localizeService: LocalizeService);
|
|
31
|
+
ngOnInit(): void;
|
|
37
32
|
handleLocationClicked(data: ArticleStockBo): void;
|
|
38
33
|
getStockHistory(): Promise<void>;
|
|
39
34
|
getOrderSupplyStockHistory(): Promise<void>;
|
|
@@ -8,12 +8,16 @@ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-detai
|
|
|
8
8
|
import { OptionsService } from "../../service/options.service";
|
|
9
9
|
import { DictionaryService } from "../../service/dictionary.service";
|
|
10
10
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
11
|
+
import { LocalizeService } from './localization/localize.service';
|
|
12
|
+
import { Translation } from './localization/translation';
|
|
11
13
|
export declare class StockComponent implements OnDestroy, OnInit {
|
|
12
14
|
stockService: StockService;
|
|
13
15
|
private _optionsService;
|
|
14
16
|
private _dictionary;
|
|
15
17
|
private _changeDetector;
|
|
18
|
+
private _localizeService;
|
|
16
19
|
stock: StockComponent;
|
|
20
|
+
set translation(value: Translation);
|
|
17
21
|
handleStickerClicked: EventEmitter<any>;
|
|
18
22
|
set article(article: any);
|
|
19
23
|
articleWarehouse: any[];
|
|
@@ -34,7 +38,7 @@ export declare class StockComponent implements OnDestroy, OnInit {
|
|
|
34
38
|
articleStockState: number;
|
|
35
39
|
warehouses: StockManagementWarehouses[];
|
|
36
40
|
private _subscriptions;
|
|
37
|
-
constructor(stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
|
|
41
|
+
constructor(stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef, _localizeService: LocalizeService);
|
|
38
42
|
ngOnDestroy(): void;
|
|
39
43
|
ngOnInit(): void;
|
|
40
44
|
handleStockTransferClick(event: any): void;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
margin-top: $sc-stock-info-margin;
|
|
12
12
|
padding: $sc-stock-info-padding;
|
|
13
13
|
display: inline-flex;
|
|
14
|
-
width:
|
|
14
|
+
width: $sc-stock-info-width;
|
|
15
15
|
justify-content: space-between;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
.stock-image {
|
|
28
28
|
height: $sc-stock-image-height;
|
|
29
|
-
margin-right:
|
|
29
|
+
margin-right: $sc-stock-image-width;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.stock-good-info {
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
|
|
36
36
|
.stock-status {
|
|
37
37
|
display: grid;
|
|
38
|
-
gap: $sc-stock-gap;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
.stock-info > div:not(:first-child) {
|
|
@@ -149,8 +148,9 @@
|
|
|
149
148
|
|
|
150
149
|
.stock-transfer-columns {
|
|
151
150
|
display: flex;
|
|
152
|
-
width:
|
|
151
|
+
width: $sc-stock-transfer-column-width;
|
|
153
152
|
justify-content: space-around;
|
|
153
|
+
overflow: hidden;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.tab-link-buttons {
|
|
@@ -188,5 +188,14 @@
|
|
|
188
188
|
.co-dialog-wrapper {
|
|
189
189
|
width: 70%;
|
|
190
190
|
}
|
|
191
|
+
|
|
192
|
+
.stock-label {
|
|
193
|
+
font-size: 10px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.stock-span {
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
align-self: center;
|
|
199
|
+
}
|
|
191
200
|
}
|
|
192
201
|
}
|
|
@@ -19,3 +19,6 @@ $sc-stock-info-container-height: 100% !default;
|
|
|
19
19
|
$sc-stock-image-height: 50px !default;
|
|
20
20
|
$sc-stock-grid-height: 300px !default;
|
|
21
21
|
$sc-stock-grid-overflow-y: auto !default;
|
|
22
|
+
$sc-stock-info-width: 90% !default;
|
|
23
|
+
$sc-stock-image-width: 20px !default;
|
|
24
|
+
$sc-stock-transfer-column-width: 600px !default;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
@include export-module('co-stock-statusbar-layout') {
|
|
2
2
|
.status-bar {
|
|
3
3
|
display: flex;
|
|
4
|
-
height:
|
|
5
|
-
width:
|
|
4
|
+
height: 10px;
|
|
5
|
+
width: 36px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.status-bar-block {
|
|
9
9
|
flex: 1;
|
|
10
10
|
margin-right: 2px;
|
|
11
|
-
border-radius: 5px;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.red {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@include export-module('co-tab-bar') {
|
|
2
|
-
.tab-bar {
|
|
2
|
+
.tab-bar-primary {
|
|
3
3
|
background-color: #F5F5FC;
|
|
4
4
|
border-radius: 4px;
|
|
5
5
|
width: fit-content;
|
|
6
6
|
margin: 0 auto;
|
|
7
|
+
font-size: $sc-font-size;
|
|
8
|
+
height: 23px;
|
|
7
9
|
|
|
8
10
|
button {
|
|
9
11
|
margin: 0.25rem;
|
|
@@ -14,6 +16,8 @@
|
|
|
14
16
|
width: 125px;
|
|
15
17
|
cursor: pointer;
|
|
16
18
|
user-select: none;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
font-family: $sc-font-family;
|
|
17
21
|
|
|
18
22
|
span {
|
|
19
23
|
font-size: 12px;
|
|
@@ -28,11 +32,24 @@
|
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
.tab-bar {
|
|
36
|
+
align-self: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tab-bar-wrapper {
|
|
40
|
+
display: grid;
|
|
41
|
+
grid-template-columns: 15% 70% 15%;
|
|
42
|
+
margin-left: 20px;
|
|
43
|
+
margin-right: 20px;
|
|
44
|
+
}
|
|
45
|
+
|
|
31
46
|
.secondary-tab-bar {
|
|
32
47
|
background-color: #F5F5FC;
|
|
33
48
|
border-radius: 4px;
|
|
34
49
|
width: fit-content;
|
|
35
50
|
margin: 5px auto 0;
|
|
51
|
+
font-size: $sc-font-size;
|
|
52
|
+
height: 23px;
|
|
36
53
|
|
|
37
54
|
button {
|
|
38
55
|
margin: 0.25rem;
|
|
@@ -43,6 +60,8 @@
|
|
|
43
60
|
width: 125px;
|
|
44
61
|
cursor: pointer;
|
|
45
62
|
user-select: none;
|
|
63
|
+
font-size: 10px;
|
|
64
|
+
font-family: $sc-font-family;
|
|
46
65
|
|
|
47
66
|
span {
|
|
48
67
|
font-size: 12px;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { Tab } from "./tab.interface";
|
|
2
|
+
import { CoDropDownListFields } from "../stock/stock-transfer/co-drop-down-list-fields.interface";
|
|
3
|
+
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
4
|
+
import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
|
|
5
|
+
import { StockService } from "../../service/stock.service";
|
|
6
|
+
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
2
7
|
export declare class TabBarComponent {
|
|
8
|
+
private _stockService;
|
|
9
|
+
wareHouseLabel: string;
|
|
10
|
+
wareHouseSearchLabel: string;
|
|
3
11
|
tabs: Tab[];
|
|
4
12
|
secondaryTabs: Tab[];
|
|
5
13
|
ActivateSecondaryTabs: boolean;
|
|
6
|
-
|
|
14
|
+
dataWareHouseCode: StockManagementWarehouses[];
|
|
15
|
+
article: any;
|
|
16
|
+
selectedWarehouse: any;
|
|
17
|
+
dataWareHouseFields: CoDropDownListFields;
|
|
18
|
+
articleDetailsInformation: ArticleStockManagement;
|
|
19
|
+
articleDetails: ArticleDetailsBo[];
|
|
20
|
+
constructor(_stockService: StockService);
|
|
7
21
|
selectTab(tab: Tab): void;
|
|
8
22
|
selectSecondaryTab(secondaryTab: Tab): void;
|
|
23
|
+
onSelectWarehouse(event: any): void;
|
|
9
24
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/sharedcomponents",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=12.2.0",
|
|
7
7
|
"@angular/core": ">=12.2.0",
|
|
8
8
|
"@colijnit/articleapi": ">=1.0.17",
|
|
9
9
|
"@colijnit/mainapi": ">=1.0.3",
|
|
10
|
-
"@colijnit/corecomponents_v12": ">=12.0.
|
|
10
|
+
"@colijnit/corecomponents_v12": ">=12.0.109",
|
|
11
11
|
"@colijnit/ioneconnector": ">=2.1.10",
|
|
12
12
|
"@colijnit/sharedapi": ">=1.0.11",
|
|
13
13
|
"pdf-lib": ">=1.17.1",
|
package/public-api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/components/docsign/docsign.component';
|
|
|
2
2
|
export * from './lib/components/docsign/docsign.module';
|
|
3
3
|
export * from './lib/components/stock/stock.component';
|
|
4
4
|
export * from './lib/components/stock/stock.module';
|
|
5
|
+
export * from './lib/components/stock/localization/translation';
|
|
5
6
|
export * from './lib/components/send-method-dialog/send-method-dialog.component';
|
|
6
7
|
export * from './lib/components/send-method-dialog/send-method-dialog.module';
|
|
7
8
|
export * from './lib/components/key-pad/key-pad.component';
|