@colijnit/sharedcomponents 1.0.19 → 1.0.21
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 +567 -120
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +9 -7
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +10 -8
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +125 -31
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +1 -1
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +36 -30
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +1 -1
- package/esm2015/lib/components/stock/stock.component.js +18 -5
- package/esm2015/lib/components/stock/stock.module.js +3 -3
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/esm2015/lib/service/dictionary.service.js +76 -0
- package/esm2015/lib/service/options.service.js +71 -0
- package/esm2015/lib/service/shared-connector.service.js +279 -0
- package/esm2015/lib/service/shared.service.js +30 -0
- package/esm2015/lib/service/stock.service.js +44 -30
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +503 -115
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/assets/dictionary/text.properties.d.ts +3 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +29 -9
- package/lib/components/send-method-dialog/style/_layout.scss +5 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -1
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +6 -6
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +1 -1
- package/lib/components/stock/stock.component.d.ts +6 -2
- package/lib/components/stock/style/_layout.scss +6 -0
- package/lib/enum/language-code.enum.d.ts +6 -0
- package/lib/service/dictionary.service.d.ts +21 -0
- package/lib/service/options.service.d.ts +13 -0
- package/lib/service/{ione-connector-adapter.service.d.ts → shared-connector.service.d.ts} +13 -9
- package/lib/service/shared.service.d.ts +8 -0
- package/lib/service/stock.service.d.ts +14 -10
- package/lib/utils/string-utils.d.ts +22 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/3rdpartylicenses.txt +0 -1116
- package/esm2015/lib/service/ione-connector-adapter.service.js +0 -251
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.5240c1941fea0abc7a9c.js +0 -1
- package/polyfills.4a44032b137d291298c3.js +0 -1
- package/runtime.f2046bab7c02026dc21f.js +0 -1
- package/styles.b3b98643e0f0f94bdd12.css +0 -110
|
@@ -1,46 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
2
|
import { Icon } from "../../enum/icon.enum";
|
|
3
3
|
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
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
11
|
+
export declare class SendMethodDialogComponent implements OnDestroy {
|
|
10
12
|
iconCacheService: IconCacheService;
|
|
11
|
-
|
|
13
|
+
stockService: StockService;
|
|
14
|
+
private _optionsService;
|
|
15
|
+
private _dictionary;
|
|
16
|
+
private _changeDetector;
|
|
12
17
|
readonly icons: typeof Icon;
|
|
13
18
|
readonly sendOption: typeof SendOption;
|
|
19
|
+
showEmailOption: boolean;
|
|
20
|
+
showPrintOption: boolean;
|
|
21
|
+
showPdfOption: boolean;
|
|
22
|
+
showXmlOption: boolean;
|
|
23
|
+
showPrintPriceStickers: boolean;
|
|
24
|
+
showPrintStockStickers: boolean;
|
|
25
|
+
priceListCodeData: any;
|
|
14
26
|
sendOptions: {
|
|
15
27
|
option: SendOption;
|
|
16
28
|
iconName: Icon;
|
|
17
29
|
}[];
|
|
18
30
|
activeSendOption: SendOption;
|
|
19
|
-
amountToPrint: number;
|
|
20
31
|
showStandardPrinterOptions: boolean;
|
|
21
32
|
showPrinterSelections: boolean;
|
|
22
33
|
showExitButton: boolean;
|
|
23
34
|
defaultPrinter: Printer;
|
|
24
|
-
printTemplates:
|
|
35
|
+
printTemplates: StockStickersPrintLayouts[];
|
|
25
36
|
printTemplatesField: CoDropDownListFields;
|
|
37
|
+
priceListDataField: CoDropDownListFields;
|
|
38
|
+
upAndLoaded: boolean;
|
|
26
39
|
emails: any[];
|
|
27
40
|
models: boolean[];
|
|
28
41
|
layouts: any[];
|
|
29
42
|
selectedLayout: 'Layout 1';
|
|
30
43
|
set options(value: any);
|
|
44
|
+
get options(): any;
|
|
31
45
|
showDialog: boolean;
|
|
32
46
|
headerTitle: string;
|
|
33
47
|
printerList: Printer[];
|
|
48
|
+
set articleData(data: any);
|
|
34
49
|
startSignatureClicked: EventEmitter<any>;
|
|
35
50
|
printButtonClicked: EventEmitter<any>;
|
|
36
51
|
showClass(): boolean;
|
|
37
|
-
|
|
38
|
-
|
|
52
|
+
private _subscriptions;
|
|
53
|
+
private _publicOptions;
|
|
54
|
+
private _options;
|
|
55
|
+
constructor(iconCacheService: IconCacheService, stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
|
|
56
|
+
ngOnDestroy(): void;
|
|
39
57
|
getPrinters(): Promise<void>;
|
|
40
58
|
closeDialogClick(): void;
|
|
41
59
|
handleSignatureStart(): void;
|
|
42
60
|
handlePrintClicked(): void;
|
|
43
61
|
togglePrinterSelection(): void;
|
|
44
62
|
onPrinterClicked(printer: any): void;
|
|
45
|
-
getPrintTemplates():
|
|
63
|
+
getPrintTemplates(): any;
|
|
64
|
+
private _handleSettingsLoaded;
|
|
65
|
+
private _initConnection;
|
|
46
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
1
|
+
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
2
2
|
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
3
3
|
export declare class StockInformationComponent {
|
|
4
4
|
image: string;
|
|
@@ -2,14 +2,14 @@ import { EventEmitter } from "@angular/core";
|
|
|
2
2
|
import { StockService } from "../../../service/stock.service";
|
|
3
3
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
4
4
|
import { Icon } from "../../../enum/icon.enum";
|
|
5
|
-
import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
5
|
+
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
6
6
|
import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
|
|
7
|
-
import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
|
|
8
7
|
import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
|
|
9
8
|
import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
|
|
10
9
|
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
11
10
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
12
11
|
import { CoDropDownListFields } from "../stock-transfer/co-drop-down-list-fields.interface";
|
|
12
|
+
import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
|
|
13
13
|
export declare class StockInformationGridComponent {
|
|
14
14
|
iconCacheService: IconCacheService;
|
|
15
15
|
private _stockService;
|
|
@@ -25,14 +25,13 @@ export declare class StockInformationGridComponent {
|
|
|
25
25
|
hideOrShowLocationTab: boolean;
|
|
26
26
|
showStockHistory: boolean;
|
|
27
27
|
showSendMethodDialog: boolean;
|
|
28
|
-
inOrderInformation:
|
|
29
|
-
orderInformation:
|
|
28
|
+
inOrderInformation: ArticleTransactionBo[];
|
|
29
|
+
orderInformation: ArticleTransactionBo[];
|
|
30
30
|
hideOrShowTabs: boolean;
|
|
31
31
|
dataWareHouseCode: StockManagementWarehouses[];
|
|
32
32
|
dataWareHouseFields: CoDropDownListFields;
|
|
33
33
|
selectedWarehouse: any;
|
|
34
34
|
articleStockSearchInfo: ArticleStock;
|
|
35
|
-
printSticker: PrintStockStickers;
|
|
36
35
|
articleDetails: ArticleDetailsBo[];
|
|
37
36
|
selectedArticleDetailsData: ArticleDetailsBo;
|
|
38
37
|
showChangeStockDetails: boolean;
|
|
@@ -47,7 +46,7 @@ export declare class StockInformationGridComponent {
|
|
|
47
46
|
backToStockInformation(): void;
|
|
48
47
|
handleStockTransferClick(event: any): void;
|
|
49
48
|
handleBackToStockClick(): Promise<void>;
|
|
50
|
-
openSendMethodDialog(): void;
|
|
49
|
+
openSendMethodDialog(data: any): void;
|
|
51
50
|
printStockStickers(): void;
|
|
52
51
|
onOkClick(): void;
|
|
53
52
|
onCancelClick(): void;
|
|
@@ -57,4 +56,5 @@ export declare class StockInformationGridComponent {
|
|
|
57
56
|
onSelectWarehouse(event: any): void;
|
|
58
57
|
getInOrderData(): Promise<void>;
|
|
59
58
|
getOrderData(): Promise<void>;
|
|
59
|
+
addNewRow(): void;
|
|
60
60
|
}
|
|
@@ -2,7 +2,7 @@ import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
|
2
2
|
import { PrintStockStickers } from "@colijnit/articleapi/build/model/print-stock-stickers";
|
|
3
3
|
import { StockService } from "../../../service/stock.service";
|
|
4
4
|
import { CoDropDownListFields } from "./co-drop-down-list-fields.interface";
|
|
5
|
-
import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
5
|
+
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
6
6
|
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
7
7
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
8
8
|
import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { StockService } from "../../service/stock.service";
|
|
3
|
-
import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
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";
|
|
5
5
|
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
|
+
import { OptionsService } from "../../service/options.service";
|
|
8
9
|
export declare class StockComponent {
|
|
9
10
|
stockService: StockService;
|
|
11
|
+
private _optionsService;
|
|
10
12
|
stock: StockComponent;
|
|
11
13
|
handleStickerClicked: EventEmitter<any>;
|
|
12
14
|
set options(value: any);
|
|
@@ -25,7 +27,9 @@ export declare class StockComponent {
|
|
|
25
27
|
stockHistory: StockHistoryBo[];
|
|
26
28
|
allAvailableStock: number;
|
|
27
29
|
allTechnicalStock: number;
|
|
28
|
-
|
|
30
|
+
private _publicOptions;
|
|
31
|
+
private _options;
|
|
32
|
+
constructor(stockService: StockService, _optionsService: OptionsService);
|
|
29
33
|
backToStockLinesClicked(): void;
|
|
30
34
|
handleStockTransferClick(event: any): void;
|
|
31
35
|
backToStock(): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class DictionaryService {
|
|
2
|
+
private readonly dictionaryUrl;
|
|
3
|
+
get language(): string;
|
|
4
|
+
set rootUrl(value: string);
|
|
5
|
+
private _dictBasePath;
|
|
6
|
+
private _rootUrl;
|
|
7
|
+
private _dictionaries;
|
|
8
|
+
private _language;
|
|
9
|
+
private readonly _placeholder;
|
|
10
|
+
constructor();
|
|
11
|
+
setDictionary(language: string): Promise<void>;
|
|
12
|
+
private _loadDictionary;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the localized text for the given dictionary key.
|
|
15
|
+
* @param {string} key
|
|
16
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
17
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
18
|
+
* @returns {string} The translated text for given dictionary key
|
|
19
|
+
*/
|
|
20
|
+
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import { DictionaryService } from "./dictionary.service";
|
|
3
|
+
export declare class OptionsService {
|
|
4
|
+
private _dictionary;
|
|
5
|
+
optionsInitialized: BehaviorSubject<boolean>;
|
|
6
|
+
set options(value: any);
|
|
7
|
+
get options(): any;
|
|
8
|
+
optionsLoaded: BehaviorSubject<boolean>;
|
|
9
|
+
private _options;
|
|
10
|
+
constructor(_dictionary: DictionaryService);
|
|
11
|
+
createSettingsFromObject(obj: any): Promise<void>;
|
|
12
|
+
initialize(options: any): Promise<void>;
|
|
13
|
+
}
|
|
@@ -5,26 +5,29 @@ import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extend
|
|
|
5
5
|
import { DataServiceResponseData } from "@colijnit/articleapi/build/model/data-service-response-data";
|
|
6
6
|
import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
|
|
7
7
|
import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
|
|
8
|
-
import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
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";
|
|
15
15
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
16
16
|
import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
|
|
18
|
+
import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
|
|
19
|
+
import { OptionsService } from "./options.service";
|
|
20
|
+
import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
|
|
21
|
+
export declare class SharedConnectorService {
|
|
22
|
+
private _optionsService;
|
|
19
23
|
connector: Articles;
|
|
20
24
|
sharedConnector: Sharedapi;
|
|
21
25
|
private _boFactory;
|
|
22
|
-
constructor();
|
|
23
|
-
connect(
|
|
24
|
-
disconnect(): Promise<void>;
|
|
26
|
+
constructor(_optionsService: OptionsService);
|
|
27
|
+
connect(): Promise<void>;
|
|
25
28
|
getAllPrinters(showAll?: boolean): Promise<Printer[]>;
|
|
26
29
|
getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers>;
|
|
27
|
-
|
|
30
|
+
getPrintPriceStickers(request: PrintPriceStickers): Promise<PrintPriceStickers>;
|
|
28
31
|
getArticleFullObject(goodId: number): Promise<ArticleExtended>;
|
|
29
32
|
getStockHistory(request: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
|
|
30
33
|
getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
|
|
@@ -34,6 +37,7 @@ export declare class IoneConnectorAdapterService {
|
|
|
34
37
|
updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
|
|
35
38
|
lockArticleDetails(data: ArticleStockManagement): Promise<boolean>;
|
|
36
39
|
getStockStatus(): Promise<StockStatus[]>;
|
|
37
|
-
getStockStickerTemplates(data:
|
|
40
|
+
getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]>;
|
|
41
|
+
getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
|
|
38
42
|
commit(): Promise<DataServiceResponseData>;
|
|
39
43
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SharedConnectorService } from "./shared-connector.service";
|
|
2
|
+
import { OptionsService } from "./options.service";
|
|
3
|
+
export declare class SharedService {
|
|
4
|
+
protected options: OptionsService;
|
|
5
|
+
protected connector: SharedConnectorService;
|
|
6
|
+
constructor(options: OptionsService, connector: SharedConnectorService);
|
|
7
|
+
init(options: any): Promise<void>;
|
|
8
|
+
}
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PrintStockStickers } from "@colijnit/articleapi/build/model/print-stock-stickers";
|
|
1
|
+
import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
|
|
3
2
|
import { Printer } from "@colijnit/sharedapi/build/model/report/printer.bo";
|
|
4
3
|
import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
|
|
5
|
-
import { ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
4
|
+
import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
6
5
|
import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
|
|
7
6
|
import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
|
|
8
|
-
import {
|
|
7
|
+
import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
|
|
9
8
|
import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
|
|
10
9
|
import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
|
|
11
10
|
import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
|
|
12
11
|
import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
|
|
13
12
|
import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
|
|
14
13
|
import { DataServiceResponseData } from "@colijnit/articleapi/build/model/data-service-response-data";
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
|
|
15
|
+
import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
|
|
16
|
+
import { SharedService } from "./shared.service";
|
|
17
|
+
import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
|
|
18
|
+
export declare class StockService extends SharedService {
|
|
17
19
|
stockStickers: PrintStockStickers;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
printSticker: PrintStockStickers;
|
|
21
|
+
printPriceSticker: PrintPriceStickers;
|
|
22
|
+
getPrintStockStickers(data: PrintStockStickers): Promise<void>;
|
|
23
|
+
getPrintPriceStickers(data: PrintPriceStickers): Promise<void>;
|
|
20
24
|
getAllPrinters(showAll?: boolean): Promise<Printer[]>;
|
|
21
25
|
getStockHistory(data: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
|
|
22
26
|
getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
|
|
23
|
-
getStockStickerPrintLayouts(data: StockStickersPrintLayoutsBo): Promise<StockStickersPrintLayoutsBo[]>;
|
|
24
27
|
getArticleDetails(data: ArticleStockManagement): Promise<ArticleDetailsBo[]>;
|
|
25
28
|
updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
|
|
26
29
|
getStockState(): Promise<StockStatus[]>;
|
|
27
|
-
getStockStickerTemplates(data:
|
|
30
|
+
getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]>;
|
|
28
31
|
getStockManagementWarehouses(): Promise<StockManagementWarehouses[]>;
|
|
29
32
|
getStockManagementLocations(warehouseNo: number): Promise<StockLocation[]>;
|
|
33
|
+
getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
|
|
30
34
|
lockArticleDetails(data: ArticleStockManagement): Promise<boolean>;
|
|
31
35
|
commit(): Promise<DataServiceResponseData>;
|
|
32
36
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class StringUtils {
|
|
2
|
+
/**
|
|
3
|
+
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
4
|
+
*
|
|
5
|
+
* Example usage:
|
|
6
|
+
*
|
|
7
|
+
* source = "ABCDABCD"
|
|
8
|
+
* placeholder = "BC"
|
|
9
|
+
* replacementTexts = "Z", "Z" (REST arguments)
|
|
10
|
+
* OUTPUT = "AZDAZD"
|
|
11
|
+
*
|
|
12
|
+
* @param {string} source
|
|
13
|
+
* @param {string} placeholder
|
|
14
|
+
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
15
|
+
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
16
|
+
*/
|
|
17
|
+
static ReplaceOccurrencesIn(source: string, placeholder: string, ...replacementTexts: string[]): string;
|
|
18
|
+
static ParseString(arg: any, defaultValue?: string): string;
|
|
19
|
+
static IsString(str: any): boolean;
|
|
20
|
+
static IsStringWithLength(str: string): boolean;
|
|
21
|
+
private static _escapeRegExp;
|
|
22
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export * from './lib/components/key-pad/key-pad.component';
|
|
|
8
8
|
export * from './lib/components/key-pad/key-pad.module';
|
|
9
9
|
export * from './lib/components/layout-switcher/layout-switcher.component';
|
|
10
10
|
export * from './lib/components/layout-switcher/layout-switcher.module';
|
|
11
|
+
export * from './lib/service/shared.service';
|