@colijnit/sharedcomponents 259.1.2 → 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;
@@ -27,12 +28,14 @@ export declare class OrderTabComponent extends BaseStockComponent {
27
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
33
  handleStockTransferClick(): void;
33
34
  onRowSelected(row: ArticleTransactionBo): void;
34
- onShowStockTransferChange(show: boolean): 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
  }
@@ -48,10 +48,12 @@ export declare class StockTransferAllocatedComponent implements AfterViewInit {
48
48
  ngAfterViewInit(): void;
49
49
  onCloseClick(): void;
50
50
  handleOkClick(articleToTransfer: ArticleDetailsBo): void;
51
+ handleSelectedWarehouse(event: StockManagementWarehouses): void;
51
52
  handleSelectedLocation(event: StockLocation): void;
52
53
  handleSelectedStockState(event: StockStatus): void;
53
54
  handleStickerClick(): void;
54
55
  getStockManagementWarehouses(): void;
55
- getStockManagementLocations(): void;
56
+ getStockManagementLocations(warehouseNo: number): void;
56
57
  getStockState(): void;
58
+ handleInputNumberChange(number: number): void;
57
59
  }
@@ -10,19 +10,24 @@
10
10
 
11
11
  .stock-transfer-allocated-columns {
12
12
  .stock-transfer-allocated-column {
13
- .bold {
14
- font-weight: bold;
15
- }
16
-
17
13
  display: flex;
18
14
  flex-direction: column;
19
15
  box-shadow: 2px 2px 2px 2px rgba(black, 0.2);
20
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
+ }
21
25
  }
22
26
  }
23
27
 
24
28
  co-stock-location {
25
29
  position: relative;
30
+
26
31
  .stock-transfer-add {
27
32
  display: flex;
28
33
  gap: 5px;
@@ -31,60 +36,74 @@
31
36
  left: 200px;
32
37
  }
33
38
  }
39
+
34
40
  .stock-transfer-add {
35
41
  display: flex;
36
42
  gap: 5px;
43
+
37
44
  co-icon {
38
45
  width: 40px;
39
46
  border: 1px solid #1A73E8;
40
47
  padding: 5px;
41
48
  cursor: pointer;
49
+
42
50
  svg {
43
51
  fill: #1A73E8;
44
52
  }
53
+
45
54
  &:hover {
46
55
  background: #1A73E8;
56
+
47
57
  svg {
48
58
  fill: #FFF;
49
59
  }
50
60
  }
51
61
  }
52
62
  }
63
+
53
64
  .stock-grid {
54
65
  co-dialog {
55
66
  .co-dialog-wrapper {
56
67
  width: 600px;
57
68
  display: flex;
58
69
  }
70
+
59
71
  .stock-dialog-header {
60
72
  font-weight: bold;
61
73
  margin-bottom: 10px;
62
74
  display: block;
63
75
  }
76
+
64
77
  .header-wrapper {
65
78
  span {
66
79
  font-weight: bold;
67
80
  }
81
+
68
82
  padding: 1em;
69
83
  }
84
+
70
85
  .dialog-wrapper {
71
86
  display: flex;
72
87
  gap: 10px;
73
88
  padding: 10px;
74
89
  flex-direction: column;
75
90
  }
91
+
76
92
  .stock-dialog-row {
77
93
  display: flex;
78
94
  align-items: center;
79
95
  gap: 20px;
96
+
80
97
  > * {
81
98
  flex: 1;
82
99
  }
100
+
83
101
  .stock-dialog-row-row {
84
102
  display: flex;
85
103
  align-items: center;
86
104
  gap: 10px;
87
105
  }
106
+
88
107
  co-input-text, co-list-of-values, co-input-number-picker {
89
108
  &:before {
90
109
  box-shadow: none;
@@ -125,9 +144,11 @@
125
144
  .stock-image {
126
145
  height: $sc-stock-image-height;
127
146
  margin-right: $sc-stock-image-width;
147
+
128
148
  .stock-image {
129
149
  margin-right: 0;
130
150
  }
151
+
131
152
  .no-image-wrapper {
132
153
  height: $sc-stock-image-height;
133
154
  }
@@ -145,6 +166,7 @@
145
166
  .stock-info > div:not(:first-child) {
146
167
  padding: 0 0 0 30px;
147
168
  border-left: $sc-stock-border-left;
169
+
148
170
  &:before {
149
171
  content: '';
150
172
  height: 30px;
@@ -213,6 +235,7 @@
213
235
  display: flex;
214
236
  flex: 1;
215
237
  justify-content: flex-start;
238
+
216
239
  co-list-of-values {
217
240
  max-width: 190px;
218
241
  }
@@ -222,6 +245,7 @@
222
245
  display: flex;
223
246
  justify-content: flex-end;
224
247
  min-width: 190px;
248
+
225
249
  .co-list-of-values {
226
250
  .co-input-text {
227
251
  height: 100%;
@@ -256,6 +280,7 @@
256
280
  justify-content: center;
257
281
  gap: 5px;
258
282
  position: relative;
283
+
259
284
  .co-button {
260
285
  width: 100px;
261
286
  height: 36px;
@@ -306,6 +331,7 @@
306
331
  }
307
332
  }
308
333
  }
334
+
309
335
  .stock-transfer-wrapper {
310
336
  .co-dialog {
311
337
  .co-dialog-wrapper {
@@ -313,6 +339,7 @@
313
339
  max-width: 100%;
314
340
  }
315
341
  }
342
+
316
343
  co-send-method-dialog {
317
344
  .co-dialog {
318
345
  .co-dialog-wrapper {
@@ -333,24 +360,30 @@
333
360
  border: 1px solid #ccc;
334
361
  gap: 5px;
335
362
  margin-top: -20px;
363
+
336
364
  .transfer-bottom-row {
337
365
  display: flex;
338
366
  gap: 5px;
339
367
  }
368
+
340
369
  .co-list-of-values {
341
370
  background: #f8f8fa;
371
+
342
372
  &:before {
343
373
  box-shadow: none;
344
374
  }
345
375
  }
376
+
346
377
  .co-input-text {
347
378
  background: #f8f8fa;
348
379
  width: 100%;
380
+
349
381
  &:before {
350
382
  box-shadow: none;
351
383
  }
352
384
  }
353
385
  }
386
+
354
387
  .stock-transfer-top-column {
355
388
  display: flex;
356
389
  flex-direction: row;
@@ -359,16 +392,20 @@
359
392
  gap: 10px;
360
393
  border: 1px solid #ccc;
361
394
  overflow: hidden;
395
+
362
396
  .transfer-items {
363
397
  display: flex;
364
398
  flex-direction: column;
399
+
365
400
  .transfer-item {
366
401
  display: flex;
367
402
  align-items: center;
368
403
  gap: 5px;
404
+
369
405
  .item-label {
370
406
  font-weight: 600;
371
407
  }
408
+
372
409
  .item-value {
373
410
  display: -webkit-box;
374
411
  -webkit-line-clamp: 1;
@@ -378,12 +415,15 @@
378
415
  }
379
416
  }
380
417
  }
418
+
381
419
  .transfer-quantity {
382
420
  position: relative;
421
+
383
422
  .co-input-number-picker {
384
423
  height: 30px;
385
424
  max-width: 150px;
386
425
  }
426
+
387
427
  span {
388
428
  position: absolute;
389
429
  text-transform: lowercase;
@@ -392,12 +432,14 @@
392
432
  }
393
433
  }
394
434
  }
435
+
395
436
  .transfer-arrow-wrapper {
396
437
  display: flex;
397
438
  align-items: center;
398
439
  flex-direction: column;
399
440
  position: relative;
400
441
  top: -25px;
442
+
401
443
  span.half-circle {
402
444
  width: 50px;
403
445
  height: 25px;
@@ -409,9 +451,11 @@
409
451
  background-color: #f8f8fa;
410
452
  }
411
453
  }
454
+
412
455
  .stock-transfer-columns {
413
456
  display: flex;
414
457
  flex-direction: column;
458
+
415
459
  .icon-wrapper {
416
460
  display: flex;
417
461
  flex-direction: column;
@@ -425,28 +469,34 @@
425
469
  background: #f5f5fc;
426
470
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.3);
427
471
  top: -15px;
472
+
428
473
  co-icon {
429
474
  height: 20px;
430
475
  width: 20px;
431
476
  }
432
477
  }
433
478
  }
479
+
434
480
  .transfer-sticker-buttons {
435
481
  display: flex;
436
482
  width: 100%;
437
483
  justify-content: flex-end;
438
484
  margin-top: 5px;
485
+
439
486
  .co-button {
440
487
  height: 30px;
441
488
  padding: 0 10px;
442
489
  background-color: #1A73E8;
490
+
443
491
  .co-icon {
444
492
  height: 16px;
445
493
  width: 16px;
494
+
446
495
  svg {
447
496
  fill: #FFFFFF;
448
497
  }
449
498
  }
499
+
450
500
  .label {
451
501
  margin: 0 7px;
452
502
  color: #FFF;
@@ -480,10 +530,12 @@
480
530
  .simple-grid {
481
531
  height: $sc-stock-grid-height;
482
532
  overflow: auto;
533
+
483
534
  thead {
484
535
  position: sticky;
485
536
  top: 0;
486
537
  }
538
+
487
539
  .co-grid-toolbar {
488
540
  .co-icon {
489
541
  border-color: #1A73E8;
@@ -491,13 +543,16 @@
491
543
  height: 28px;
492
544
  padding: 5px;
493
545
  border-radius: 0;
546
+
494
547
  svg {
495
548
  fill: #1A73E8;
496
549
  height: auto;
497
550
  width: auto;
498
551
  }
552
+
499
553
  &:hover {
500
554
  background: #1A73E8;
555
+
501
556
  svg {
502
557
  fill: #FFF;
503
558
  }
@@ -528,45 +583,56 @@
528
583
  font-size: $sc-font-size;
529
584
  align-self: center;
530
585
  }
586
+
531
587
  .co-dialog {
532
588
  .dialog-content {
533
589
  overflow-x: hidden;
534
590
  }
591
+
535
592
  .co-dialog-header-title-wrapper {
536
593
  display: flex;
537
594
  align-items: center;
538
595
  gap: 10px;
596
+
539
597
  .co-icon {
540
598
  width: 20px;
541
599
  height: 20px;
542
600
  margin: 0 0 20px 0;
543
601
  }
602
+
544
603
  .co-dialog-header-title {
545
604
  font-size: 14px;
546
605
  margin: 0 0 20px 0;
547
606
  font-weight: bold;
548
607
  }
549
608
  }
609
+
550
610
  .dialog-header {
551
611
  padding: 0;
612
+
552
613
  .dialog-header-caption {
553
614
  border: none;
554
615
  margin: 0;
555
616
  }
556
617
  }
557
618
  }
619
+
558
620
  .simple-grid-table {
559
621
  position: relative;
622
+
560
623
  .simple-grid-column-header {
561
624
  border-width: 0;
625
+
562
626
  .simple-grid-column-header-wrapper {
563
627
  .simple-grid-column-header-label {
564
628
  font-size: 10px;
565
629
  }
566
630
  }
631
+
567
632
  &:hover {
568
633
  .simple-grid-column-header-wrapper {
569
634
  position: unset;
635
+
570
636
  .simple-grid-column-header-label {
571
637
  overflow: visible;
572
638
  background: #FFF;
@@ -582,56 +648,69 @@
582
648
  }
583
649
  }
584
650
  }
651
+
585
652
  .simple-grid-row {
586
653
  border-width: 0;
587
654
  border: none;
588
655
  height: 45px;
589
656
  font-size: 10px;
657
+
590
658
  &:nth-child(odd) {
591
659
  background: #f8f8fa;
660
+
592
661
  &:hover {
593
662
  background: #d2e3f9;
594
663
  }
664
+
595
665
  &.selected {
596
666
  background: #d2e3f9;
597
667
  }
598
668
  }
669
+
599
670
  &:nth-child(even) {
600
671
  &:hover {
601
672
  background: #d2e3f9;
602
673
  }
674
+
603
675
  &.selected {
604
676
  background: #d2e3f9;
605
677
  }
606
678
  }
607
679
  }
680
+
608
681
  .simple-grid-column-cell-field {
609
682
  border-width: 1px;
610
683
  border-radius: 0;
611
684
  padding: 5px 10px;
612
685
  border-color: #DCE4EA;
613
686
  gap: 5px;
687
+
614
688
  .double-data {
615
689
  display: flex;
616
690
  flex-direction: row;
617
691
  align-items: center;
618
692
  gap: 5px;
693
+
619
694
  &.link {
620
695
  gap: 10px;
621
696
  cursor: pointer;
697
+
622
698
  span {
623
699
  color: #1A73E8;
624
700
  }
701
+
625
702
  .co-icon {
626
703
  svg [fill] {
627
704
  fill: #1A73E8;
628
705
  }
629
706
  }
630
707
  }
708
+
631
709
  .co-icon {
632
710
  width: 16px;
633
711
  height: 16px;
634
712
  }
713
+
635
714
  span {
636
715
  display: -webkit-box;
637
716
  -webkit-line-clamp: 1;
@@ -642,38 +721,46 @@
642
721
  }
643
722
  }
644
723
  }
724
+
645
725
  .simple-grid-column-header-label {
646
726
  border-width: 0;
647
727
  }
728
+
648
729
  .co-simple-grid-cell {
649
730
  .menu-icon {
650
731
  cursor: pointer;
651
732
  width: 24px;
652
733
  height: 24px;
653
734
  }
735
+
654
736
  .stock-amount {
655
737
  display: flex;
656
738
  gap: 10px;
657
739
  align-items: center;
658
740
  cursor: pointer;
741
+
659
742
  .menu-icon {
660
743
  width: 14px;
661
744
  height: 14px;
662
745
  }
663
746
  }
664
747
  }
748
+
665
749
  .clickable-link {
666
750
  cursor: pointer;
667
751
  color: #1A73E8;
668
752
  text-decoration: underline;
669
753
  }
754
+
670
755
  .stock-transfer-add {
671
756
  align-items: center;
757
+
672
758
  .minimum-stock {
673
759
  position: relative;
674
760
  top: 0;
675
761
  }
676
762
  }
763
+
677
764
  .minimum-stock {
678
765
  position: absolute;
679
766
  color: #ff4141;
@@ -2329,6 +2329,7 @@ export declare class Dictionaries {
2329
2329
  ACCOUNT_NUMBER: string;
2330
2330
  ACCOUNT_PRIVATE_PERSONS: string;
2331
2331
  ACCOUNT_RELATIONS_TO: string;
2332
+ ACCOUNT_SETTINGS: string;
2332
2333
  ACCOUNT_STATUS: string;
2333
2334
  ACCOUNT_TYPE: string;
2334
2335
  ACHIEVABLE: string;
@@ -11443,6 +11444,7 @@ export declare class Dictionaries {
11443
11444
  ACCOUNT_NUMBER: string;
11444
11445
  ACCOUNT_PRIVATE_PERSONS: string;
11445
11446
  ACCOUNT_RELATIONS_TO: string;
11447
+ ACCOUNT_SETTINGS: string;
11446
11448
  ACCOUNT_STATUS: string;
11447
11449
  ACCOUNT_TYPE: string;
11448
11450
  ACCOUNTING_OPERATION_TYPE: string;
@@ -12239,12 +12241,15 @@ export declare class Dictionaries {
12239
12241
  BATCHJOB_NOT_RUNNING: string;
12240
12242
  BATCHJOB_STARTED_WITH_ID: string;
12241
12243
  BATCHJOB_STILL_RUNNING: string;
12244
+ BATCH_ALLOCATE_UNALLOCATED_LINES: string;
12242
12245
  BATCH_AMOUNT: string;
12243
12246
  BATCH_CANCELLED_LABEL: string;
12244
12247
  BATCH_CANCELLING: string;
12245
12248
  BATCH_FINALIZING_LABEL: string;
12246
12249
  BATCH_FINISHED: string;
12247
12250
  BATCH_FINISHED_LABEL: string;
12251
+ BATCH_GOODS_PICKED: string;
12252
+ BATCH_GOODS_TO_BE_PICKED: string;
12248
12253
  BATCH_ITEMS_ALL_SUCCESS: string;
12249
12254
  BATCH_ITEMS_UNPROCESSED: string;
12250
12255
  BATCH_ITEM_NO_TEMPLATE2: string;
@@ -17599,6 +17604,7 @@ export declare class Dictionaries {
17599
17604
  SEARCH_MODULES: string;
17600
17605
  SEARCH_NUMBER_CUSTOMER_OR_DATE: string;
17601
17606
  SEARCH_NUMBER_SUPPLIER_OR_DATE: string;
17607
+ SEARCH_NUMBER_OR_BRANCH: string;
17602
17608
  SEARCH_NUMBER_OR_CUSTOMER: string;
17603
17609
  SEARCH_NUMBER_OR_SUPPLIER: string;
17604
17610
  SEARCH_ONHOLD: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "259.1.2",
3
+ "version": "259.1.3",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",