@colijnit/sharedcomponents 1.0.20 → 1.0.22
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 +161 -122
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +3 -3
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +4 -4
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +39 -33
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +7 -4
- package/esm2015/lib/components/stock/stock.component.js +33 -18
- package/esm2015/lib/components/stock/stock.module.js +2 -4
- package/esm2015/lib/service/shared-connector.service.js +37 -19
- package/esm2015/lib/service/stock.service.js +31 -22
- package/fesm2015/colijnit-sharedcomponents.js +160 -111
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +6 -7
- package/lib/components/stock/stock.component.d.ts +10 -6
- package/lib/components/stock/style/_layout.scss +1 -2
- package/lib/components/stock/style/_material-definition.scss +1 -1
- package/lib/service/shared-connector.service.d.ts +5 -3
- package/lib/service/stock.service.d.ts +9 -4
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { IconCacheService } from "../../service/icon-cache.service";
|
|
|
4
4
|
import { SendOption } from "./enums/send-option";
|
|
5
5
|
import { Printer } from "@colijnit/sharedapi/build/model/report/printer.bo";
|
|
6
6
|
import { StockService } from "../../service/stock.service";
|
|
7
|
-
import {
|
|
7
|
+
import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
|
|
8
8
|
import { CoDropDownListFields } from "../stock/stock-transfer/co-drop-down-list-fields.interface";
|
|
9
9
|
import { OptionsService } from "../../service/options.service";
|
|
10
10
|
import { DictionaryService } from "../../service/dictionary.service";
|
|
@@ -20,25 +20,26 @@ export declare class SendMethodDialogComponent implements OnDestroy {
|
|
|
20
20
|
showPrintOption: boolean;
|
|
21
21
|
showPdfOption: boolean;
|
|
22
22
|
showXmlOption: boolean;
|
|
23
|
+
showPrintPriceStickers: boolean;
|
|
24
|
+
showPrintStockStickers: boolean;
|
|
25
|
+
priceListCodeData: any;
|
|
23
26
|
sendOptions: {
|
|
24
27
|
option: SendOption;
|
|
25
28
|
iconName: Icon;
|
|
26
|
-
show: boolean;
|
|
27
29
|
}[];
|
|
28
30
|
activeSendOption: SendOption;
|
|
29
31
|
showStandardPrinterOptions: boolean;
|
|
30
32
|
showPrinterSelections: boolean;
|
|
31
33
|
showExitButton: boolean;
|
|
32
34
|
defaultPrinter: Printer;
|
|
33
|
-
printTemplates:
|
|
35
|
+
printTemplates: StockStickersPrintLayouts[];
|
|
34
36
|
printTemplatesField: CoDropDownListFields;
|
|
37
|
+
priceListDataField: CoDropDownListFields;
|
|
35
38
|
upAndLoaded: boolean;
|
|
36
39
|
emails: any[];
|
|
37
40
|
models: boolean[];
|
|
38
41
|
layouts: any[];
|
|
39
42
|
selectedLayout: 'Layout 1';
|
|
40
|
-
set options(value: any);
|
|
41
|
-
get options(): any;
|
|
42
43
|
showDialog: boolean;
|
|
43
44
|
headerTitle: string;
|
|
44
45
|
printerList: Printer[];
|
|
@@ -47,8 +48,6 @@ export declare class SendMethodDialogComponent implements OnDestroy {
|
|
|
47
48
|
printButtonClicked: EventEmitter<any>;
|
|
48
49
|
showClass(): boolean;
|
|
49
50
|
private _subscriptions;
|
|
50
|
-
private _publicOptions;
|
|
51
|
-
private _options;
|
|
52
51
|
constructor(iconCacheService: IconCacheService, stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
|
|
53
52
|
ngOnDestroy(): void;
|
|
54
53
|
getPrinters(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
2
|
import { StockService } from "../../service/stock.service";
|
|
3
3
|
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
4
4
|
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
@@ -6,12 +6,14 @@ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
|
|
|
6
6
|
import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
|
|
7
7
|
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
8
8
|
import { OptionsService } from "../../service/options.service";
|
|
9
|
-
|
|
9
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
10
|
+
export declare class StockComponent implements OnDestroy {
|
|
10
11
|
stockService: StockService;
|
|
11
12
|
private _optionsService;
|
|
13
|
+
private _dictionary;
|
|
14
|
+
private _changeDetector;
|
|
12
15
|
stock: StockComponent;
|
|
13
16
|
handleStickerClicked: EventEmitter<any>;
|
|
14
|
-
set options(value: any);
|
|
15
17
|
set article(article: any);
|
|
16
18
|
articleWarehouse: any[];
|
|
17
19
|
allWarehouses: any[];
|
|
@@ -27,12 +29,14 @@ export declare class StockComponent {
|
|
|
27
29
|
stockHistory: StockHistoryBo[];
|
|
28
30
|
allAvailableStock: number;
|
|
29
31
|
allTechnicalStock: number;
|
|
30
|
-
private
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
private _subscriptions;
|
|
33
|
+
constructor(stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
|
|
34
|
+
ngOnDestroy(): void;
|
|
33
35
|
backToStockLinesClicked(): void;
|
|
34
36
|
handleStockTransferClick(event: any): void;
|
|
35
37
|
backToStock(): void;
|
|
36
38
|
getStockHistory(): Promise<void>;
|
|
37
39
|
getStockInformation(data: ArticleStock): Promise<void>;
|
|
40
|
+
private _handleSettingsLoaded;
|
|
41
|
+
private _initConnection;
|
|
38
42
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
.stock-info-container {
|
|
7
7
|
max-width: $sc-stock-info-container-width;
|
|
8
8
|
padding: $sc-stock-info-container-padding;
|
|
9
|
+
height: 70vh;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.stock-info {
|
|
@@ -54,7 +55,6 @@
|
|
|
54
55
|
|
|
55
56
|
.tab-link {
|
|
56
57
|
gap: 30px;
|
|
57
|
-
padding: 20px 20px;
|
|
58
58
|
&.hide {
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
@@ -127,7 +127,6 @@
|
|
|
127
127
|
.stock-button-middle-group {
|
|
128
128
|
display: flex;
|
|
129
129
|
flex: 1;
|
|
130
|
-
margin-top: 10px;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
.stock-transfer-right-column {
|
|
@@ -11,7 +11,7 @@ $sc-stock-simple-grid-row-border: none !default;
|
|
|
11
11
|
$sc-stock-simple-grid-column-cell-padding: 10px 5px !default;
|
|
12
12
|
$sc-stock-tab-link-buttons-active-color: $sc-color-action !default;
|
|
13
13
|
$sc-stock-tab-link-buttons-pointer: pointer !default;
|
|
14
|
-
$sc-stock-grid-margin:
|
|
14
|
+
$sc-stock-grid-margin: 0 0 0 0 !default;
|
|
15
15
|
$sc-stock-simple-grid-column-header-wrapper-border-bottom: 1px solid black !default;
|
|
16
16
|
$sc-stock-info-container-width: 100% !default;
|
|
17
17
|
$sc-stock-info-container-padding: 0px !default;
|
|
@@ -8,7 +8,7 @@ import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-sto
|
|
|
8
8
|
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
9
9
|
import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
|
|
10
10
|
import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
|
|
11
|
-
import {
|
|
11
|
+
import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
|
|
12
12
|
import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
|
|
13
13
|
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
14
14
|
import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
|
|
@@ -17,15 +17,17 @@ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.b
|
|
|
17
17
|
import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
|
|
18
18
|
import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
|
|
19
19
|
import { OptionsService } from "./options.service";
|
|
20
|
+
import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
|
|
20
21
|
export declare class SharedConnectorService {
|
|
21
22
|
private _optionsService;
|
|
22
|
-
|
|
23
|
+
articleConnector: Articles;
|
|
23
24
|
sharedConnector: Sharedapi;
|
|
24
25
|
private _boFactory;
|
|
25
26
|
constructor(_optionsService: OptionsService);
|
|
26
27
|
connect(): Promise<void>;
|
|
27
28
|
getAllPrinters(showAll?: boolean): Promise<Printer[]>;
|
|
28
29
|
getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers>;
|
|
30
|
+
getPrintPriceStickers(request: PrintPriceStickers): Promise<PrintPriceStickers>;
|
|
29
31
|
getArticleFullObject(goodId: number): Promise<ArticleExtended>;
|
|
30
32
|
getStockHistory(request: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
|
|
31
33
|
getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
|
|
@@ -35,7 +37,7 @@ export declare class SharedConnectorService {
|
|
|
35
37
|
updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
|
|
36
38
|
lockArticleDetails(data: ArticleStockManagement): Promise<boolean>;
|
|
37
39
|
getStockStatus(): Promise<StockStatus[]>;
|
|
38
|
-
getStockStickerTemplates(data:
|
|
40
|
+
getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]>;
|
|
39
41
|
getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
|
|
40
42
|
commit(): Promise<DataServiceResponseData>;
|
|
41
43
|
}
|
|
@@ -4,7 +4,7 @@ import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-sto
|
|
|
4
4
|
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
5
5
|
import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
|
|
6
6
|
import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
|
|
7
|
-
import {
|
|
7
|
+
import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
|
|
8
8
|
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
9
9
|
import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
|
|
10
10
|
import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
|
|
@@ -13,18 +13,23 @@ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.b
|
|
|
13
13
|
import { DataServiceResponseData } from "@colijnit/articleapi/build/model/data-service-response-data";
|
|
14
14
|
import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
|
|
15
15
|
import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
|
|
17
|
+
import { SharedConnectorService } from "./shared-connector.service";
|
|
18
|
+
export declare class StockService {
|
|
19
|
+
private _sharedService;
|
|
18
20
|
stockStickers: PrintStockStickers;
|
|
19
21
|
printSticker: PrintStockStickers;
|
|
22
|
+
printPriceSticker: PrintPriceStickers;
|
|
23
|
+
constructor(_sharedService: SharedConnectorService);
|
|
20
24
|
getPrintStockStickers(data: PrintStockStickers): Promise<void>;
|
|
25
|
+
getPrintPriceStickers(data: PrintPriceStickers): Promise<void>;
|
|
21
26
|
getAllPrinters(showAll?: boolean): Promise<Printer[]>;
|
|
22
27
|
getStockHistory(data: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
|
|
23
28
|
getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
|
|
24
29
|
getArticleDetails(data: ArticleStockManagement): Promise<ArticleDetailsBo[]>;
|
|
25
30
|
updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
|
|
26
31
|
getStockState(): Promise<StockStatus[]>;
|
|
27
|
-
getStockStickerTemplates(data:
|
|
32
|
+
getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]>;
|
|
28
33
|
getStockManagementWarehouses(): Promise<StockManagementWarehouses[]>;
|
|
29
34
|
getStockManagementLocations(warehouseNo: number): Promise<StockLocation[]>;
|
|
30
35
|
getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
|