@colijnit/transaction 12.1.122 → 12.1.123
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.
- package/bundles/colijnit-transaction.umd.js +180 -92
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +71 -69
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +72 -70
- package/esm2015/lib/component/transaction-button/transaction-button.component.js +2 -2
- package/esm2015/lib/component/transaction-labeled-price-input/transaction-labeled-price-input.component.js +13 -6
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.js +3 -2
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +14 -20
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.module.js +6 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-button.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.js +64 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.module.js +27 -0
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +17 -9
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.module.js +4 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +44 -26
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.js +4 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +172 -66
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-button/style/_layout.scss +12 -7
- package/lib/component/transaction-button/style/_material-definition.scss +2 -3
- package/lib/component/transaction-labeled-price-input/transaction-labeled-price-input.component.d.ts +4 -1
- package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.d.ts +24 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.module.d.ts +2 -0
- package/lib/component/transaction-line-purchase-confirmation/style/_layout.scss +1 -0
- package/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_layout.scss +25 -21
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +6 -1
- package/lib/style/_variables.scss +0 -1
- package/package.json +1 -1
|
@@ -10,17 +10,15 @@
|
|
|
10
10
|
height: 100%;
|
|
11
11
|
flex-shrink: 0;
|
|
12
12
|
align-items: center;
|
|
13
|
-
&:not(.right) {
|
|
14
|
-
margin-right: $tp-transaction-button-icon-margin;
|
|
15
|
-
}
|
|
16
|
-
&.right {
|
|
17
|
-
margin-left: $tp-transaction-button-icon-margin;
|
|
18
|
-
}
|
|
19
13
|
|
|
20
14
|
.co-icon {
|
|
21
15
|
height: 100%;
|
|
22
16
|
width: auto;
|
|
23
|
-
|
|
17
|
+
aspect-ratio: 1;
|
|
18
|
+
svg {
|
|
19
|
+
height: $tp-transaction-button-icon-size;
|
|
20
|
+
width: $tp-transaction-button-icon-size;
|
|
21
|
+
}
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
.spacer {
|
|
@@ -33,6 +31,8 @@
|
|
|
33
31
|
display: flex;
|
|
34
32
|
flex-basis: 100%;
|
|
35
33
|
overflow: hidden;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
padding: $tp-transaction-button-label-title-wrapper-padding;
|
|
36
36
|
&.title {
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
row-gap: $tp-transaction-button-label-title-wrapper-row-gap;
|
|
@@ -65,5 +65,10 @@
|
|
|
65
65
|
justify-content: center;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
&.discount {
|
|
69
|
+
span {
|
|
70
|
+
color: $tp-color-negative-value;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
68
73
|
}
|
|
69
74
|
}
|
|
@@ -3,9 +3,7 @@ $tp-transaction-button-font-size: 11px !default;
|
|
|
3
3
|
$tp-transaction-button-width: $tp-transaction-default-button-width !default;
|
|
4
4
|
$tp-transaction-button-width-big: $tp-transaction-default-button-width-big !default;
|
|
5
5
|
$tp-transaction-button-font-weight: 600 !default;
|
|
6
|
-
$tp-transaction-button-icon-size:
|
|
7
|
-
$tp-transaction-button-icon-margin: 5px !default;;
|
|
8
|
-
$tp-transaction-button-icon-padding: 4px !default;;
|
|
6
|
+
$tp-transaction-button-icon-size: 50% !default;
|
|
9
7
|
$tp-transaction-button-icon-spacer-width: 1px !default;
|
|
10
8
|
$tp-transaction-button-height: $tp-transaction-default-button-height !default;
|
|
11
9
|
$tp-transaction-button-background-color: $tp-default-background-accent !default;
|
|
@@ -18,4 +16,5 @@ $tp-transaction-button-label-row-gap: 9px !default;
|
|
|
18
16
|
$tp-transaction-button-label-padding-right: 5px !default;
|
|
19
17
|
$tp-transaction-button-label-color: rgba(0, 0, 0, 0.7) !default;
|
|
20
18
|
$tp-transaction-button-label-title-wrapper-row-gap: 9px !default;
|
|
19
|
+
$tp-transaction-button-label-title-wrapper-padding: 0 10px !default;
|
|
21
20
|
$tp-transaction-button-title-color: rgba(0, 0, 0, 0.7) !default;
|
package/lib/component/transaction-labeled-price-input/transaction-labeled-price-input.component.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
1
2
|
import { InputTextComponent } from "@colijnit/corecomponents_v12";
|
|
2
3
|
export declare class TransactionLabeledPriceInputComponent {
|
|
3
4
|
set child(content: any);
|
|
4
|
-
placeholder: string;
|
|
5
5
|
model: number;
|
|
6
|
+
placeholder: string;
|
|
6
7
|
defaultEditMode: boolean;
|
|
7
8
|
readonly: boolean;
|
|
8
9
|
required: boolean;
|
|
9
10
|
set editMode(value: boolean);
|
|
10
11
|
get editMode(): boolean;
|
|
12
|
+
modelChange: EventEmitter<number>;
|
|
11
13
|
handleClick(event: MouseEvent): void;
|
|
12
14
|
input: InputTextComponent;
|
|
13
15
|
private _editMode;
|
|
14
16
|
showClass(): boolean;
|
|
15
17
|
constructor();
|
|
18
|
+
handleModelChange(event: number): void;
|
|
16
19
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { Icon } from '../../enum/icon.enum';
|
|
3
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
|
+
import { TransactionBaseComponent } from '../core/base/transaction-base.component';
|
|
5
|
+
import { OverlayService } from '@colijnit/corecomponents_v12';
|
|
6
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
7
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
8
|
+
import { DictionaryService } from '../../service/dictionary.service';
|
|
9
|
+
import { TransactionImageService } from '../../service/transaction-image.service';
|
|
10
|
+
export declare class TransactionLineSupplierDeliveryDateButtonComponent extends TransactionBaseComponent {
|
|
11
|
+
transactionEventService: TransactionEventService;
|
|
12
|
+
service: TransactionService;
|
|
13
|
+
iconCacheService: IconCacheService;
|
|
14
|
+
protected dictionaryService: DictionaryService;
|
|
15
|
+
protected imageService: TransactionImageService;
|
|
16
|
+
protected changeDetector: ChangeDetectorRef;
|
|
17
|
+
private _overlayService;
|
|
18
|
+
private _elementRef;
|
|
19
|
+
readonly icons: typeof Icon;
|
|
20
|
+
showClass(): boolean;
|
|
21
|
+
private _calendarPopupComponentRef;
|
|
22
|
+
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _overlayService: OverlayService, _elementRef: ElementRef);
|
|
23
|
+
handleShowDialog(event: MouseEvent): void;
|
|
24
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TransactionBaseComponent } from '../core/base/transaction-base.component';
|
|
3
3
|
import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-delivery-batch.bo';
|
|
4
|
+
import { TransactionTypeCategory } from "../../enum/transaction-type-category.enum";
|
|
4
5
|
export declare class TransactionLinePurchaseConfirmationComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
6
|
+
readonly transactionTypeCategory: typeof TransactionTypeCategory;
|
|
5
7
|
set isEditing(value: boolean);
|
|
6
8
|
get isEditing(): boolean;
|
|
7
9
|
showClass(): boolean;
|
|
@@ -2,30 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
@include export-module('cc-transaction-quick-access-order-confirmation-layout') {
|
|
4
4
|
.co-transaction-quick-access-order-confirmation {
|
|
5
|
-
display: flex;
|
|
6
|
-
column-gap: 10px;
|
|
7
|
-
align-items: center;
|
|
8
5
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
.quick-access-wrapper {
|
|
7
|
+
|
|
8
|
+
.confirm-inputs, .show-confirmation-inputs-wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
column-gap: 10px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
.new-confirmation-button {
|
|
14
|
+
height: 30px;
|
|
15
|
+
color: $tp-color-action;
|
|
16
|
+
.co-icon {
|
|
17
|
+
svg { // for fontawesome icons
|
|
18
|
+
fill: $tp-color-action;
|
|
19
|
+
}
|
|
20
|
+
& [fill] { // for own icons
|
|
21
|
+
fill: $tp-color-action;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
12
25
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
border-radius: $tp-default-border-radius;
|
|
17
|
-
padding: 5px;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
width: 65px;
|
|
24
|
-
height: 40px;
|
|
26
|
+
.co-input-checkbox {
|
|
27
|
+
margin-left: 10px;
|
|
28
|
+
}
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
.co-input-date {
|
|
31
|
+
min-width: 150px;
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
1
2
|
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
3
|
import { GetPurchaseOrderConfirmation } from "@colijnit/transactionapi/build/model/get-purchase-order-confirmation";
|
|
3
|
-
export declare class TransactionQuickAccessOrderConfirmationComponent extends TransactionBaseComponent {
|
|
4
|
+
export declare class TransactionQuickAccessOrderConfirmationComponent extends TransactionBaseComponent implements OnInit {
|
|
4
5
|
purchaseOrderConfirmation: GetPurchaseOrderConfirmation;
|
|
5
6
|
showClass(): boolean;
|
|
6
7
|
awaitingResult: boolean;
|
|
7
8
|
iconVisible: boolean;
|
|
9
|
+
hideQuickAccessContent: boolean;
|
|
10
|
+
forceShowConfirmationInputs: boolean;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
handleSelectAllLines(value: boolean): void;
|
|
8
13
|
handleCommitEvent(event: MouseEvent): Promise<void>;
|
|
9
14
|
}
|
|
@@ -127,7 +127,6 @@ $cc-co-input-text-spacer-color: $tp-color-border !default;
|
|
|
127
127
|
$cc-co-input-number-picker-button-background-color-hover: $tp-color-action !default;
|
|
128
128
|
$cc-co-input-number-picker-button-background-color-select: $tp-color-action !default;
|
|
129
129
|
$cc-co-input-number-picker-spacer-color: $tp-color-border !default;
|
|
130
|
-
$cc-co-input-number-picker-icon-padding: 4px !default;
|
|
131
130
|
|
|
132
131
|
//$cc-co-commit-buttons-button-background: none !default;
|
|
133
132
|
$cc-co-commit-buttons-commit-color: $tp-color-label !default;
|