@colijnit/transaction 12.1.110 → 12.1.111

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 (92) hide show
  1. package/bundles/colijnit-transaction.umd.js +917 -647
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +380 -379
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +381 -380
  6. package/esm2015/lib/component/core/base/transaction-base.component.js +51 -15
  7. package/esm2015/lib/component/core/core.module.js +6 -11
  8. package/esm2015/lib/component/core/directive/overlay.directive.js +62 -22
  9. package/esm2015/lib/component/core/directive/overlay.module.js +17 -0
  10. package/esm2015/lib/component/core/relation/customer-groups.component.js +9 -9
  11. package/esm2015/lib/component/relation/relation-address/relation-address.component.js +7 -7
  12. package/esm2015/lib/component/relation/relation-address/relation-address.module.js +4 -3
  13. package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.component.js +53 -15
  14. package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.module.js +4 -3
  15. package/esm2015/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.js +16 -15
  16. package/esm2015/lib/component/transaction/transaction.component.js +33 -25
  17. package/esm2015/lib/component/transaction-card/transaction-card-invoice/transaction-card-invoice.component.js +4 -4
  18. package/esm2015/lib/component/transaction-card/transaction-card-order-delivery/transaction-card-order-delivery.component.js +10 -10
  19. package/esm2015/lib/component/transaction-card/transaction-card-receive-goods/transaction-card-receive-goods.component.js +7 -7
  20. package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.js +5 -7
  21. package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.module.js +4 -3
  22. package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +6 -8
  23. package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.module.js +4 -3
  24. package/esm2015/lib/component/transaction-header-fields/transaction-header-currency.component.js +5 -7
  25. package/esm2015/lib/component/transaction-header-fields/transaction-header-currency.module.js +4 -3
  26. package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-condition.component.js +5 -7
  27. package/esm2015/lib/component/transaction-header-fields/transaction-header-payment-condition.module.js +4 -3
  28. package/esm2015/lib/component/transaction-header-fields/transaction-header-price-kind.component.js +6 -7
  29. package/esm2015/lib/component/transaction-header-fields/transaction-header-price-kind.module.js +4 -3
  30. package/esm2015/lib/component/transaction-header-fields/transaction-header-sales-person.component.js +5 -7
  31. package/esm2015/lib/component/transaction-header-fields/transaction-header-sales-person.module.js +4 -3
  32. package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +4 -7
  33. package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.component.js +4 -4
  34. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line-base.component.js +5 -5
  35. package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line.component.js +8 -8
  36. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line-base.component.js +3 -3
  37. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +10 -10
  38. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +6 -6
  39. package/esm2015/lib/component/transaction-line/transaction-text-line/transaction-text-line.component.js +8 -3
  40. package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.js +61 -0
  41. package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +40 -64
  42. package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.js +9 -4
  43. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +6 -2
  44. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +10 -2
  45. package/esm2015/lib/component/transaction-line-fields/transaction-line-price/transaction-line-price.component.js +6 -2
  46. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +8 -1
  47. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +9 -1
  48. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.module.js +4 -3
  49. package/esm2015/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.js +2 -7
  50. package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +5 -5
  51. package/esm2015/lib/component/transaction-line-sales-allocation/transaction-line-sales-allocation.component.js +4 -4
  52. package/esm2015/lib/component/transaction-line-side-panel-article-details/transaction-line-side-panel-article-details.component.js +18 -7
  53. package/esm2015/lib/component/transaction-line-side-panel-article-details/transaction-line-side-panel-article-details.module.js +4 -3
  54. package/esm2015/lib/component/transaction-line-statusbar/transaction-line-statusbar.component.js +14 -14
  55. package/esm2015/lib/component/transaction-navigation-button-list/transaction-navigation-button-list.module.js +10 -9
  56. package/esm2015/lib/component/transaction-print-package-sticker/transaction-print-package-sticker.component.js +4 -4
  57. package/esm2015/lib/service/transaction-connector-adapter.service.js +16 -1
  58. package/esm2015/lib/service/transaction-connector.service.js +6 -1
  59. package/esm2015/lib/service/transaction.service.js +21 -3
  60. package/esm2015/lib/transaction-version.js +3 -3
  61. package/fesm2015/colijnit-transaction.js +606 -388
  62. package/fesm2015/colijnit-transaction.js.map +1 -1
  63. package/lib/component/core/base/transaction-base.component.d.ts +22 -0
  64. package/lib/component/core/directive/overlay.directive.d.ts +9 -5
  65. package/lib/component/core/directive/overlay.module.d.ts +2 -0
  66. package/lib/component/shared/transaction-article-text/style/_layout.scss +11 -0
  67. package/lib/component/shared/transaction-article-text/transaction-article-text.component.d.ts +12 -2
  68. package/lib/component/shared/transaction-article-text-overview/style/_layout.scss +9 -2
  69. package/lib/component/shared/transaction-article-text-overview/style/_material-definition.scss +7 -3
  70. package/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.d.ts +3 -4
  71. package/lib/component/tile/style/_material-definition.scss +1 -1
  72. package/lib/component/transaction/transaction.component.d.ts +9 -4
  73. package/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.d.ts +1 -2
  74. package/lib/component/transaction-line/transaction-text-line/transaction-text-line.component.d.ts +2 -0
  75. package/lib/component/transaction-line-action-buttons/style/_layout.scss +21 -81
  76. package/lib/component/transaction-line-action-buttons/style/_material-definition.scss +10 -2
  77. package/lib/component/transaction-line-action-buttons/style/_theme.scss +5 -4
  78. package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.d.ts +16 -0
  79. package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +8 -8
  80. package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +1 -0
  81. package/lib/component/transaction-line-fields/transaction-line-warehouse.component.d.ts +1 -0
  82. package/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.d.ts +0 -2
  83. package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/style/_material-definition.scss +2 -2
  84. package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
  85. package/lib/service/transaction-connector.service.d.ts +1 -0
  86. package/lib/service/transaction.service.d.ts +1 -0
  87. package/lib/style/_variables.scss +2 -1
  88. package/package.json +3 -3
  89. package/esm2015/lib/component/core/directive/overlay-parent.directive.js +0 -19
  90. package/esm2015/lib/enum/direction.enum.js +0 -9
  91. package/lib/component/core/directive/overlay-parent.directive.d.ts +0 -6
  92. package/lib/enum/direction.enum.d.ts +0 -6
@@ -54,6 +54,28 @@ export declare abstract class TransactionBaseComponent implements OnInit, OnDest
54
54
  headerReadonly: boolean;
55
55
  committing: boolean;
56
56
  tooltipMessage: string;
57
+ lineHasLogisticalState: boolean;
58
+ lineIsOrdered: boolean;
59
+ lineIsDelivered: boolean;
60
+ lineIsInvoiced: boolean;
61
+ lineIsReceived: boolean;
62
+ lineQuantityToInvoice: number;
63
+ lineQuantityInvoiced: number;
64
+ lineQuantityToReceive: number;
65
+ lineQuantityReceived: number;
66
+ lineQuantityToDeliver: number;
67
+ lineQuantityDelivered: number;
68
+ lineQuantityToAllocate: number;
69
+ lineQuantityAllocated: number;
70
+ lineQuantityOrdered: number;
71
+ lineQuantityPlanningRequested: number;
72
+ lineQuantityPlanningPreferredDateEntered: number;
73
+ lineQuantityToBePicked: number;
74
+ lineQuantityPicked: number;
75
+ lineQuantityPlanningFinal: number;
76
+ lineQuantityPurchaseConfirmed: number;
77
+ lineQuantityTransportNotification: number;
78
+ lineQuantityInvoiceControl: number;
57
79
  protected headerTooltipMessages: string[];
58
80
  protected lineTooltipMessages: string[];
59
81
  private _relation;
@@ -1,14 +1,18 @@
1
1
  import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { OverlayParentDirective } from './overlay-parent.directive';
2
+ import { OverlayParentDirective } from '@colijnit/corecomponents_v12/lib/directives/overlay/overlay-parent.directive';
3
3
  export declare class OverlayDirective implements OnDestroy, OnInit {
4
- set parent(value: OverlayParentDirective);
4
+ set parent(value: OverlayParentDirective | ElementRef);
5
+ keepInView: boolean;
6
+ inheritWidth: boolean;
7
+ rightAlign: boolean;
5
8
  private _elementRef;
6
- private _observer;
9
+ private _resizeObserver;
10
+ private _intersectionObserver;
7
11
  private _parent;
8
12
  constructor(elementRef: ElementRef);
9
13
  ngOnDestroy(): void;
10
14
  ngOnInit(): void;
11
- private _initiallyPlaceElement;
15
+ handleScroll: (event: Event) => void;
16
+ private _checkAndPlaceElement;
12
17
  private _placeElement;
13
- private _handleScroll;
14
18
  }
@@ -0,0 +1,2 @@
1
+ export declare class OverlayModule {
2
+ }
@@ -35,13 +35,21 @@
35
35
  }
36
36
 
37
37
  .option-wrapper {
38
+ position: relative;
38
39
  display: flex;
39
40
  flex-direction: column;
40
41
  row-gap: $tp-co-transaction-article-text-options-row-gap;
41
42
  width: 100%;
42
43
  flex-shrink: 0;
44
+ .select-all-checkbox {
45
+ position: absolute;
46
+ top: 20px;
47
+ right: 0;
48
+ z-index: 1;
49
+ }
43
50
 
44
51
  .co-input-listbox {
52
+ border-width: 0;
45
53
  padding: 20px 0;
46
54
 
47
55
  .co-input-listbox-content {
@@ -54,6 +62,9 @@
54
62
  height: 300px;
55
63
  //max-height: 150px;
56
64
  }
65
+ &:hover {
66
+ border-width: 0;
67
+ }
57
68
  }
58
69
  }
59
70
 
@@ -11,6 +11,7 @@ export declare class TransactionArticleTextComponent implements OnInit {
11
11
  iconCacheService: IconCacheService;
12
12
  private _dictionaryService;
13
13
  header: string;
14
+ transactionUuid: string;
14
15
  set transactionLine(value: TransactionLineInfo);
15
16
  get transactionLine(): TransactionLineInfo;
16
17
  set articleRef(value: string);
@@ -21,15 +22,21 @@ export declare class TransactionArticleTextComponent implements OnInit {
21
22
  showImage: boolean;
22
23
  closeClick: EventEmitter<MouseEvent>;
23
24
  cancelClick: EventEmitter<MouseEvent>;
24
- saveClick: EventEmitter<TransactionAddTextLineRequest>;
25
+ saveClick: EventEmitter<{
26
+ request: TransactionAddTextLineRequest;
27
+ new: boolean;
28
+ }>;
25
29
  showClass(): boolean;
26
30
  readonly icon: typeof Icon;
27
31
  private _transactionLine;
28
32
  standardTexts: StandardText[];
29
33
  documents: any[];
34
+ showOnDocuments: number[];
35
+ selectAll: boolean;
30
36
  fields: Object;
31
37
  fieldsDocuments: Object;
32
38
  textAreaPlaceholder: string;
39
+ new: boolean;
33
40
  transactionAddTextLineRequest: TransactionAddTextLineRequest;
34
41
  private _articleRef;
35
42
  constructor(transactionService: TransactionService, iconCacheService: IconCacheService, _dictionaryService: DictionaryService);
@@ -37,5 +44,8 @@ export declare class TransactionArticleTextComponent implements OnInit {
37
44
  onOkClick(event: MouseEvent): void;
38
45
  onCancelClick(event: MouseEvent): void;
39
46
  onSelectStandardText(value: any): void;
40
- handleDocumentsChange(docs: any): void;
47
+ handleDocumentsChange(codes: number[]): void;
48
+ handleSelectAll(select: boolean): void;
49
+ private _setShowOnDocuments;
50
+ private _getShowOnDocuments;
41
51
  }
@@ -18,12 +18,13 @@
18
18
  font-size: $tp-transaction-article-text-overview-font-size;
19
19
  display: flex;
20
20
  flex-direction: row;
21
- align-items: center;
21
+ align-items: $tp-transaction-article-text-overview-align-items;
22
22
  background-color: white;
23
23
  column-gap: $tp-transaction-article-text-overview-column-gap;
24
24
  border: $tp-transaction-article-text-overview-text-border;
25
25
  border-width: $tp-transaction-article-text-overview-text-border-width;
26
26
  box-shadow: $tp-transaction-article-text-overview-text-shadow-box;
27
+ border-radius: $tp-transaction-article-text-overview-border-radius;
27
28
  .index {
28
29
  padding: 10px;
29
30
  background-color: $tp-transaction-article-text-overview-index-background-color;
@@ -33,10 +34,16 @@
33
34
  max-height: 150px;
34
35
  overflow: hidden;
35
36
  }
37
+ &.selected {
38
+ background-color: $tp-transaction-article-text-overview-selected-background-color;
39
+ }
40
+ &:hover {
41
+ background-color: $tp-transaction-article-text-overview-hover-background-color;
42
+ }
36
43
  }
37
44
  .article-text-overview-article-text-wrapper.cdk-drag-preview {
38
45
  box-sizing: border-box;
39
- border-radius: 4px;
46
+ //border-radius: 4px;
40
47
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
41
48
  0 8px 10px 1px rgba(0, 0, 0, 0.14),
42
49
  0 3px 14px 2px rgba(0, 0, 0, 0.12);
@@ -1,9 +1,13 @@
1
1
  $tp-transaction-article-text-overview-font-family: $tp-font-family !default;
2
2
  $tp-transaction-article-text-overview-font-size: $tp-font-size !default;
3
+ $tp-transaction-article-text-overview-align-items: baseline !default;
3
4
  $tp-transaction-article-text-overview-column-gap: 5px !default;
5
+ $tp-transaction-article-text-overview-border-radius: 10px !default;
6
+ $tp-transaction-article-text-overview-hover-background-color: $tp-color-hover !default;
7
+ $tp-transaction-article-text-overview-selected-background-color: $tp-color-select !default;
4
8
  $tp-transaction-article-text-overview-text-border: none !default;
5
- $tp-transaction-article-text-overview-text-border-width: 1px 1px 1px 1px !default;
9
+ $tp-transaction-article-text-overview-text-border-width: 0 !default;
6
10
  $tp-transaction-article-text-overview-text-border-color: $tp-color-border !default;
7
- $tp-transaction-article-text-overview-text-shadow-box: inset -1px 0px 1px 0px $tp-color-border !default;
8
- $tp-transaction-article-text-overview-index-background-color: $tp-color-light-accent !default;
11
+ $tp-transaction-article-text-overview-text-shadow-box: none !default;
12
+ $tp-transaction-article-text-overview-index-background-color: transparent !default;
9
13
  $tp-transaction-article-text-overview-buttons-column-gap: 5px !default;
@@ -2,7 +2,6 @@ import { EventEmitter } from "@angular/core";
2
2
  import { TransactionEventService } from "../../../service/transaction-event.service";
3
3
  import { TransactionService } from "../../../service/transaction.service";
4
4
  import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
5
- import { TransactionAddTextLineRequest } from "@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo";
6
5
  import { CdkDrag, CdkDragDrop, CdkDropList } from "@angular/cdk/drag-drop";
7
6
  export declare class TransactionArticleTextOverviewComponent {
8
7
  service: TransactionService;
@@ -10,21 +9,21 @@ export declare class TransactionArticleTextOverviewComponent {
10
9
  set transactionLine(value: TransactionLineInfo);
11
10
  closeClick: EventEmitter<MouseEvent>;
12
11
  cancelClick: EventEmitter<MouseEvent>;
13
- saveClick: EventEmitter<TransactionAddTextLineRequest>;
14
12
  showClass(): boolean;
15
13
  collection: TransactionLineInfo[];
16
14
  showTransactionArticleText: boolean;
17
15
  editTransactionLine: TransactionLineInfo;
18
16
  textToEdit: string;
19
17
  header: string;
18
+ selectedIndex: number;
20
19
  private _boFactory;
21
20
  constructor(service: TransactionService, _transactionEventService: TransactionEventService);
22
- onOkClick(event: MouseEvent): void;
23
- onCancelClick(event: MouseEvent): void;
21
+ onCancelClick(event: MouseEvent): Promise<void>;
24
22
  handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
25
23
  handleDrop(event: CdkDragDrop<TransactionLineInfo[]>): void;
26
24
  handleOpenArticleText(transLine: TransactionLineInfo): void;
27
25
  closeArticleText(): void;
26
+ handleSelect(index: number): void;
28
27
  private _hideArticleTextDialog;
29
28
  private _getArticleTexts;
30
29
  }
@@ -8,7 +8,7 @@ $tp-tile-min-width: 200px !default;
8
8
  $tp-tile-min-height: 100px !default;
9
9
  $tp-tile-icon-width: 20px !default;
10
10
  $tp-tile-background-color: $tp-color-light !default;
11
- $tp-tile-hover-background-color: $tp-color-less-light !default;
11
+ $tp-tile-hover-background-color: $tp-color-hover !default;
12
12
  $tp-tile-border-color: $tp-color-border !default;
13
13
  $tp-tile-selected-background-color: #f1fcff !default;
14
14
  $tp-tile-selected-border-color: #0084de !default;
@@ -50,9 +50,14 @@ export declare class TransactionComponent implements OnDestroy {
50
50
  handleShowArticleTextOverview(line: TransactionLineInfo): void;
51
51
  handleShowTransactionText(line: TransactionLineInfo): void;
52
52
  handleShowArticleText(line: TransactionLineInfo): void;
53
- onSaveArticleTextOverview(request: TransactionAddTextLineRequest): void;
54
- saveTransactionLineText(transactionAddTextLineRequest: TransactionAddTextLineRequest): void;
55
- saveArticleLineText(transactionAddTextLineRequest: TransactionAddTextLineRequest): void;
53
+ saveTransactionLineText(data: {
54
+ request: TransactionAddTextLineRequest;
55
+ new: boolean;
56
+ }): Promise<void>;
57
+ saveArticleLineText(data: {
58
+ request: TransactionAddTextLineRequest;
59
+ new: boolean;
60
+ }): Promise<void>;
56
61
  handleEditTransactionText(line: TransactionLineInfo): void;
57
62
  handleEditArticleText(line: TransactionLineInfo): void;
58
63
  closeArticleText(): void;
@@ -64,5 +69,5 @@ export declare class TransactionComponent implements OnDestroy {
64
69
  private _hideArticleTextDialog;
65
70
  private _hideTransactionTextDialog;
66
71
  private _hideArticleTextOverviewDialog;
67
- private updateSidePanelTransactionLine;
72
+ private updateTransactionLine;
68
73
  }
@@ -8,9 +8,8 @@ export declare class TransactionBaseLineComponent extends TransactionBaseCompone
8
8
  actionButtons: boolean;
9
9
  checkboxValueChanged: EventEmitter<boolean>;
10
10
  waitingForUserAction: EventEmitter<boolean>;
11
- descriptionDblClick: EventEmitter<void>;
12
11
  showClass(): boolean;
13
12
  ngOnDestroy(): void;
14
13
  handleShowSidePanel(line: TransactionLineInfo): void;
15
- onDescriptionDblClick(): void;
14
+ handleOpenArticleText(text: string): void;
16
15
  }
@@ -1,4 +1,6 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { TransactionBaseComponent } from '../../core/base/transaction-base.component';
2
3
  export declare class TransactionTextLineComponent extends TransactionBaseComponent {
4
+ descriptionDblClick: EventEmitter<void>;
3
5
  showClass(): boolean;
4
6
  }
@@ -2,14 +2,6 @@
2
2
 
3
3
  @include export-module('co-transaction-line-action-buttons-layout') {
4
4
  .co-transaction-line-action-buttons {
5
-
6
- .transaction-line-action-buttons-wrapper {
7
- padding: $tp-transaction-line-action-buttons-padding;
8
- display: flex;
9
- justify-content: center;
10
- align-items: center;
11
- }
12
-
13
5
  .action-menu-button {
14
6
  height: $tp-transaction-line-action-buttons-action-menu-button-size;
15
7
  width: $tp-transaction-line-action-buttons-action-menu-button-size;
@@ -23,88 +15,36 @@
23
15
  width: $tp-transaction-line-action-buttons-action-menu-button-icon-size;
24
16
  }
25
17
  }
26
- .action-button {
27
- height: $tp-transaction-line-action-buttons-action-button-size;
28
- width: $tp-transaction-line-action-buttons-action-button-size;
18
+ }
19
+ .co-transaction-line-action-buttons-popup {
20
+ font-family: $tp-transaction-line-action-buttons-font-family;
21
+ font-size: $tp-transaction-line-action-buttons-font-size;
22
+ .transaction-line-action-buttons-wrapper {
23
+ padding: $tp-transaction-line-action-buttons-padding;
24
+ display: flex;
25
+ align-items: center;
26
+ }
27
+ .transaction-line-action-buttons-popup-wrapper {
28
+ display: flex;
29
+ position: fixed;
30
+ flex-direction: column;
31
+ row-gap: $tp-transaction-line-action-buttons-row-gap;
32
+ padding: $tp-transaction-line-action-buttons-padding;
33
+ box-shadow: $tp-transaction-line-action-buttons-box-shadow;
34
+ border-radius: $tp-transaction-line-action-buttons-border-radius;
35
+ }
36
+
37
+ .action-button-wrapper {
29
38
  cursor: pointer;
30
39
  border-radius: $tp-transaction-line-action-buttons-action-button-border-radius;
31
40
  display: flex;
32
41
  align-items: center;
33
- justify-content: center;
34
42
  margin: $tp-transaction-line-action-buttons-action-button-margin;
43
+ column-gap: $tp-transaction-line-action-buttons-action-button-column-gap;
35
44
  co-icon {
36
45
  height: $tp-transaction-line-action-buttons-action-button-icon-size;
37
46
  width: $tp-transaction-line-action-buttons-action-button-icon-size;
38
47
  }
39
48
  }
40
-
41
- .action-buttons-container {
42
- display: flex;
43
- flex-direction: column;
44
- position: absolute;
45
-
46
- .action-button {
47
- opacity: 0;
48
-
49
- &.show {
50
- opacity: 1;
51
- }
52
- }
53
-
54
- .action-button:nth-child(1) {
55
- transition: all .2s .4s;
56
- }
57
-
58
- .action-button:nth-child(2) {
59
- transition: all .2s .3s;
60
- }
61
-
62
- .action-button:nth-child(3) {
63
- transition: all .2s .2s;
64
- }
65
-
66
- .action-button:nth-child(4) {
67
- transition: all .2s .1s;
68
- }
69
-
70
- .action-button.show:nth-child(1) {
71
- transition: all .2s;
72
- }
73
-
74
- .action-button.show:nth-child(2) {
75
- transition: all .2s .1s;
76
- }
77
-
78
- .action-button.show:nth-child(3) {
79
- transition: all .2s .2s;
80
- }
81
-
82
- .action-button.show:nth-child(4) {
83
- transition: all .2s .3s;
84
- }
85
-
86
- &.bottom {
87
- //transform: translate(0, calc(50% + (#{$tp-transaction-line-action-buttons-action-button-size} / 2) +
88
- transform: translate(0, 50%);
89
- }
90
-
91
- &.top {
92
- transform: translate(0, calc(-50% - (#{$tp-transaction-line-action-buttons-action-button-size} / 2) -
93
- #{$tp-transaction-line-action-buttons-action-button-margin}));
94
- flex-direction: column-reverse;
95
- }
96
-
97
- &.left {
98
- transform: translate(calc(-50% - (#{$tp-transaction-line-action-buttons-action-button-size} / 2) -
99
- #{$tp-transaction-line-action-buttons-action-button-margin}));
100
- flex-direction: row-reverse;
101
- }
102
-
103
- &.right {
104
- transform: translate(calc(50% + (#{$tp-transaction-line-action-buttons-action-button-size} / 2) +
105
- #{$tp-transaction-line-action-buttons-action-button-margin}));
106
- flex-direction: row;
107
- }
108
- }
109
49
  }
110
50
  }
@@ -1,5 +1,12 @@
1
+ $tp-transaction-line-action-buttons-font-family: $tp-font-family !default;
2
+ $tp-transaction-line-action-buttons-font-size: $tp-font-size !default;
3
+ $tp-transaction-line-action-buttons-font-color: $tp-color-font !default;
1
4
  $tp-transaction-line-action-buttons-background-color: $tp-default-background-accent !default;
2
- $tp-transaction-line-action-buttons-padding: 0 !default;
5
+ $tp-transaction-line-action-buttons-popup-background-color: $tp-default-background-accent !default;
6
+ $tp-transaction-line-action-buttons-padding: 10px !default;
7
+ $tp-transaction-line-action-buttons-row-gap: 10px !default;
8
+ $tp-transaction-line-action-buttons-border-radius: 10px !default;
9
+ $tp-transaction-line-action-buttons-box-shadow: 0px 0px 3px 0px rgba(1, 1, 1, 0.5) !default;
3
10
  $tp-transaction-line-action-buttons-add-text-background-color: $tp-color-action !default;
4
11
  $tp-transaction-line-action-buttons-add-text-text-color: $tp-color-light !default;
5
12
  $tp-transaction-line-action-buttons-action-menu-button-size: 26px !default;
@@ -9,6 +16,7 @@ $tp-transaction-line-action-buttons-action-button-size: 30px !default;
9
16
  $tp-transaction-line-action-buttons-action-button-border-radius: 50% !default;
10
17
  $tp-transaction-line-action-buttons-action-button-icon-size: 15px !default;
11
18
  $tp-transaction-line-action-buttons-action-button-margin: 2px !default;
19
+ $tp-transaction-line-action-buttons-action-button-column-gap: 10px !default;
12
20
  $tp-transaction-line-action-buttons-action-button-icon-color: $tp-color-dark !default;
13
21
  $tp-transaction-line-action-buttons-action-button-background-color: #030D3C !default;
14
- $tp-transaction-line-action-buttons-action-button-color: $tp-color-light !default;
22
+ $tp-transaction-line-action-buttons-action-button-color: $tp-color-dark !default;
@@ -2,16 +2,17 @@
2
2
 
3
3
  @include export-module('co-transaction-line-action-buttons-theme') {
4
4
  .co-transaction-line-action-buttons {
5
-
6
5
  .action-menu-button {
7
6
  background-color: $tp-transaction-line-action-buttons-background-color;
8
7
  co-icon [fill] {
9
8
  fill: $tp-transaction-line-action-buttons-action-button-icon-color;
10
9
  }
11
10
  }
12
-
13
- .action-button {
14
- background-color: $tp-transaction-line-action-buttons-action-button-background-color;
11
+ }
12
+ .transaction-line-action-buttons-popup-wrapper {
13
+ color: $tp-transaction-line-action-buttons-font-color;
14
+ background-color: $tp-transaction-line-action-buttons-popup-background-color;
15
+ .co-icon {
15
16
  fill: $tp-transaction-line-action-buttons-action-button-color;
16
17
  }
17
18
  }
@@ -0,0 +1,16 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { Icon } from '../../enum/icon.enum';
3
+ import { IconCacheService } from '../../service/icon-cache.service';
4
+ export declare class TransactionLineActionButtonsPopupComponent {
5
+ iconCacheService: IconCacheService;
6
+ readonly icons: typeof Icon;
7
+ parentForOverlay: ElementRef;
8
+ articleTextButtonClick: EventEmitter<void>;
9
+ transactionTextButtonClick: EventEmitter<void>;
10
+ sidePanelButtonClick: EventEmitter<void>;
11
+ showClass: boolean;
12
+ constructor(iconCacheService: IconCacheService);
13
+ handleArticleTextButtonClick(event: MouseEvent): void;
14
+ handleTransactionTextButtonClick(event: MouseEvent): void;
15
+ handleSidePanelButtonClick(event: MouseEvent): void;
16
+ }
@@ -1,38 +1,38 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { TransactionEventService } from '../../service/transaction-event.service';
3
3
  import { TransactionService } from '../../service/transaction.service';
4
4
  import { TransactionKind } from '@colijnit/transactionapi/build/enum/transaction-kind.enum';
5
5
  import { Icon } from '../../enum/icon.enum';
6
6
  import { DictionaryService } from '../../service/dictionary.service';
7
7
  import { IconCacheService } from '../../service/icon-cache.service';
8
- import { Direction } from '../../enum/direction.enum';
9
8
  import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transaction-line-info.bo';
9
+ import { OverlayService } from '@colijnit/corecomponents_v12';
10
10
  export declare class TransactionLineActionButtonsComponent implements OnInit {
11
+ elementRef: ElementRef;
11
12
  iconCacheService: IconCacheService;
12
13
  private _transactionService;
13
14
  private _dictionaryService;
14
15
  private _transactionEventService;
16
+ private _overlayService;
15
17
  readonly icons: typeof Icon;
16
18
  set transactionLine(value: TransactionLineInfo);
17
19
  get transactionLine(): TransactionLineInfo;
18
- alignDirection: Direction;
19
- set showActionButtons(value: boolean);
20
- get showActionButtons(): boolean;
21
20
  waitingForUserAction: EventEmitter<boolean>;
22
21
  transactionArticleTextOverviewButtonClicked: EventEmitter<TransactionLineInfo>;
23
22
  transactionTextButtonClicked: EventEmitter<TransactionLineInfo>;
24
23
  articleTextButtonClicked: EventEmitter<TransactionLineInfo>;
25
24
  sidePanelButtonClicked: EventEmitter<TransactionLineInfo>;
26
25
  showClass(): boolean;
27
- showActionButtonsDelayed: boolean;
28
26
  transactionKind: TransactionKind;
29
27
  readonly: boolean;
28
+ showActionButtons: boolean;
30
29
  private _transactionLine;
31
- private _showActionButtons;
32
- constructor(iconCacheService: IconCacheService, _transactionService: TransactionService, _dictionaryService: DictionaryService, _transactionEventService: TransactionEventService);
30
+ constructor(elementRef: ElementRef, iconCacheService: IconCacheService, _transactionService: TransactionService, _dictionaryService: DictionaryService, _transactionEventService: TransactionEventService, _overlayService: OverlayService);
33
31
  ngOnInit(): void;
34
32
  handleShowHideClick(): void;
35
33
  handleTransactionText(): void;
36
34
  handleArticleText(): void;
37
35
  handleShowSidePanel(): void;
36
+ private _showPopup;
37
+ private _hidePopup;
38
38
  }
@@ -8,4 +8,5 @@ export declare class TransactionLineVatComponent extends TransactionFilterPopupB
8
8
  ngOnInit(): void;
9
9
  commit(id: number): Promise<boolean>;
10
10
  protected transactionInfoSet(): void;
11
+ protected transactionLineSet(): void;
11
12
  }
@@ -7,4 +7,5 @@ export declare class TransactionLineWarehouseComponent extends TransactionFilter
7
7
  protected propsForLabel: string[];
8
8
  ngOnInit(): void;
9
9
  commit(warehouse: number): Promise<boolean>;
10
+ protected transactionLineSet(): void;
10
11
  }
@@ -5,7 +5,6 @@ export declare class TransactionLineImageAndDescriptionComponent extends Transac
5
5
  showClass(): boolean;
6
6
  preview: boolean;
7
7
  openArticleTextClicked: EventEmitter<string>;
8
- descriptionDblClick: EventEmitter<void>;
9
8
  handleDeleteLine: EventEmitter<MouseEvent>;
10
9
  image: string;
11
10
  handleOpenArticleText(text: string): void;
@@ -13,5 +12,4 @@ export declare class TransactionLineImageAndDescriptionComponent extends Transac
13
12
  protected transactionLineSet(): void;
14
13
  protected visibilitySet(visible: boolean): void;
15
14
  private _loadLineImage;
16
- onDescriptionDblClick(): void;
17
15
  }
@@ -1,6 +1,6 @@
1
1
  $tp-transaction-tile-background-color: $tp-color-light !default;
2
- $tp-transaction-tile-background-color-hover: $tp-color-less-light !default;
3
- $tp-transaction-tile-background-color-selected: #F0F5FF !default;
2
+ $tp-transaction-tile-background-color-hover: $tp-color-hover !default;
3
+ $tp-transaction-tile-background-color-selected: $tp-color-select !default;
4
4
 
5
5
  $tp-transaction-tile-font-family: $tp-font-family !default;
6
6
  $tp-transaction-tile-font-size: $tp-font-size !default;
@@ -142,6 +142,7 @@ export declare class TransactionConnectorAdapterService {
142
142
  resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<TransactionInfoResponse>;
143
143
  addTransactionLine(uuid: string, articleNo: string, quantity: number, aboveLineNr: number, belowLineNr: number): Promise<TransactionInfoResponse>;
144
144
  addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<TransactionInfoResponse>;
145
+ updateTextLine(uuid: string, lineUuid: string, showOnDocuments: number, text: string): Promise<TransactionInfoResponse>;
145
146
  addRelationToTransaction(uuid: string, relationId: number): Promise<TransactionInfoResponse>;
146
147
  changeLineSequence(uuid: string, lineUuid: string, aboveLineNr?: number, belowLineNr?: number): Promise<TransactionInfoResponse>;
147
148
  cancelAddTransactionLine(lineUuid: string): Promise<TransactionInfoResponse>;
@@ -119,6 +119,7 @@ export declare class TransactionConnectorService {
119
119
  getPostalCodeRetrieval(postcalCode: string, houseNo: string): Promise<GetPostalCodeRetrievalOutputParams>;
120
120
  addTransactionLine(uuid: string, articleNo: string, quantity: number, aboveLineNr: number, belowLineNr: number): Promise<TransactionInfoResponse>;
121
121
  addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<TransactionInfoResponse>;
122
+ updateTextLine(uuid: string, lineUuid: string, showOnDocuments: number, text: string): Promise<TransactionInfoResponse>;
122
123
  changeLineSequence(uuid: string, lineUuid: string, aboveLineNr?: number, belowLineNr?: number): Promise<TransactionInfoResponse>;
123
124
  cancelAddTransactionLine(lineUuid: string): Promise<TransactionInfoResponse>;
124
125
  deleteTransactionLine(uuid: string, lineUuid: string): Promise<TransactionInfoResponse>;
@@ -138,6 +138,7 @@ export declare class TransactionService extends PendingReasonService {
138
138
  getSalesPersons(date?: Date): Promise<SalesPerson[]>;
139
139
  addArticle(articleNo: string, quantity?: number, aboveLineNr?: number, belowLineNr?: number): Promise<boolean>;
140
140
  addTextLine(showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<boolean>;
141
+ updateTextLine(uuid: string, lineUuid: string, showOnDocuments: number, text: string): Promise<boolean>;
141
142
  changeLineSequence(lineUuid: string, aboveLineNr?: number, belowLineNr?: number): Promise<boolean>;
142
143
  deleteTransactionLine(transactionUuid: string, TransactionLineUuid: string): Promise<boolean>;
143
144
  changeTransactionLineQuantity(transactionUuid: string, lineUuid: string, newQuantity: number): Promise<boolean>;
@@ -5,6 +5,7 @@ $tp-color-action: #3e7eff !default;
5
5
  $tp-color-action-light: #DCE4EA !default;
6
6
  $tp-color-text-light: $tp-color-less-light !default;
7
7
 
8
+ $tp-color-select: #f0f5ff !default;
8
9
  $tp-color-hover: #e8eceb !default;
9
10
  $tp-color-active: #429777 !default;
10
11
  $tp-color-grey: #DAD9D9 !default;
@@ -129,7 +130,7 @@ $cc-co-commit-buttons-cancel-color: $tp-color-label !default;
129
130
  $cc-simple-grid-header-border-color: white !default;
130
131
  $cc-simple-grid-header-font-size: 11px !default;
131
132
  $cc-simple-grid-cell-padding: 0 5px !default;
132
- $cc-simple-grid-row-selected-background-color: #f0f5ff !default;
133
+ $cc-simple-grid-row-selected-background-color: $tp-color-select !default;
133
134
  $cc-simple-grid-row-height: 60px !default;
134
135
 
135
136
  $cc-co-carousel-padding: 10px 20px !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "12.1.110",
3
+ "version": "12.1.111",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -12,13 +12,13 @@
12
12
  "@colijnit/articleapi": ">=1.0.16",
13
13
  "@colijnit/catalog": ">=12.1.29",
14
14
  "@colijnit/corecomponents": ">=1.12.0",
15
- "@colijnit/corecomponents_v12": ">=12.0.104",
15
+ "@colijnit/corecomponents_v12": ">=12.0.107",
16
16
  "@colijnit/ioneconnector": ">=2.1.11",
17
17
  "@colijnit/mainapi": ">=1.0.10",
18
18
  "@colijnit/relationapi": ">=1.0.5",
19
19
  "@colijnit/sharedapi": ">=1.0.10",
20
20
  "@colijnit/sharedcomponents": ">=1.0.40",
21
- "@colijnit/transactionapi": ">=1.1.78",
21
+ "@colijnit/transactionapi": ">=1.1.79",
22
22
  "@syncfusion/ej2-angular-buttons": ">=19.3.44",
23
23
  "@syncfusion/ej2-angular-calendars": ">=19.3.44",
24
24
  "@syncfusion/ej2-angular-dropdowns": ">=19.3.45",
@@ -1,19 +0,0 @@
1
- import { Directive, ElementRef } from "@angular/core";
2
- export class OverlayParentDirective {
3
- constructor(elementRef) {
4
- this.elementRef = elementRef;
5
- }
6
- ngOnDestroy() {
7
- this.elementRef = undefined;
8
- }
9
- }
10
- OverlayParentDirective.decorators = [
11
- { type: Directive, args: [{
12
- selector: '[overlayParent]',
13
- exportAs: 'overlayParent'
14
- },] }
15
- ];
16
- OverlayParentDirective.ctorParameters = () => [
17
- { type: ElementRef }
18
- ];
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1wYXJlbnQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJhbnNhY3Rpb24vc3JjL2xpYi9jb21wb25lbnQvY29yZS9kaXJlY3RpdmUvb3ZlcmxheS1wYXJlbnQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFZLE1BQU0sZUFBZSxDQUFDO0FBTS9ELE1BQU0sT0FBTyxzQkFBc0I7SUFJakMsWUFDRSxVQUFzQjtRQUV0QixJQUFJLENBQUMsVUFBVSxHQUFHLFVBQVUsQ0FBQztJQUMvQixDQUFDO0lBRU0sV0FBVztRQUNoQixJQUFJLENBQUMsVUFBVSxHQUFHLFNBQVMsQ0FBQztJQUM5QixDQUFDOzs7WUFoQkYsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxpQkFBaUI7Z0JBQzNCLFFBQVEsRUFBRSxlQUFlO2FBQzFCOzs7WUFMa0IsVUFBVSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7RGlyZWN0aXZlLCBFbGVtZW50UmVmLCBPbkRlc3Ryb3l9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XHJcblxyXG5ARGlyZWN0aXZlKHtcclxuICBzZWxlY3RvcjogJ1tvdmVybGF5UGFyZW50XScsXHJcbiAgZXhwb3J0QXM6ICdvdmVybGF5UGFyZW50J1xyXG59KVxyXG5leHBvcnQgY2xhc3MgT3ZlcmxheVBhcmVudERpcmVjdGl2ZSBpbXBsZW1lbnRzIE9uRGVzdHJveSB7XHJcblxyXG4gIHB1YmxpYyBlbGVtZW50UmVmOiBFbGVtZW50UmVmO1xyXG5cclxuICBjb25zdHJ1Y3RvcihcclxuICAgIGVsZW1lbnRSZWY6IEVsZW1lbnRSZWZcclxuICApIHtcclxuICAgIHRoaXMuZWxlbWVudFJlZiA9IGVsZW1lbnRSZWY7XHJcbiAgfVxyXG5cclxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XHJcbiAgICB0aGlzLmVsZW1lbnRSZWYgPSB1bmRlZmluZWQ7XHJcbiAgfVxyXG59XHJcbiJdfQ==