@colijnit/sharedcomponents 259.1.1 → 259.1.3

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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from "@angular/core";
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
3
3
  import { IconCacheService } from "../../../../service/icon-cache.service";
4
4
  import { Icon } from "../../../../enum/icon.enum";
@@ -12,6 +12,7 @@ import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
12
12
  export declare class OrderTabComponent extends BaseStockComponent {
13
13
  iconCacheService: IconCacheService;
14
14
  private _stockService;
15
+ private _changeDetector;
15
16
  readonly icons: typeof Icon;
16
17
  stockLocations: StockLocation[];
17
18
  showStockTransfer: boolean;
@@ -24,15 +25,17 @@ export declare class OrderTabComponent extends BaseStockComponent {
24
25
  showStockTransferChange: EventEmitter<boolean>;
25
26
  handleTransactionClick: EventEmitter<any>;
26
27
  data: ArticleTransactionBo[];
27
- selectedRow: ArticleDetailsBo | null;
28
+ selectedRow: ArticleTransactionBo | null;
28
29
  articleDetails: ArticleDetailsBo;
29
30
  showSendMethodDialog: boolean;
30
- constructor(iconCacheService: IconCacheService, _stockService: StockService);
31
+ constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
31
32
  openSendMethodDialog(data: any): void;
32
- handleStockTransferClick(event: ArticleDetailsBo): void;
33
- onRowSelected(row: ArticleDetailsBo): void;
34
- onShowStockTransferChange(show: boolean): void;
33
+ handleStockTransferClick(): void;
34
+ onRowSelected(row: ArticleTransactionBo): void;
35
+ onShowStockTransferChange(update: boolean): void;
35
36
  protected getData(): Promise<void>;
36
37
  handleTransactionNavigationClick(event: Event, transNr: string): void;
38
+ updateData(): void;
37
39
  handleTransactionNavigation(transNr: string): void;
40
+ getGridData(): void;
38
41
  }
@@ -0,0 +1,59 @@
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { PrintStockStickers } from '@colijnit/articleapi/build/model/print-stock-stickers';
3
+ import { StockService } from '../../../service/stock.service';
4
+ import { ArticleStock as ArticleStockBo } from '@colijnit/articleapi/build/model/article-stock.bo';
5
+ import { ArticleDetailsBo } from '@colijnit/articleapi/build/model/article-details.bo';
6
+ import { StockManagementWarehouses } from '@colijnit/articleapi/build/model/stock-management-warehouses.bo';
7
+ import { StockStatus } from '@colijnit/articleapi/build/model/stock-status.bo';
8
+ import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
9
+ import { IconCacheService } from '../../../service/icon-cache.service';
10
+ import { Icon } from '../../../enum/icon.enum';
11
+ import { ArticleFlat } from '@colijnit/articleapi/build/model/article-flat.bo';
12
+ import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
13
+ import { ArticleTransaction } from '@colijnit/articleapi/build/model/article-transaction.bo';
14
+ import { CoreDialogService } from '@colijnit/corecomponents_v12';
15
+ import { SharedComponentsDictionaryService } from '../../../translation/shared-components-dictionary.service';
16
+ export declare class StockTransferAllocatedComponent implements AfterViewInit {
17
+ private _stockService;
18
+ iconCacheService: IconCacheService;
19
+ private _changeDetector;
20
+ dialogService: CoreDialogService;
21
+ dict: SharedComponentsDictionaryService;
22
+ stockSticker: PrintStockStickers;
23
+ article: ArticleStockBo;
24
+ articleToTransfer: ArticleDetailsBo;
25
+ articleTransaction: ArticleTransaction;
26
+ allWarehouses: any[];
27
+ showStockTransfer: boolean;
28
+ selectedArticleDetailsData: ArticleDetailsBo;
29
+ articleFlat: ArticleFlat;
30
+ articleDetailsInformation: ArticleStockManagement;
31
+ selectedWarehouse: StockManagementWarehouses;
32
+ selectedLocationNo: string;
33
+ articleStockInfo: ArticleDetailsBo[];
34
+ stockLocations: StockLocation[];
35
+ handleClick: EventEmitter<number>;
36
+ handleStickerClicked: EventEmitter<any>;
37
+ updateGridData: EventEmitter<ArticleDetailsBo[]>;
38
+ showStockTransferChange: EventEmitter<boolean>;
39
+ showSendMethodDialog: boolean;
40
+ warehouses: StockManagementWarehouses[];
41
+ articleDetails: ArticleDetailsBo[];
42
+ transferFull: boolean;
43
+ stockState: StockStatus[];
44
+ locations: StockLocation[];
45
+ stockStatus: StockStatus[];
46
+ readonly icons: typeof Icon;
47
+ constructor(_stockService: StockService, iconCacheService: IconCacheService, _changeDetector: ChangeDetectorRef, dialogService: CoreDialogService, dict: SharedComponentsDictionaryService);
48
+ ngAfterViewInit(): void;
49
+ onCloseClick(): void;
50
+ handleOkClick(articleToTransfer: ArticleDetailsBo): void;
51
+ handleSelectedWarehouse(event: StockManagementWarehouses): void;
52
+ handleSelectedLocation(event: StockLocation): void;
53
+ handleSelectedStockState(event: StockStatus): void;
54
+ handleStickerClick(): void;
55
+ getStockManagementWarehouses(): void;
56
+ getStockManagementLocations(warehouseNo: number): void;
57
+ getStockState(): void;
58
+ handleInputNumberChange(number: number): void;
59
+ }
@@ -1,7 +1,33 @@
1
1
  @include export-module('co-stock-layout') {
2
2
  .co-stock {
3
+
4
+ .transfer-quantity-allocated {
5
+ width: 100%;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ }
10
+
11
+ .stock-transfer-allocated-columns {
12
+ .stock-transfer-allocated-column {
13
+ display: flex;
14
+ flex-direction: column;
15
+ box-shadow: 2px 2px 2px 2px rgba(black, 0.2);
16
+ margin: 2em;
17
+
18
+ .bold {
19
+ font-weight: bold;
20
+ }
21
+
22
+ &.selected {
23
+ box-shadow: 2px 2px 2px 2px rgba(#4682b4, 0.4);
24
+ }
25
+ }
26
+ }
27
+
3
28
  co-stock-location {
4
29
  position: relative;
30
+
5
31
  .stock-transfer-add {
6
32
  display: flex;
7
33
  gap: 5px;
@@ -10,60 +36,74 @@
10
36
  left: 200px;
11
37
  }
12
38
  }
39
+
13
40
  .stock-transfer-add {
14
41
  display: flex;
15
42
  gap: 5px;
43
+
16
44
  co-icon {
17
45
  width: 40px;
18
46
  border: 1px solid #1A73E8;
19
47
  padding: 5px;
20
48
  cursor: pointer;
49
+
21
50
  svg {
22
51
  fill: #1A73E8;
23
52
  }
53
+
24
54
  &:hover {
25
55
  background: #1A73E8;
56
+
26
57
  svg {
27
58
  fill: #FFF;
28
59
  }
29
60
  }
30
61
  }
31
62
  }
63
+
32
64
  .stock-grid {
33
65
  co-dialog {
34
66
  .co-dialog-wrapper {
35
67
  width: 600px;
36
68
  display: flex;
37
69
  }
70
+
38
71
  .stock-dialog-header {
39
72
  font-weight: bold;
40
73
  margin-bottom: 10px;
41
74
  display: block;
42
75
  }
76
+
43
77
  .header-wrapper {
44
78
  span {
45
79
  font-weight: bold;
46
80
  }
81
+
47
82
  padding: 1em;
48
83
  }
84
+
49
85
  .dialog-wrapper {
50
86
  display: flex;
51
87
  gap: 10px;
52
88
  padding: 10px;
53
89
  flex-direction: column;
54
90
  }
91
+
55
92
  .stock-dialog-row {
56
93
  display: flex;
57
94
  align-items: center;
58
95
  gap: 20px;
96
+
59
97
  > * {
60
98
  flex: 1;
61
99
  }
100
+
62
101
  .stock-dialog-row-row {
63
102
  display: flex;
64
103
  align-items: center;
65
104
  gap: 10px;
66
105
  }
106
+
67
107
  co-input-text, co-list-of-values, co-input-number-picker {
68
108
  &:before {
69
109
  box-shadow: none;
@@ -104,9 +144,11 @@
104
144
  .stock-image {
105
145
  height: $sc-stock-image-height;
106
146
  margin-right: $sc-stock-image-width;
147
+
107
148
  .stock-image {
108
149
  margin-right: 0;
109
150
  }
151
+
110
152
  .no-image-wrapper {
111
153
  height: $sc-stock-image-height;
112
154
  }
@@ -124,6 +166,7 @@
124
166
  .stock-info > div:not(:first-child) {
125
167
  padding: 0 0 0 30px;
126
168
  border-left: $sc-stock-border-left;
169
+
127
170
  &:before {
128
171
  content: '';
129
172
  height: 30px;
@@ -192,6 +235,7 @@
192
235
  display: flex;
193
236
  flex: 1;
194
237
  justify-content: flex-start;
238
+
195
239
  co-list-of-values {
196
240
  max-width: 190px;
197
241
  }
@@ -201,6 +245,7 @@
201
245
  display: flex;
202
246
  justify-content: flex-end;
203
247
  min-width: 190px;
248
+
204
249
  .co-list-of-values {
205
250
  .co-input-text {
206
251
  height: 100%;
@@ -235,6 +280,7 @@
235
280
  justify-content: center;
236
281
  gap: 5px;
237
282
  position: relative;
283
+
238
284
  .co-button {
239
285
  width: 100px;
240
286
  height: 36px;
@@ -285,6 +331,7 @@
285
331
  }
286
332
  }
287
333
  }
334
+
288
335
  .stock-transfer-wrapper {
289
336
  .co-dialog {
290
337
  .co-dialog-wrapper {
@@ -292,6 +339,7 @@
292
339
  max-width: 100%;
293
340
  }
294
341
  }
342
+
295
343
  co-send-method-dialog {
296
344
  .co-dialog {
297
345
  .co-dialog-wrapper {
@@ -301,6 +349,8 @@
301
349
  }
302
350
  }
303
351
  }
352
+
353
+
304
354
  .stock-transfer {
305
355
  .stock-transfer-bottom-column {
306
356
  display: flex;
@@ -310,24 +360,30 @@
310
360
  border: 1px solid #ccc;
311
361
  gap: 5px;
312
362
  margin-top: -20px;
363
+
313
364
  .transfer-bottom-row {
314
365
  display: flex;
315
366
  gap: 5px;
316
367
  }
368
+
317
369
  .co-list-of-values {
318
370
  background: #f8f8fa;
371
+
319
372
  &:before {
320
373
  box-shadow: none;
321
374
  }
322
375
  }
376
+
323
377
  .co-input-text {
324
378
  background: #f8f8fa;
325
379
  width: 100%;
380
+
326
381
  &:before {
327
382
  box-shadow: none;
328
383
  }
329
384
  }
330
385
  }
386
+
331
387
  .stock-transfer-top-column {
332
388
  display: flex;
333
389
  flex-direction: row;
@@ -336,16 +392,20 @@
336
392
  gap: 10px;
337
393
  border: 1px solid #ccc;
338
394
  overflow: hidden;
395
+
339
396
  .transfer-items {
340
397
  display: flex;
341
398
  flex-direction: column;
399
+
342
400
  .transfer-item {
343
401
  display: flex;
344
402
  align-items: center;
345
403
  gap: 5px;
404
+
346
405
  .item-label {
347
406
  font-weight: 600;
348
407
  }
408
+
349
409
  .item-value {
350
410
  display: -webkit-box;
351
411
  -webkit-line-clamp: 1;
@@ -355,12 +415,15 @@
355
415
  }
356
416
  }
357
417
  }
418
+
358
419
  .transfer-quantity {
359
420
  position: relative;
421
+
360
422
  .co-input-number-picker {
361
423
  height: 30px;
362
424
  max-width: 150px;
363
425
  }
426
+
364
427
  span {
365
428
  position: absolute;
366
429
  text-transform: lowercase;
@@ -369,12 +432,14 @@
369
432
  }
370
433
  }
371
434
  }
435
+
372
436
  .transfer-arrow-wrapper {
373
437
  display: flex;
374
438
  align-items: center;
375
439
  flex-direction: column;
376
440
  position: relative;
377
441
  top: -25px;
442
+
378
443
  span.half-circle {
379
444
  width: 50px;
380
445
  height: 25px;
@@ -386,9 +451,11 @@
386
451
  background-color: #f8f8fa;
387
452
  }
388
453
  }
454
+
389
455
  .stock-transfer-columns {
390
456
  display: flex;
391
457
  flex-direction: column;
458
+
392
459
  .icon-wrapper {
393
460
  display: flex;
394
461
  flex-direction: column;
@@ -402,28 +469,34 @@
402
469
  background: #f5f5fc;
403
470
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.3);
404
471
  top: -15px;
472
+
405
473
  co-icon {
406
474
  height: 20px;
407
475
  width: 20px;
408
476
  }
409
477
  }
410
478
  }
479
+
411
480
  .transfer-sticker-buttons {
412
481
  display: flex;
413
482
  width: 100%;
414
483
  justify-content: flex-end;
415
484
  margin-top: 5px;
485
+
416
486
  .co-button {
417
487
  height: 30px;
418
488
  padding: 0 10px;
419
489
  background-color: #1A73E8;
490
+
420
491
  .co-icon {
421
492
  height: 16px;
422
493
  width: 16px;
494
+
423
495
  svg {
424
496
  fill: #FFFFFF;
425
497
  }
426
498
  }
499
+
427
500
  .label {
428
501
  margin: 0 7px;
429
502
  color: #FFF;
@@ -457,10 +530,12 @@
457
530
  .simple-grid {
458
531
  height: $sc-stock-grid-height;
459
532
  overflow: auto;
533
+
460
534
  thead {
461
535
  position: sticky;
462
536
  top: 0;
463
537
  }
538
+
464
539
  .co-grid-toolbar {
465
540
  .co-icon {
466
541
  border-color: #1A73E8;
@@ -468,13 +543,16 @@
468
543
  height: 28px;
469
544
  padding: 5px;
470
545
  border-radius: 0;
546
+
471
547
  svg {
472
548
  fill: #1A73E8;
473
549
  height: auto;
474
550
  width: auto;
475
551
  }
552
+
476
553
  &:hover {
477
554
  background: #1A73E8;
555
+
478
556
  svg {
479
557
  fill: #FFF;
480
558
  }
@@ -505,45 +583,56 @@
505
583
  font-size: $sc-font-size;
506
584
  align-self: center;
507
585
  }
586
+
508
587
  .co-dialog {
509
588
  .dialog-content {
510
589
  overflow-x: hidden;
511
590
  }
591
+
512
592
  .co-dialog-header-title-wrapper {
513
593
  display: flex;
514
594
  align-items: center;
515
595
  gap: 10px;
596
+
516
597
  .co-icon {
517
598
  width: 20px;
518
599
  height: 20px;
519
600
  margin: 0 0 20px 0;
520
601
  }
602
+
521
603
  .co-dialog-header-title {
522
604
  font-size: 14px;
523
605
  margin: 0 0 20px 0;
524
606
  font-weight: bold;
525
607
  }
526
608
  }
609
+
527
610
  .dialog-header {
528
611
  padding: 0;
612
+
529
613
  .dialog-header-caption {
530
614
  border: none;
531
615
  margin: 0;
532
616
  }
533
617
  }
534
618
  }
619
+
535
620
  .simple-grid-table {
536
621
  position: relative;
622
+
537
623
  .simple-grid-column-header {
538
624
  border-width: 0;
625
+
539
626
  .simple-grid-column-header-wrapper {
540
627
  .simple-grid-column-header-label {
541
628
  font-size: 10px;
542
629
  }
543
630
  }
631
+
544
632
  &:hover {
545
633
  .simple-grid-column-header-wrapper {
546
634
  position: unset;
635
+
547
636
  .simple-grid-column-header-label {
548
637
  overflow: visible;
549
638
  background: #FFF;
@@ -559,56 +648,69 @@
559
648
  }
560
649
  }
561
650
  }
651
+
562
652
  .simple-grid-row {
563
653
  border-width: 0;
564
654
  border: none;
565
655
  height: 45px;
566
656
  font-size: 10px;
657
+
567
658
  &:nth-child(odd) {
568
659
  background: #f8f8fa;
660
+
569
661
  &:hover {
570
662
  background: #d2e3f9;
571
663
  }
664
+
572
665
  &.selected {
573
666
  background: #d2e3f9;
574
667
  }
575
668
  }
669
+
576
670
  &:nth-child(even) {
577
671
  &:hover {
578
672
  background: #d2e3f9;
579
673
  }
674
+
580
675
  &.selected {
581
676
  background: #d2e3f9;
582
677
  }
583
678
  }
584
679
  }
680
+
585
681
  .simple-grid-column-cell-field {
586
682
  border-width: 1px;
587
683
  border-radius: 0;
588
684
  padding: 5px 10px;
589
685
  border-color: #DCE4EA;
590
686
  gap: 5px;
687
+
591
688
  .double-data {
592
689
  display: flex;
593
690
  flex-direction: row;
594
691
  align-items: center;
595
692
  gap: 5px;
693
+
596
694
  &.link {
597
695
  gap: 10px;
598
696
  cursor: pointer;
697
+
599
698
  span {
600
699
  color: #1A73E8;
601
700
  }
701
+
602
702
  .co-icon {
603
703
  svg [fill] {
604
704
  fill: #1A73E8;
605
705
  }
606
706
  }
607
707
  }
708
+
608
709
  .co-icon {
609
710
  width: 16px;
610
711
  height: 16px;
611
712
  }
713
+
612
714
  span {
613
715
  display: -webkit-box;
614
716
  -webkit-line-clamp: 1;
@@ -619,38 +721,46 @@
619
721
  }
620
722
  }
621
723
  }
724
+
622
725
  .simple-grid-column-header-label {
623
726
  border-width: 0;
624
727
  }
728
+
625
729
  .co-simple-grid-cell {
626
730
  .menu-icon {
627
731
  cursor: pointer;
628
732
  width: 24px;
629
733
  height: 24px;
630
734
  }
735
+
631
736
  .stock-amount {
632
737
  display: flex;
633
738
  gap: 10px;
634
739
  align-items: center;
635
740
  cursor: pointer;
741
+
636
742
  .menu-icon {
637
743
  width: 14px;
638
744
  height: 14px;
639
745
  }
640
746
  }
641
747
  }
748
+
642
749
  .clickable-link {
643
750
  cursor: pointer;
644
751
  color: #1A73E8;
645
752
  text-decoration: underline;
646
753
  }
754
+
647
755
  .stock-transfer-add {
648
756
  align-items: center;
757
+
649
758
  .minimum-stock {
650
759
  position: relative;
651
760
  top: 0;
652
761
  }
653
762
  }
763
+
654
764
  .minimum-stock {
655
765
  position: absolute;
656
766
  color: #ff4141;
@@ -12241,12 +12241,15 @@ export declare class Dictionaries {
12241
12241
  BATCHJOB_NOT_RUNNING: string;
12242
12242
  BATCHJOB_STARTED_WITH_ID: string;
12243
12243
  BATCHJOB_STILL_RUNNING: string;
12244
+ BATCH_ALLOCATE_UNALLOCATED_LINES: string;
12244
12245
  BATCH_AMOUNT: string;
12245
12246
  BATCH_CANCELLED_LABEL: string;
12246
12247
  BATCH_CANCELLING: string;
12247
12248
  BATCH_FINALIZING_LABEL: string;
12248
12249
  BATCH_FINISHED: string;
12249
12250
  BATCH_FINISHED_LABEL: string;
12251
+ BATCH_GOODS_PICKED: string;
12252
+ BATCH_GOODS_TO_BE_PICKED: string;
12250
12253
  BATCH_ITEMS_ALL_SUCCESS: string;
12251
12254
  BATCH_ITEMS_UNPROCESSED: string;
12252
12255
  BATCH_ITEM_NO_TEMPLATE2: string;
@@ -17601,6 +17604,7 @@ export declare class Dictionaries {
17601
17604
  SEARCH_MODULES: string;
17602
17605
  SEARCH_NUMBER_CUSTOMER_OR_DATE: string;
17603
17606
  SEARCH_NUMBER_SUPPLIER_OR_DATE: string;
17607
+ SEARCH_NUMBER_OR_BRANCH: string;
17604
17608
  SEARCH_NUMBER_OR_CUSTOMER: string;
17605
17609
  SEARCH_NUMBER_OR_SUPPLIER: string;
17606
17610
  SEARCH_ONHOLD: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "259.1.1",
3
+ "version": "259.1.3",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",