@colijnit/sharedcomponents 1.0.63 → 1.0.65

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 (34) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +258 -104
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +44 -43
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +45 -44
  6. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +210 -0
  7. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +46 -49
  8. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +4 -4
  9. package/esm2015/lib/components/stock/localization/translation.js +5 -1
  10. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +3 -4
  11. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +9 -1
  12. package/esm2015/lib/components/stock/stock.component.js +1 -2
  13. package/esm2015/lib/components/stock/stock.module.js +4 -2
  14. package/esm2015/lib/enum/icon.enum.js +2 -1
  15. package/esm2015/lib/model/icon-svg.js +2 -1
  16. package/fesm2015/colijnit-sharedcomponents.js +271 -57
  17. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  18. package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +41 -0
  19. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +3 -1
  20. package/lib/components/stock/localization/translation.d.ts +4 -0
  21. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +3 -0
  22. package/lib/components/stock/style/_layout.scss +109 -11
  23. package/lib/components/stock/style/_material-definition.scss +7 -4
  24. package/lib/components/tab-bar/style/_layout.scss +8 -3
  25. package/lib/components/tab-bar/style/_material-definition.scss +6 -6
  26. package/lib/enum/icon.enum.d.ts +1 -0
  27. package/package.json +6 -6
  28. package/3rdpartylicenses.txt +0 -1200
  29. package/favicon.ico +0 -0
  30. package/index.html +0 -12
  31. package/main.b63cf8c6791cb3e37f3c.js +0 -1
  32. package/polyfills.907fe9d1887c5de17993.js +0 -1
  33. package/runtime.8aac21847ed3d3829cca.js +0 -1
  34. package/styles.6807e7b997183dacbe3b.css +0 -1
@@ -0,0 +1,41 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+ import { IconCacheService } from "../../../../../../service/icon-cache.service";
3
+ import { Icon } from "../../../../../../enum/icon.enum";
4
+ import { StockService } from "../../../../../../service/stock.service";
5
+ import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
6
+ import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
7
+ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
8
+ import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
9
+ import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
10
+ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
11
+ export declare class StockLocationPopupComponent implements OnInit, OnDestroy {
12
+ iconCacheService: IconCacheService;
13
+ private _stockService;
14
+ private _changeDetector;
15
+ readonly icons: typeof Icon;
16
+ showConfirmationDialog: boolean;
17
+ newStockLine: boolean;
18
+ selectedArticleDetailsData: ArticleDetailsBo;
19
+ articleFlat: ArticleFlat;
20
+ articleDetailsInformation: ArticleStockManagement;
21
+ selectedWarehouse: StockManagementWarehouses;
22
+ selectedLocationNo: string;
23
+ articleStockInfo: ArticleDetailsBo[];
24
+ togglePopupEvent: EventEmitter<boolean>;
25
+ stockLocations: StockLocation[];
26
+ stockStatus: StockStatus[];
27
+ constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
28
+ ngOnInit(): void;
29
+ statusForId(id: number): StockStatus;
30
+ handleStockStatusChange(status: StockStatus): void;
31
+ handleStockStatusRemarkChange(remark: string): void;
32
+ amountInStockChanged(data: any): void;
33
+ disabled(): boolean;
34
+ handleOkClick(): void;
35
+ ngOnDestroy(): void;
36
+ togglePopup(): void;
37
+ getStockLocations(): void;
38
+ locationForNumber(number: string): StockLocation;
39
+ locationChanged(event: StockLocation): void;
40
+ handleStockChange(): void;
41
+ }
@@ -26,6 +26,7 @@ export declare class StockLocationComponent implements OnInit, OnDestroy {
26
26
  selectedWarehouse: StockManagementWarehouses;
27
27
  articleDetails: ArticleDetailsBo;
28
28
  showConfirmationDialog: boolean;
29
+ newStockLine: boolean;
29
30
  showConfirmStockRow: boolean;
30
31
  articleDetailsInformation: ArticleStockManagement;
31
32
  stockLocations: StockLocation[];
@@ -41,7 +42,8 @@ export declare class StockLocationComponent implements OnInit, OnDestroy {
41
42
  amountInStockChanged(data: any): void;
42
43
  openSendMethodDialog(data: any): void;
43
44
  handleStockTransferClick(event: any): void;
44
- onOkClickSendLocations(): void;
45
+ onOkClickSendLocations(row: ArticleDetailsBo): void;
46
+ handleAddRow(): void;
45
47
  handleOkClick(): void;
46
48
  handleStockStatusChange(status: StockStatus): void;
47
49
  handleStockStatusRemarkChange(remark: string): void;
@@ -6,12 +6,14 @@ export declare class Translation {
6
6
  AMOUNT_AVAILABLE?: string;
7
7
  AMOUNT_IN_STOCK?: string;
8
8
  AMOUNT_LATER_AVAILABLE?: string;
9
+ ARTICLE_NUMBER?: string;
9
10
  AVAILABILITY?: string;
10
11
  AVAILABLE_STOCK?: string;
11
12
  BACK_TO_STOCK_LINES?: string;
12
13
  BATCH?: string;
13
14
  BATCH_NO?: string;
14
15
  CANCEL?: string;
16
+ CHANGE_STOCK_LINE?: string;
15
17
  CHOICES?: string;
16
18
  CONFIRM_STOCK_CHANGE?: string;
17
19
  CUSTOMER?: string;
@@ -32,7 +34,9 @@ export declare class Translation {
32
34
  MUTATION_DATE?: string;
33
35
  MUTATION_TIME?: string;
34
36
  MUTATION_TYPE?: string;
37
+ NEW_STOCK_LINE?: string;
35
38
  OK?: string;
39
+ OPEN_DETAILS?: string;
36
40
  ORDER?: string;
37
41
  ORDER_COMMISSION?: string;
38
42
  ORDER_STOCK?: string;
@@ -13,6 +13,7 @@ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-detai
13
13
  import { LocalizeService } from '../../../localization/localize.service';
14
14
  import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
15
15
  import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
16
+ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
16
17
  export declare class StockTabsComponent implements OnInit {
17
18
  private _stockService;
18
19
  private _localizeService;
@@ -24,6 +25,7 @@ export declare class StockTabsComponent implements OnInit {
24
25
  warehouses: StockManagementWarehouses[];
25
26
  readonly transferIconClicked: EventEmitter<ArticleStockBo>;
26
27
  readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
28
+ stockLocations: StockLocation[];
27
29
  selectedLocationNo: string;
28
30
  stockHistory: StockHistoryBo[];
29
31
  orderSupplyStockHistory: StockHistoryBo[];
@@ -51,6 +53,7 @@ export declare class StockTabsComponent implements OnInit {
51
53
  getOrderData(): void;
52
54
  getStockPrognose(warehouseNo: number): void;
53
55
  handleWarehouseSelected(event: StockManagementWarehouses): void;
56
+ getStockLocations(): void;
54
57
  getStockData(warehouse: StockManagementWarehouses): void;
55
58
  wareHouseForCode(code: number): StockManagementWarehouses;
56
59
  }
@@ -4,31 +4,47 @@
4
4
  co-dialog {
5
5
  .co-dialog-wrapper {
6
6
  width: 500px;
7
- height: 350px;
8
7
  display: flex;
9
8
  }
10
-
9
+ .stock-dialog-header {
10
+ font-weight: bold;
11
+ margin-bottom: 10px;
12
+ display: block;
13
+ }
11
14
  .header-wrapper {
12
15
  span {
13
16
  font-weight: bold;
14
17
  }
15
-
16
18
  padding: 1em;
17
19
  }
18
-
19
20
  .dialog-wrapper {
20
21
  display: flex;
21
- gap: 1em;
22
- padding: 1em;
22
+ gap: 5px;
23
+ padding: 10px;
23
24
  flex-direction: column;
24
25
  }
26
+ .stock-dialog-row {
27
+ display: flex;
28
+ align-items: center;
29
+ gap: 5px;
30
+ > * {
31
+ flex: 1;
32
+ }
33
+ .stock-dialog-row-row {
34
+ display: flex;
35
+ align-items: center;
36
+ gap: 5px;
37
+ }
38
+ }
25
39
  }
26
40
  }
27
41
 
28
42
  .stock-info-container {
29
- max-width: $sc-stock-info-container-width;
43
+ max-width: $sc-stock-info-container-max-width;
44
+ width: $sc-stock-info-container-width;
30
45
  padding: $sc-stock-info-container-padding;
31
46
  height: $sc-stock-info-container-height;
47
+ position: relative;
32
48
  }
33
49
 
34
50
  .stock-info {
@@ -37,6 +53,9 @@
37
53
  display: inline-flex;
38
54
  width: $sc-stock-info-width;
39
55
  gap: $sc-stock-info-gap;
56
+ border-width: $sc-stock-info-border-width;
57
+ border-color: $sc-stock-info-border-color;
58
+ border-style: solid;
40
59
  }
41
60
 
42
61
  .stock-info-row {
@@ -51,7 +70,9 @@
51
70
  .stock-image {
52
71
  height: $sc-stock-image-height;
53
72
  margin-right: $sc-stock-image-width;
54
-
73
+ .stock-image {
74
+ margin-right: 0;
75
+ }
55
76
  .no-image-wrapper {
56
77
  height: $sc-stock-image-height;
57
78
  }
@@ -63,11 +84,22 @@
63
84
 
64
85
  .stock-status {
65
86
  display: grid;
87
+ position: relative;
66
88
  }
67
89
 
68
90
  .stock-info > div:not(:first-child) {
69
- padding: 0 10px;
91
+ padding: 0 0 0 30px;
70
92
  border-left: $sc-stock-border-left;
93
+ &:before {
94
+ content: '';
95
+ height: 30px;
96
+ width: 1px;
97
+ background: #DCE4EA;
98
+ position: absolute;
99
+ left: 0;
100
+ top: 50%;
101
+ transform: translateY(-50%);
102
+ }
71
103
  }
72
104
 
73
105
  .stock-line {
@@ -331,6 +363,7 @@
331
363
  .co-button {
332
364
  height: 30px;
333
365
  padding: 0 10px;
366
+ background-color: #1A73E8;
334
367
  .co-icon {
335
368
  height: 16px;
336
369
  width: 16px;
@@ -340,6 +373,7 @@
340
373
  }
341
374
  .label {
342
375
  margin: 0 7px;
376
+ color: #FFF;
343
377
  }
344
378
  }
345
379
  }
@@ -370,11 +404,35 @@
370
404
  .simple-grid {
371
405
  height: $sc-stock-grid-height;
372
406
  overflow: auto;
407
+ .co-grid-toolbar {
408
+ .co-icon {
409
+ border-color: #1A73E8;
410
+ width: 38px;
411
+ height: 28px;
412
+ padding: 5px;
413
+ border-radius: 0;
414
+ svg {
415
+ fill: #1A73E8;
416
+ height: auto;
417
+ width: auto;
418
+ }
419
+ &:hover {
420
+ background: #1A73E8;
421
+ svg {
422
+ fill: #FFF;
423
+ }
424
+ }
425
+ }
426
+ }
373
427
  }
374
428
 
375
429
  .location-link {
376
430
  cursor: pointer;
377
- color: $sc-color-action;
431
+ padding: 7px 10px;
432
+ text-align: center;
433
+ color: #FFFFFF;
434
+ background: $sc-color-action;
435
+ border-radius: 3px;
378
436
  }
379
437
 
380
438
  .co-dialog-wrapper {
@@ -383,6 +441,7 @@
383
441
 
384
442
  .stock-label {
385
443
  font-size: $sc-font-size-small;
444
+ align-self: center;
386
445
  }
387
446
 
388
447
  .stock-span {
@@ -417,5 +476,44 @@
417
476
  }
418
477
  }
419
478
 
420
- }
479
+ .simple-grid-column-header {
480
+ border-width: 0;
481
+ }
482
+ .simple-grid-row {
483
+ border-width: 0;
484
+ border: none;
485
+ height: 45px;
486
+ font-size: 10px;
487
+ &:nth-child(odd) {
488
+ background: #f8f8fa;
489
+ }
490
+ }
491
+ .simple-grid-column-cell-field {
492
+ border-width: 1px;
493
+ border-radius: 0;
494
+ padding: 5px 10px;
495
+ border-color: #DCE4EA;
496
+ }
497
+ .simple-grid-column-header-label {
498
+ border-width: 0 0 1px 0;
499
+ }
500
+ .co-simple-grid-cell {
501
+ .menu-icon {
502
+ cursor: pointer;
503
+ width: 24px;
504
+ height: 24px;
505
+ }
506
+ .stock-amount {
507
+ display: flex;
508
+ gap: 10px;
509
+ align-items: center;
510
+ cursor: pointer;
511
+ .menu-icon {
512
+ width: 14px;
513
+ height: 14px;
514
+ }
515
+ }
516
+ }
517
+ }
518
+
421
519
  }
@@ -1,7 +1,9 @@
1
1
  $sc-stock-info-margin: 10px 0 20px 0 !default;
2
- $sc-stock-info-padding: 0 10px !default;
2
+ $sc-stock-info-padding: 15px 10px !default;
3
+ $sc-stock-info-border-width: 1px 0 !default;
4
+ $sc-stock-info-border-color: #CCCCCC !default;
3
5
  $sc-stock-gap: 10px !default;
4
- $sc-stock-border-left: solid 1px lightgray !default;
6
+ $sc-stock-border-left: none !default;
5
7
  $sc-stock-line-margin: 10px 0 20px 0 !default;
6
8
  $sc-stock-line-font-weight: bold !default;
7
9
  $sc-stock-simple-grid-header-fontsize: 14px !default;
@@ -13,8 +15,9 @@ $sc-stock-tab-link-buttons-active-color: $sc-color-action !default;
13
15
  $sc-stock-tab-link-buttons-pointer: pointer !default;
14
16
  $sc-stock-grid-margin: 0 0 0 0 !default;
15
17
  $sc-stock-simple-grid-column-header-wrapper-border-bottom: 1px solid black !default;
16
- $sc-stock-info-container-width: 100% !default;
17
- $sc-stock-info-container-padding: 0px !default;
18
+ $sc-stock-info-container-max-width: 100% !default;
19
+ $sc-stock-info-container-width: 1000px !default;
20
+ $sc-stock-info-container-padding: 30px 0 0 0 !default;
18
21
  $sc-stock-info-container-height: 100% !default;
19
22
  $sc-stock-image-height: 50px !default;
20
23
  $sc-stock-grid-height: 300px !default;
@@ -6,6 +6,9 @@
6
6
  font-size: $sc-font-size;
7
7
  gap: $sc-tab-bar-gap;
8
8
  padding: $sc-tab-bar-padding;
9
+ position: absolute;
10
+ top: 10px;
11
+ left: 0;
9
12
  button {
10
13
  margin: $sc-tab-bar-button-margin;
11
14
  padding: $sc-tab-bar-button-padding;
@@ -16,7 +19,7 @@
16
19
  user-select: none;
17
20
  font-size: $sc-font-size;
18
21
  font-family: $sc-font-family;
19
-
22
+ border-bottom: 2px solid transparent;
20
23
  span {
21
24
  font-size: $sc-font-size;
22
25
  text-align: center;
@@ -26,6 +29,7 @@
26
29
 
27
30
  &.active {
28
31
  background-color: white;
32
+ border-bottom: 2px solid #1A73E8;
29
33
  }
30
34
  }
31
35
  }
@@ -41,7 +45,7 @@
41
45
  .tab-bar-wrapper {
42
46
  display: grid;
43
47
  grid-template-columns: 15% 70% 15%;
44
- margin: 20px 0;
48
+ margin: 5px 0;
45
49
  }
46
50
 
47
51
  .secondary-tab-bar {
@@ -61,7 +65,7 @@
61
65
  user-select: none;
62
66
  font-size: $sc-font-size;
63
67
  font-family: $sc-font-family;
64
-
68
+ border-bottom: 2px solid transparent;
65
69
  span {
66
70
  font-size: $sc-font-size;
67
71
  text-align: center;
@@ -71,6 +75,7 @@
71
75
 
72
76
  &.active {
73
77
  background-color: white;
78
+ border-bottom: 2px solid #1A73E8;
74
79
  }
75
80
  }
76
81
  }
@@ -1,6 +1,6 @@
1
- $sc-tab-bar-border-radius: 5px !default;
2
- $sc-tab-bar-background-color: #F5F5FC !default;
3
- $sc-tab-bar-gap: 15px !default;
4
- $sc-tab-bar-padding: 0 15px !default;
5
- $sc-tab-bar-button-padding: 5px !default;
6
- $sc-tab-bar-button-margin: 8px !default;
1
+ $sc-tab-bar-border-radius: 0 !default;
2
+ $sc-tab-bar-background-color: transparent !default;
3
+ $sc-tab-bar-gap: 25px !default;
4
+ $sc-tab-bar-padding: 0 !default;
5
+ $sc-tab-bar-button-padding: 5px 0 9px 0 !default;
6
+ $sc-tab-bar-button-margin: 0 !default;
@@ -20,6 +20,7 @@ export declare enum Icon {
20
20
  DeleteLeftRegular = "delete_left_regular",
21
21
  DeliveryTruck = "delivery_truck",
22
22
  Dropzone = "dropzone",
23
+ EditPenRegular = "edit_pen_regular",
23
24
  Email = "email",
24
25
  EnvelopeRegular = "envelope_regular",
25
26
  EyeRegular = "eye_regular",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
@@ -9,11 +9,11 @@
9
9
  "peerDependencies": {
10
10
  "@angular/common": ">=12.2.0",
11
11
  "@angular/core": ">=12.2.0",
12
- "@colijnit/articleapi": ">=1.0.38",
13
- "@colijnit/mainapi": ">=1.0.36",
14
- "@colijnit/corecomponents_v12": ">=12.2.24",
15
- "@colijnit/ioneconnector": ">=3.1.23",
16
- "@colijnit/sharedapi": ">=1.0.19",
12
+ "@colijnit/articleapi": ">=1.0.39",
13
+ "@colijnit/mainapi": ">=1.0.38",
14
+ "@colijnit/corecomponents_v12": ">=12.2.26",
15
+ "@colijnit/ioneconnector": ">=3.1.24",
16
+ "@colijnit/sharedapi": ">=1.0.20",
17
17
  "pdf-lib": ">=1.17.1",
18
18
  "pdfjs-dist": ">=3.8.162",
19
19
  "rxjs": ">=7.4.0",