@colijnit/sharedcomponents 257.1.4 → 257.1.6
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 -249
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +130 -129
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +131 -130
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +10 -4
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +3 -3
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +72 -72
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +46 -25
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +26 -24
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +7 -4
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +3 -2
- package/esm2015/lib/components/stock/service/stock-module-screen-config.service.js +27 -0
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +30 -2
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +5 -5
- package/esm2015/lib/components/stock/stock.component.js +20 -6
- package/esm2015/lib/components/stock/stock.module.js +3 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
- package/esm2015/lib/service/shared-connector.service.js +2 -2
- package/esm2015/lib/service/shared-event.service.js +15 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +248 -142
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +2 -1
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +2 -1
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +1 -1
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +4 -1
- package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +3 -1
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +2 -1
- package/lib/components/stock/service/stock-module-screen-config.service.d.ts +9 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +8 -1
- package/lib/components/stock/stock.component.d.ts +5 -2
- package/lib/components/stock/style/_layout.scss +27 -4
- package/lib/components/stock/style/_material-definition.scss +3 -3
- package/lib/components/tab-bar/style/_layout.scss +6 -3
- package/lib/res/dictionary/dictionaries.d.ts +142 -2
- package/lib/service/shared-event.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -10,9 +10,10 @@ export declare class PrinterSelectionComponent implements OnInit {
|
|
|
10
10
|
private _service;
|
|
11
11
|
readonly icons: typeof Icon;
|
|
12
12
|
printers: Printer[];
|
|
13
|
-
|
|
13
|
+
set defaultPrinterName(printerName: string);
|
|
14
14
|
showClass(): boolean;
|
|
15
15
|
showPrinterList: boolean;
|
|
16
|
+
private _defaultPrinterName;
|
|
16
17
|
constructor(sendMethodService: SendMethodService, iconService: IconCacheService, _service: SharedService);
|
|
17
18
|
ngOnInit(): void;
|
|
18
19
|
handlePrinterClicked(printer: Printer): void;
|
|
@@ -10,7 +10,7 @@ export declare class SendMethodPrinterComponent {
|
|
|
10
10
|
iconCacheService: IconCacheService;
|
|
11
11
|
showClass(): boolean;
|
|
12
12
|
printerList: Printer[];
|
|
13
|
-
|
|
13
|
+
defaultPrinterName: string;
|
|
14
14
|
layouts: ReportLayoutSelectionPrint[];
|
|
15
15
|
isPrinterLayoutsEnabled: boolean;
|
|
16
16
|
isAdditionalDocEnabled: boolean;
|
|
@@ -19,6 +19,7 @@ export declare class SendMethodPrinterComponent {
|
|
|
19
19
|
additionalFileName: string;
|
|
20
20
|
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
21
21
|
showFilePreview: EventEmitter<void>;
|
|
22
|
+
private _defaultPrinter;
|
|
22
23
|
protected readonly icons: typeof Icon;
|
|
23
24
|
constructor(sendMethodService: SendMethodService, iconCacheService: IconCacheService);
|
|
24
25
|
handleDefaultPrinterUserChange(checked: boolean): void;
|
|
@@ -34,7 +34,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
34
34
|
reportingDocumentPdfRequest: ReportingDocumentPdfBaseRequest;
|
|
35
35
|
emailLayouts: ReportLayoutSelectionEmail[];
|
|
36
36
|
printLayouts: ReportLayoutSelectionPrint[];
|
|
37
|
-
|
|
37
|
+
defaultPrinterName: string;
|
|
38
38
|
headerTitle: string;
|
|
39
39
|
emailAddresses: string[];
|
|
40
40
|
defaultSendMethod: string;
|
|
@@ -2,10 +2,13 @@ import { StockHistoryBo } from '@colijnit/articleapi/build/model/stock-history.b
|
|
|
2
2
|
import { Icon } from '../../../../enum/icon.enum';
|
|
3
3
|
import { BaseStockComponent } from '../../base/base-stock.component';
|
|
4
4
|
import { StockService } from '../../../../service/stock.service';
|
|
5
|
+
import { SharedEventService } from "../../../../service/shared-event.service";
|
|
5
6
|
export declare class AllocationStockHistoryComponent extends BaseStockComponent {
|
|
6
7
|
private _stockService;
|
|
8
|
+
sharedEventService: SharedEventService;
|
|
7
9
|
readonly icons: typeof Icon;
|
|
8
10
|
data: StockHistoryBo[];
|
|
9
|
-
constructor(_stockService: StockService);
|
|
11
|
+
constructor(_stockService: StockService, sharedEventService: SharedEventService);
|
|
10
12
|
protected getData(): Promise<void>;
|
|
13
|
+
handleTransactionNavigation(docNr: string): void;
|
|
11
14
|
}
|
|
@@ -13,6 +13,7 @@ export declare class StockLocationPopupComponent {
|
|
|
13
13
|
private _stockService;
|
|
14
14
|
private _changeDetector;
|
|
15
15
|
readonly icons: typeof Icon;
|
|
16
|
+
editingRow: boolean;
|
|
16
17
|
showConfirmationDialog: boolean;
|
|
17
18
|
newStockLine: boolean;
|
|
18
19
|
selectedArticleDetailsData: ArticleDetailsBo;
|
|
@@ -21,7 +22,8 @@ export declare class StockLocationPopupComponent {
|
|
|
21
22
|
selectedWarehouse: StockManagementWarehouses;
|
|
22
23
|
selectedLocationNo: string;
|
|
23
24
|
articleStockInfo: ArticleDetailsBo[];
|
|
24
|
-
togglePopupEvent: EventEmitter<
|
|
25
|
+
togglePopupEvent: EventEmitter<void>;
|
|
26
|
+
saveEvent: EventEmitter<boolean>;
|
|
25
27
|
updateGridData: EventEmitter<ArticleDetailsBo[]>;
|
|
26
28
|
stockLocations: StockLocation[];
|
|
27
29
|
stockStatus: StockStatus[];
|
|
@@ -61,5 +61,6 @@ export declare class StockLocationComponent extends BaseStockComponent implement
|
|
|
61
61
|
locationForDescription(locationNo: string): string;
|
|
62
62
|
protected getData(): Promise<void>;
|
|
63
63
|
private _getWarehouseLocations;
|
|
64
|
-
handleTogglePopup(
|
|
64
|
+
handleTogglePopup(): void;
|
|
65
|
+
handlePopupSave(saved: boolean): void;
|
|
65
66
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModuleScreenConfigService } from "@colijnit/corecomponents_v12";
|
|
2
|
+
import { ObjectConfiguration } from "@colijnit/ioneconnector/build/model/object-configuration";
|
|
3
|
+
import { SharedConnectorService } from "../../../service/shared-connector.service";
|
|
4
|
+
export declare class StockModuleScreenConfigService extends BaseModuleScreenConfigService {
|
|
5
|
+
private _sharedConnectorService;
|
|
6
|
+
screenModuleName: string;
|
|
7
|
+
constructor(_sharedConnectorService: SharedConnectorService);
|
|
8
|
+
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
9
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
2
|
+
import { SharedConnectorService } from "../../../service/shared-connector.service";
|
|
2
3
|
export declare class StockInformationComponent {
|
|
4
|
+
private _connectorService;
|
|
3
5
|
image: string;
|
|
4
|
-
article: ArticleExtended;
|
|
6
|
+
set article(value: ArticleExtended);
|
|
7
|
+
get article(): ArticleExtended;
|
|
5
8
|
articleStockState: number;
|
|
6
9
|
allAvailableStockInformation: number;
|
|
7
10
|
allTechnicalStockInformation: number;
|
|
8
11
|
economicalStock: number;
|
|
12
|
+
perceptibleStorage: number;
|
|
13
|
+
private _article;
|
|
14
|
+
constructor(_connectorService: SharedConnectorService);
|
|
15
|
+
private _prepareImage;
|
|
9
16
|
}
|
|
@@ -12,13 +12,15 @@ import { Icon } from '../../enum/icon.enum';
|
|
|
12
12
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
13
13
|
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
14
14
|
import { SharedComponentsDictionaryService } from '../../translation/shared-components-dictionary.service';
|
|
15
|
+
import { StockModuleScreenConfigService } from "./service/stock-module-screen-config.service";
|
|
15
16
|
export declare class StockComponent implements OnDestroy, OnInit {
|
|
17
|
+
iconCacheService: IconCacheService;
|
|
16
18
|
private _stockService;
|
|
17
19
|
private _optionsService;
|
|
18
20
|
private _dictionary;
|
|
19
21
|
private _changeDetector;
|
|
20
22
|
private _connector;
|
|
21
|
-
|
|
23
|
+
private _screenConfigService;
|
|
22
24
|
readonly icons: typeof Icon;
|
|
23
25
|
handleStickerClicked: EventEmitter<any>;
|
|
24
26
|
set article(articleOrGoodId: ArticleExtended | number);
|
|
@@ -42,12 +44,13 @@ export declare class StockComponent implements OnDestroy, OnInit {
|
|
|
42
44
|
allAvailableStock: number;
|
|
43
45
|
allTechnicalStock: number;
|
|
44
46
|
economicalStock: number;
|
|
47
|
+
perceptibleStorage: number;
|
|
45
48
|
showSendMethodDialog: boolean;
|
|
46
49
|
articleStockState: number;
|
|
47
50
|
warehouses: StockManagementWarehouses[];
|
|
48
51
|
private _subscriptions;
|
|
49
52
|
private _goodId;
|
|
50
|
-
constructor(_stockService: StockService, _optionsService: OptionsService, _dictionary: SharedComponentsDictionaryService, _changeDetector: ChangeDetectorRef, _connector: SharedConnectorService,
|
|
53
|
+
constructor(iconCacheService: IconCacheService, _stockService: StockService, _optionsService: OptionsService, _dictionary: SharedComponentsDictionaryService, _changeDetector: ChangeDetectorRef, _connector: SharedConnectorService, _screenConfigService: StockModuleScreenConfigService);
|
|
51
54
|
ngOnDestroy(): void;
|
|
52
55
|
ngOnInit(): void;
|
|
53
56
|
handleStockTransferClick(event: any): void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.stock-grid {
|
|
4
4
|
co-dialog {
|
|
5
5
|
.co-dialog-wrapper {
|
|
6
|
-
width:
|
|
6
|
+
width: 600px;
|
|
7
7
|
display: flex;
|
|
8
8
|
}
|
|
9
9
|
.stock-dialog-header {
|
|
@@ -19,21 +19,26 @@
|
|
|
19
19
|
}
|
|
20
20
|
.dialog-wrapper {
|
|
21
21
|
display: flex;
|
|
22
|
-
gap:
|
|
22
|
+
gap: 10px;
|
|
23
23
|
padding: 10px;
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
}
|
|
26
26
|
.stock-dialog-row {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: center;
|
|
29
|
-
gap:
|
|
29
|
+
gap: 20px;
|
|
30
30
|
> * {
|
|
31
31
|
flex: 1;
|
|
32
32
|
}
|
|
33
33
|
.stock-dialog-row-row {
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: center;
|
|
36
|
-
gap:
|
|
36
|
+
gap: 10px;
|
|
37
|
+
}
|
|
38
|
+
co-input-text, co-list-of-values, co-input-number-picker {
|
|
39
|
+
&:before {
|
|
40
|
+
box-shadow: none;
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
}
|
|
@@ -420,6 +425,10 @@
|
|
|
420
425
|
.simple-grid {
|
|
421
426
|
height: $sc-stock-grid-height;
|
|
422
427
|
overflow: auto;
|
|
428
|
+
thead {
|
|
429
|
+
position: sticky;
|
|
430
|
+
top: 0;
|
|
431
|
+
}
|
|
423
432
|
.co-grid-toolbar {
|
|
424
433
|
.co-icon {
|
|
425
434
|
border-color: #1A73E8;
|
|
@@ -520,6 +529,20 @@
|
|
|
520
529
|
font-size: 10px;
|
|
521
530
|
&:nth-child(odd) {
|
|
522
531
|
background: #f8f8fa;
|
|
532
|
+
&:hover {
|
|
533
|
+
background: #d2e3f9;
|
|
534
|
+
}
|
|
535
|
+
&.selected {
|
|
536
|
+
background: #d2e3f9;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
&:nth-child(even) {
|
|
540
|
+
&:hover {
|
|
541
|
+
background: #d2e3f9;
|
|
542
|
+
}
|
|
543
|
+
&.selected {
|
|
544
|
+
background: #d2e3f9;
|
|
545
|
+
}
|
|
523
546
|
}
|
|
524
547
|
}
|
|
525
548
|
.simple-grid-column-cell-field {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
$sc-stock-info-margin:
|
|
1
|
+
$sc-stock-info-margin: 4px 0 20px 0 !default;
|
|
2
2
|
$sc-stock-info-padding: 15px 10px !default;
|
|
3
|
-
$sc-stock-info-border-width:
|
|
4
|
-
$sc-stock-info-border-color: #
|
|
3
|
+
$sc-stock-info-border-width: 4px 0 !default;
|
|
4
|
+
$sc-stock-info-border-color: #F4F4F9 !default;
|
|
5
5
|
$sc-stock-gap: 10px !default;
|
|
6
6
|
$sc-stock-border-left: none !default;
|
|
7
7
|
$sc-stock-line-margin: 10px 0 20px 0 !default;
|