@colijnit/sharedcomponents 1.0.39 → 1.0.41

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.
Files changed (53) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +598 -486
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +44 -41
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +45 -42
  6. package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +9 -11
  7. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +4 -2
  8. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +22 -39
  9. package/esm2015/lib/components/statusbar/statusbar-popup.component.js +29 -0
  10. package/esm2015/lib/components/statusbar/statusbar.component.js +33 -34
  11. package/esm2015/lib/components/statusbar/statusbar.module.js +14 -10
  12. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +20 -3
  13. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +3 -2
  14. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +4 -8
  15. package/esm2015/lib/components/stock/stock.component.js +17 -2
  16. package/esm2015/lib/components/stock/stock.module.js +6 -2
  17. package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +23 -0
  18. package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +19 -0
  19. package/esm2015/lib/service/shared-connector.service.js +17 -1
  20. package/esm2015/lib/service/stock.service.js +6 -1
  21. package/fesm2015/colijnit-sharedcomponents.js +522 -419
  22. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  23. package/lib/components/screen-config-generator/style/_layout.scss +65 -0
  24. package/lib/components/screen-config-generator/style/_material-definition.scss +0 -0
  25. package/lib/components/screen-config-generator/style/_theme.scss +4 -0
  26. package/lib/components/screen-config-generator/style/material.scss +4 -0
  27. package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +1 -1
  28. package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +2 -0
  29. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +4 -7
  30. package/lib/components/statusbar/statusbar-popup.component.d.ts +7 -0
  31. package/lib/components/statusbar/statusbar.component.d.ts +9 -8
  32. package/lib/components/statusbar/style/_layout.scss +12 -28
  33. package/lib/components/statusbar/style/_theme.scss +5 -6
  34. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +3 -0
  35. package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -2
  36. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +1 -2
  37. package/lib/components/stock/stock.component.d.ts +8 -2
  38. package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +4 -0
  39. package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +2 -0
  40. package/lib/components/stock-statusbar/style/_layout.scss +25 -0
  41. package/lib/components/stock-statusbar/style/_material-definition.scss +0 -0
  42. package/lib/components/stock-statusbar/style/_theme.scss +0 -0
  43. package/lib/components/stock-statusbar/style/material.scss +4 -0
  44. package/lib/service/shared-connector.service.d.ts +1 -0
  45. package/lib/service/stock.service.d.ts +1 -0
  46. package/package.json +14 -10
  47. package/3rdpartylicenses.txt +0 -1198
  48. package/favicon.ico +0 -0
  49. package/index.html +0 -12
  50. package/main.87c7441f408aa46a818e.js +0 -1
  51. package/polyfills.4a44032b137d291298c3.js +0 -1
  52. package/runtime.8aac21847ed3d3829cca.js +0 -1
  53. package/styles.24f196f586ef43bbe450.css +0 -110
@@ -0,0 +1,65 @@
1
+ @include export-module('cc-screen-config-generator-layout') {
2
+ .co-screen-config-generator {
3
+ padding: 20px;
4
+ display: flex;
5
+ overflow: auto;
6
+ height: 93vh;
7
+
8
+ .category-wrapper {
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ .header-wrapper {
13
+ display: flex;
14
+ column-gap: 30px;
15
+ align-items: center;
16
+ height: 30px;
17
+ margin-top: 15px;
18
+
19
+ h3 {
20
+ margin-top: 20px;
21
+ }
22
+ }
23
+
24
+ co-button {
25
+ width: 20px;
26
+ height: 20px;
27
+ justify-content: center;
28
+ }
29
+
30
+ .header-container {
31
+ padding: 13px;
32
+ border: 2px solid #dde5eb;
33
+ border-radius: 11px;
34
+ margin-top: 10px;
35
+ min-width: 450px;
36
+ }
37
+
38
+ .rubrics-wrapper {
39
+ display: flex;
40
+ column-gap: 20px;
41
+ width: max-content;
42
+ }
43
+
44
+ .fields-wrapper {
45
+ display: flex;
46
+ column-gap: 30px;
47
+ align-items: center;
48
+ }
49
+
50
+ .category-content-wrapper {
51
+ display: flex;
52
+
53
+ .rubric-wrapper {
54
+ display: flex;
55
+ flex-direction: column;
56
+
57
+ .inputs-wrapper {
58
+ display: flex;
59
+ column-gap: 15px;
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-screen-config-generator-theme') {
2
+ .co-screen-config-generator {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -9,8 +9,8 @@ export declare class PrinterSelectionComponent implements OnInit {
9
9
  iconService: IconCacheService;
10
10
  private _service;
11
11
  readonly icons: typeof Icon;
12
- showClass(): boolean;
13
12
  printers: Printer[];
13
+ showClass(): boolean;
14
14
  showPrinterList: boolean;
15
15
  constructor(sendMethodService: SendMethodService, iconService: IconCacheService, _service: SharedService);
16
16
  ngOnInit(): void;
@@ -1,7 +1,9 @@
1
1
  import { SendMethodService } from '../../service/send-method.service';
2
2
  import { ReportLayoutSelectionPrint } from '@colijnit/mainapi/build/model/report-layout-selection-print.bo';
3
+ import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
3
4
  export declare class SendMethodPrinterComponent {
4
5
  sendMethodService: SendMethodService;
6
+ printerList: Printer[];
5
7
  layouts: ReportLayoutSelectionPrint[];
6
8
  showClass(): boolean;
7
9
  constructor(sendMethodService: SendMethodService);
@@ -1,8 +1,6 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Icon } from '../../enum/icon.enum';
3
3
  import { IconCacheService } from '../../service/icon-cache.service';
4
- import { OptionsService } from '../../service/options.service';
5
- import { DictionaryService } from '../../service/dictionary.service';
6
4
  import { SharedService } from '../../service/shared.service';
7
5
  import { ReportLayoutSelectionEmail } from '@colijnit/mainapi/build/model/report-layout-selection-email.bo';
8
6
  import { ReportLayoutSelectionPrint } from '@colijnit/mainapi/build/model/report-layout-selection-print.bo';
@@ -12,11 +10,10 @@ import { ReportingDocumentPdfBaseRequest } from '@colijnit/mainapi/build/model/r
12
10
  import { SendMethodService } from './service/send-method.service';
13
11
  import { SendMethod } from '../../model/send-method';
14
12
  import { SendMethodType } from '@colijnit/mainapi/build/enum/send-method-type.enum';
13
+ import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
15
14
  export declare const sendMethodsWithIcon: SendMethod[];
16
15
  export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
17
16
  iconCacheService: IconCacheService;
18
- private _optionsService;
19
- private _dictionary;
20
17
  private _changeDetector;
21
18
  private _sharedService;
22
19
  private _sendMethodService;
@@ -29,6 +26,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
29
26
  emailTemplateItems: ElementRef;
30
27
  smsItems: ElementRef;
31
28
  webServiceItems: ElementRef;
29
+ printerList: Printer[];
32
30
  reportingDocumentPrintRequest: ReportingDocumentPrintBaseRequest;
33
31
  reportingDocumentEmailRequest: ReportingDocumentEmailBaseRequest;
34
32
  reportingDocumentPdfRequest: ReportingDocumentPdfBaseRequest;
@@ -59,13 +57,12 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
59
57
  showEmailTemplate: boolean;
60
58
  showWebservice: boolean;
61
59
  private _subscriptions;
62
- constructor(iconCacheService: IconCacheService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef, _sharedService: SharedService, _sendMethodService: SendMethodService);
60
+ constructor(iconCacheService: IconCacheService, _changeDetector: ChangeDetectorRef, _sharedService: SharedService, _sendMethodService: SendMethodService);
63
61
  ngOnInit(): void;
64
62
  ngOnDestroy(): void;
65
63
  handleSignatureStart(): void;
66
64
  handleSendMethodClick(sendMethod: SendMethod): void;
65
+ private _initDefaultSendMethod;
67
66
  private _selectDefaultSendMethod;
68
67
  private _prepareVisibleMethods;
69
- private _handleSettingsLoaded;
70
- private _initConnection;
71
68
  }
@@ -0,0 +1,7 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { StatusbarData } from './statusbar.component';
3
+ export declare class StatusbarPopupComponent {
4
+ statusbarData: StatusbarData[];
5
+ parentForOverlay: ElementRef;
6
+ showClass: boolean;
7
+ }
@@ -1,4 +1,5 @@
1
- import { EventEmitter } from "@angular/core";
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { OverlayService } from '@colijnit/corecomponents_v12';
2
3
  export interface StatusbarData {
3
4
  label: string;
4
5
  percentage: number;
@@ -6,18 +7,18 @@ export interface StatusbarData {
6
7
  totalCount?: number;
7
8
  }
8
9
  export declare class StatusbarComponent {
10
+ private _elementRef;
11
+ private _overlayService;
9
12
  set statusbarData(value: StatusbarData[]);
10
13
  get statusbarData(): StatusbarData[];
11
14
  focusedStatusIndex: number;
12
15
  statusbarClick: EventEmitter<void>;
13
16
  showClass(): boolean;
14
- constructor();
15
- showPopup: boolean;
16
- popupClass: string;
17
+ handleClick(event: MouseEvent): void;
18
+ popupShowing: boolean;
17
19
  private _statusbarData;
18
- private _mouseY;
19
- private _windowHeight;
20
- onStatusbarClick(event: any): void;
21
- setPopupClass(): void;
20
+ constructor(_elementRef: ElementRef, _overlayService: OverlayService);
21
+ handleShowPopup(event: MouseEvent): void;
22
+ handleHidePopup(): void;
22
23
  adjustTooHighPercentages(): void;
23
24
  }
@@ -17,46 +17,30 @@
17
17
  justify-content: center;
18
18
  align-items: center;
19
19
  }
20
-
21
- .status-description-popup{
22
- min-height: $statusbar-popup-min-height;
23
- min-width: $statusbar-popup-min-width;
24
- max-width: $statusbar-popup-max-width;
25
- padding: $statusbar-popup-padding;
26
- border: $statusbar-popup-border;
27
- border-radius: $statusbar-popup-border-radius;
28
- z-index: $statusbar-popup-z-index;
29
-
30
- &.dropdown {
31
- position: absolute;
32
- top: $statusbar-popup-dropdown-position-top;
33
- left: 50%;
34
- transform: translate(-50%, 0);
35
- }
36
-
37
- &.dropup {
38
- position: absolute;
39
- bottom: $statusbar-popup-dropup-position-down;
40
- left: 50%;
41
- transform: translate(-50%, 0);
42
- }
43
- }
44
-
20
+ }
21
+ .co-statusbar-popup-wrapper {
22
+ position: fixed;
23
+ font-family: $statusbar-font-family;
24
+ font-size:$statusbar-font-size;
25
+ min-height: $statusbar-popup-min-height;
26
+ min-width: $statusbar-popup-min-width;
27
+ max-width: $statusbar-popup-max-width;
28
+ padding: $statusbar-popup-padding;
29
+ border: $statusbar-popup-border;
30
+ border-radius: $statusbar-popup-border-radius;
31
+ z-index: $statusbar-popup-z-index;
45
32
  .status-descriptions {
46
33
  display: flex;
47
34
  flex-direction: column;
48
-
49
35
  .status-description {
50
36
  display: flex;
51
37
  flex-direction: row;
52
38
  align-items: center;
53
-
54
39
  span {
55
40
  padding-left: $statusbar-status-description-padding-left;
56
41
  }
57
42
  }
58
43
  }
59
-
60
44
  co-linear-gauge {
61
45
  &.focused-status {
62
46
  div {
@@ -3,12 +3,11 @@
3
3
  .statusses {
4
4
  background-color: $statusbar-background-color;
5
5
  }
6
-
7
- .status-description-popup {
8
- background-color: $statusbar-background-color;
9
- border-color: $statusbar-popup-border-color;
10
- box-shadow: $statusbar-popup-border-box-shadow;
11
- }
6
+ }
7
+ .co-statusbar-popup-wrapper {
8
+ background-color: $statusbar-background-color;
9
+ border-color: $statusbar-popup-border-color;
10
+ box-shadow: $statusbar-popup-border-box-shadow;
12
11
  }
13
12
  }
14
13
 
@@ -27,12 +27,15 @@ export declare class StockLocationComponent implements OnInit {
27
27
  articleDetails: ArticleDetailsBo[];
28
28
  stockLocations: StockLocation[];
29
29
  selectedArticleDetailsData: ArticleDetailsBo;
30
+ selectedLocation: any;
30
31
  constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
31
32
  ngOnInit(): void;
32
33
  onSelectWarehouse(event: any): void;
33
34
  lockSelectedRow(row: any): void;
34
35
  onLocationDropdownClick(): void;
36
+ locationChanged(event: any): void;
35
37
  amountInStockChanged(data: any): void;
36
38
  openSendMethodDialog(data: any): void;
37
39
  handleStockTransferClick(event: any): void;
40
+ onOkClickSendLocations(): Promise<void>;
38
41
  }
@@ -1,9 +1,8 @@
1
- import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
2
1
  import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
3
2
  export declare class StockInformationComponent {
4
3
  image: string;
5
4
  article: ArticleExtended;
6
- articleStock: ArticleStockBo;
5
+ articleStockState: number;
7
6
  allAvailableStockInformation: number;
8
7
  allTechnicalStockInformation: number;
9
8
  constructor();
@@ -12,6 +12,7 @@ export declare class StockTabsComponent {
12
12
  readonly icons: typeof Icon;
13
13
  stockInformation: ArticleStockBo[];
14
14
  article: any;
15
+ warehouses: StockManagementWarehouses[];
15
16
  readonly transferIconClicked: EventEmitter<ArticleStockBo>;
16
17
  readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
17
18
  clickedLocation: string;
@@ -22,7 +23,6 @@ export declare class StockTabsComponent {
22
23
  orderAllocationStockHistory: StockHistoryBo[];
23
24
  inOrderInformation: ArticleTransactionBo[];
24
25
  orderInformation: ArticleTransactionBo[];
25
- warehouses: StockManagementWarehouses[];
26
26
  tabs: ({
27
27
  title: string;
28
28
  active: boolean;
@@ -41,6 +41,5 @@ export declare class StockTabsComponent {
41
41
  getOrderStockHistory(): Promise<void>;
42
42
  getAllocationStockHistory(): Promise<void>;
43
43
  getInOrderData(): Promise<void>;
44
- getStockManagementWarehouses(): void;
45
44
  getOrderData(): Promise<void>;
46
45
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } 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";
@@ -7,7 +7,8 @@ import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.b
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
+ import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
11
+ export declare class StockComponent implements OnDestroy, OnInit {
11
12
  stockService: StockService;
12
13
  private _optionsService;
13
14
  private _dictionary;
@@ -30,13 +31,18 @@ export declare class StockComponent implements OnDestroy {
30
31
  allAvailableStock: number;
31
32
  allTechnicalStock: number;
32
33
  showSendMethodDialog: boolean;
34
+ articleStockState: number;
35
+ warehouses: StockManagementWarehouses[];
33
36
  private _subscriptions;
34
37
  constructor(stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
35
38
  ngOnDestroy(): void;
39
+ ngOnInit(): void;
36
40
  handleStockTransferClick(event: any): void;
37
41
  handleSendMethodClick(event: any): void;
38
42
  backToStock(): void;
39
43
  getStockInformation(data: ArticleStock): Promise<void>;
44
+ getArtStockStatus(): Promise<void>;
45
+ getStockManagementWarehouses(): void;
40
46
  private _handleSettingsLoaded;
41
47
  private _initConnection;
42
48
  }
@@ -0,0 +1,4 @@
1
+ export declare class StockStatusbarComponent {
2
+ value: number;
3
+ constructor();
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare class StockStatusbarModule {
2
+ }
@@ -0,0 +1,25 @@
1
+ @include export-module('co-stock-statusbar-layout') {
2
+ .status-bar {
3
+ display: flex;
4
+ height: 20px;
5
+ width: 68px;
6
+ }
7
+
8
+ .status-bar-block {
9
+ flex: 1;
10
+ margin-right: 2px;
11
+ border-radius: 5px;
12
+ }
13
+
14
+ .red {
15
+ background-color: #e31919;
16
+ }
17
+
18
+ .orange {
19
+ background-color: orange;
20
+ }
21
+
22
+ .green {
23
+ background-color: green;
24
+ }
25
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -28,6 +28,7 @@ export declare class SharedConnectorService {
28
28
  getSendMethods(): Promise<SendMethod[]>;
29
29
  getStockHistory(request: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
30
30
  getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
31
+ getArtStockStatus(goodId: number, branchNo?: string, requestedAmount?: number, warehouseId?: number): Promise<number>;
31
32
  getStockManagementWarehouses(): Promise<StockManagementWarehouses[]>;
32
33
  getStockManagementLocations(warehouseNo: number): Promise<StockLocation[]>;
33
34
  getArticleDetails(data: ArticleStockManagement): Promise<ArticleDetailsBo[]>;
@@ -23,6 +23,7 @@ export declare class StockService {
23
23
  getArticleDetails(data: ArticleStockManagement): Promise<ArticleDetailsBo[]>;
24
24
  updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
25
25
  getStockState(): Promise<StockStatus[]>;
26
+ getArtStockStatus(goodId: number, branchNo?: string, requestedAmount?: number, warehouseId?: number): Promise<number>;
26
27
  getStockManagementWarehouses(): Promise<StockManagementWarehouses[]>;
27
28
  getStockManagementLocations(warehouseNo: number): Promise<StockLocation[]>;
28
29
  getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
- "@angular/common": "^12.2.0",
7
- "@angular/core": "^12.2.0",
8
- "@colijnit/sharedapi": "^1.0.1",
9
- "pdf-lib": "^1.17.1",
10
- "pdfjs-dist": "^2.12.313",
11
- "rxjs": "~7.4.0",
12
- "signature_pad": "^4.0.2",
13
- "zone.js": "~0.11.4"
6
+ "@angular/common": ">=12.2.0",
7
+ "@angular/core": ">=12.2.0",
8
+ "@colijnit/articleapi": ">=1.0.17",
9
+ "@colijnit/mainapi": ">=1.0.3",
10
+ "@colijnit/corecomponents_v12": ">=12.0.103",
11
+ "@colijnit/ioneconnector": ">=2.1.10",
12
+ "@colijnit/sharedapi": ">=1.0.11",
13
+ "pdf-lib": ">=1.17.1",
14
+ "pdfjs-dist": ">=2.12.313",
15
+ "rxjs": ">=7.4.0",
16
+ "signature_pad": ">=4.0.2",
17
+ "zone.js": ">=0.11.4"
14
18
  },
15
19
  "main": "bundles/colijnit-sharedcomponents.umd.js",
16
20
  "module": "fesm2015/colijnit-sharedcomponents.js",
@@ -21,6 +25,6 @@
21
25
  "metadata": "colijnit-sharedcomponents.metadata.json",
22
26
  "sideEffects": false,
23
27
  "dependencies": {
24
- "tslib": "^2.3.0"
28
+ "tslib": ">=2.3.0"
25
29
  }
26
30
  }