@colijnit/transaction 12.1.112 → 12.1.113
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 +382 -283
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +248 -246
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +249 -247
- package/esm2015/lib/component/checkout/checkout.component.js +13 -10
- package/esm2015/lib/component/core/relation/customer-groups.component.js +17 -4
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +5 -3
- package/esm2015/lib/component/transaction-date-select/transaction-date-select.component.js +35 -0
- package/esm2015/lib/component/transaction-date-select/transaction-date-select.module.js +21 -0
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +6 -6
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line.component.js +2 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-overview-line/transaction-purchase-overview-line.component.js +3 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +2 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +33 -12
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price/transaction-line-price.component.js +2 -2
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +2 -2
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +124 -35
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/style/_layout.scss +2 -0
- package/lib/component/checkout/style/_material-definition.scss +1 -0
- package/lib/component/core/relation/customer-groups.component.d.ts +7 -4
- package/lib/component/transaction-card/transaction-card/style/_layout.scss +6 -1
- package/lib/component/transaction-date-select/style/_layout.scss +22 -0
- package/lib/component/transaction-date-select/style/_material-definition.scss +4 -0
- package/lib/component/transaction-date-select/style/_theme.scss +12 -0
- package/lib/component/transaction-date-select/style/material.scss +4 -0
- package/lib/component/transaction-date-select/transaction-date-select.component.d.ts +11 -0
- package/lib/component/transaction-date-select/transaction-date-select.module.d.ts +2 -0
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +17 -4
- package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +18 -6
- package/lib/enum/icon.enum.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
flex-basis: $tp-checkout-default-width;
|
|
14
14
|
flex-grow: 1;
|
|
15
15
|
flex-shrink: 1;
|
|
16
|
+
max-width: $tp-checkout-max-width;
|
|
16
17
|
}
|
|
17
18
|
.co-checkout-right-panel {
|
|
18
19
|
display: flex;
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
flex-basis: $tp-checkout-right-panel-width;
|
|
22
23
|
flex-grow: 1;
|
|
23
24
|
flex-shrink: 1;
|
|
25
|
+
max-width: $tp-checkout-max-width;
|
|
24
26
|
}
|
|
25
27
|
.co-checkout-right-panel-relation {
|
|
26
28
|
display: flex;
|
|
@@ -3,6 +3,7 @@ $tp-checkout-padding: 30px !default;
|
|
|
3
3
|
$tp-checkout-column-gap: 10px !default;
|
|
4
4
|
$tp-checkout-row-gap: 10px !default;
|
|
5
5
|
$tp-checkout-default-width: 55% !default;
|
|
6
|
+
$tp-checkout-max-width: 80% !default;
|
|
6
7
|
$tp-checkout-right-panel-row-gap: 10px !default;
|
|
7
8
|
$tp-checkout-right-panel-width: 400px !default;
|
|
8
9
|
$tp-checkout-right-panel-width: 50% !default;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from
|
|
2
|
-
import { TransactionConnectorService } from
|
|
3
|
-
import { CustomerGroup } from
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TransactionConnectorService } from '../../../service/transaction-connector.service';
|
|
3
|
+
import { CustomerGroup } from '@colijnit/transactionapi/build/model/customer-group.bo';
|
|
4
4
|
export declare class CustomerGroupsComponent implements OnInit {
|
|
5
5
|
private _connector;
|
|
6
6
|
readonly: boolean;
|
|
7
7
|
required: boolean;
|
|
8
|
-
model: string;
|
|
8
|
+
set model(value: string);
|
|
9
|
+
get model(): string;
|
|
9
10
|
modelChange: EventEmitter<string>;
|
|
10
11
|
customerGroups: CustomerGroup[];
|
|
11
12
|
selectedCustomerGroup: CustomerGroup;
|
|
12
13
|
fields: Object;
|
|
14
|
+
private _model;
|
|
13
15
|
constructor(_connector: TransactionConnectorService);
|
|
14
16
|
ngOnInit(): Promise<void>;
|
|
15
17
|
handleCustomerGroupChange(customerGroup: CustomerGroup): void;
|
|
18
|
+
private _setSelectedCustomerGroup;
|
|
16
19
|
}
|
|
@@ -72,7 +72,12 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.transaction-line-totals-
|
|
75
|
+
.transaction-line-totals-amount {
|
|
76
|
+
.amount-number-picker {
|
|
77
|
+
height: 100%;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.transaction-line-totals-price, .transaction-line-totals-discount, .transaction-line-totals-total {
|
|
76
81
|
display: flex;
|
|
77
82
|
align-items: center;
|
|
78
83
|
justify-content: center;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@include export-module('co-transaction-date-select-layout') {
|
|
2
|
+
.co-transaction-date-select {
|
|
3
|
+
font-family: $tp-transaction-date-select-font-family;
|
|
4
|
+
font-size: $tp-transaction-date-select-font-size;
|
|
5
|
+
width: 100%;
|
|
6
|
+
.transaction-date-select-wrapper {
|
|
7
|
+
width: 100%;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
.co-icon {
|
|
12
|
+
height: $tp-transaction-date-select-icon-size;
|
|
13
|
+
width: $tp-transaction-date-select-icon-size;
|
|
14
|
+
}
|
|
15
|
+
.date-description {
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@include export-module('co-transaction-date-select-theme') {
|
|
2
|
+
.co-transaction-date-select {
|
|
3
|
+
.co-icon {
|
|
4
|
+
svg { // for fontawesome icons
|
|
5
|
+
fill: $tp-transaction-date-select-icon-color;
|
|
6
|
+
}
|
|
7
|
+
& [fill] { // for own icons
|
|
8
|
+
fill: $tp-transaction-date-select-icon-color;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
3
|
+
import { Icon } from '../../enum/icon.enum';
|
|
4
|
+
export declare class TransactionDateSelectComponent {
|
|
5
|
+
iconService: IconCacheService;
|
|
6
|
+
readonly icons: typeof Icon;
|
|
7
|
+
date: Date;
|
|
8
|
+
dateChange: EventEmitter<Date>;
|
|
9
|
+
showClass(): boolean;
|
|
10
|
+
constructor(iconService: IconCacheService);
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.co-transaction-line {
|
|
3
3
|
font-family: $tp-transaction-line-font-family;
|
|
4
4
|
font-size: $tp-transaction-line-font-size;
|
|
5
|
-
width:
|
|
5
|
+
width: 100%;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
border: $tp-transaction-line-border;
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-wrap: wrap;
|
|
49
49
|
align-content: flex-start;
|
|
50
|
+
row-gap: $tp-transaction-line-row-gap;
|
|
50
51
|
co-transaction-line-commission-button {
|
|
51
52
|
margin-right: $tp-transaction-line-column-gap;
|
|
52
53
|
}
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
.column2 {
|
|
55
56
|
display: flex;
|
|
56
57
|
flex-direction: column;
|
|
58
|
+
row-gap: $tp-transaction-line-row-gap;
|
|
57
59
|
margin-right: $tp-transaction-line-column-gap;
|
|
58
60
|
max-width: $tp-transaction-line-button-big-width;
|
|
59
61
|
}
|
|
@@ -78,15 +80,20 @@
|
|
|
78
80
|
co-transaction-line-delivery-date-button {
|
|
79
81
|
//max-width: calc((#{$tp-transaction-line-button-width} * 2) + #{$tp-transaction-line-column-gap});
|
|
80
82
|
.transaction-line-button {
|
|
81
|
-
align-items:
|
|
83
|
+
align-items: center;
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
.co-statusbar-wrapper {
|
|
85
87
|
height: $tp-transaction-line-button-height;
|
|
86
|
-
align-items:
|
|
88
|
+
align-items: center;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.transaction-line-totals-amount {
|
|
92
|
+
.amount-number-picker {
|
|
93
|
+
height: 100%;
|
|
87
94
|
}
|
|
88
95
|
}
|
|
89
|
-
.transaction-line-totals-price, .transaction-line-totals-discount, .transaction-line-totals-
|
|
96
|
+
.transaction-line-totals-price, .transaction-line-totals-discount, .transaction-line-totals-total {
|
|
90
97
|
display: flex;
|
|
91
98
|
align-items: center;
|
|
92
99
|
justify-content: $tp-transaction-line-totals-justify-content;
|
|
@@ -225,5 +232,11 @@
|
|
|
225
232
|
column-gap: $tp-transaction-line-column-gap;
|
|
226
233
|
}
|
|
227
234
|
}
|
|
235
|
+
&.preview {
|
|
236
|
+
.transaction-line-totals {
|
|
237
|
+
grid-template-rows: $tp-transaction-line-button-height;
|
|
238
|
+
grid-gap: $tp-transaction-line-row-gap;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
228
241
|
}
|
|
229
242
|
}
|
package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
3
2
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
|
-
|
|
3
|
+
import { TransactionBaseComponent } from '../core/base/transaction-base.component';
|
|
4
|
+
import { OverlayService } from '@colijnit/corecomponents_v12';
|
|
5
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
6
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
7
|
+
import { DictionaryService } from '../../service/dictionary.service';
|
|
8
|
+
import { TransactionImageService } from '../../service/transaction-image.service';
|
|
9
|
+
export declare class TransactionLineDeliveryDateButtonComponent extends TransactionBaseComponent {
|
|
10
|
+
transactionEventService: TransactionEventService;
|
|
11
|
+
service: TransactionService;
|
|
5
12
|
iconCacheService: IconCacheService;
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
protected dictionaryService: DictionaryService;
|
|
14
|
+
protected imageService: TransactionImageService;
|
|
15
|
+
protected changeDetector: ChangeDetectorRef;
|
|
16
|
+
private _overlayService;
|
|
17
|
+
private _elementRef;
|
|
8
18
|
showClass(): boolean;
|
|
9
|
-
|
|
19
|
+
private _calendarPopupComponentRef;
|
|
20
|
+
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _overlayService: OverlayService, _elementRef: ElementRef);
|
|
21
|
+
handleShowDialog(event: MouseEvent): void;
|
|
10
22
|
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export declare enum Icon {
|
|
|
65
65
|
Purchase = "purchase",
|
|
66
66
|
Resize = "resize",
|
|
67
67
|
ShareSolid = "share_solid",
|
|
68
|
+
SharpLightTruckMovingClock = "sharp_light_truck_moving_clock",
|
|
68
69
|
ShelvesLight = "shelves_light",
|
|
69
70
|
ShelvesRegular = "shelves_regular",
|
|
70
71
|
ShelvesSolid = "shelves_solid",
|