@colijnit/transaction 12.1.61 → 12.1.62

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.
@@ -3,21 +3,47 @@
3
3
  @include export-module('co-transaction-header-order-layout') {
4
4
  .co-transaction-header-order {
5
5
  display: flex;
6
- .transaction-header-block-content-third {
6
+
7
+ .transaction-header-block-header {
8
+ co-icon {
9
+ position: relative;
10
+ height: $tp-transaction-header-order-discount-button-width;
11
+ width: $tp-transaction-header-order-discount-button-width;
12
+ }
13
+ }
14
+
15
+ .header-discount {
16
+ cursor: pointer;
7
17
  display: flex;
8
- flex-direction: column;
18
+ column-gap: 10px;
9
19
  align-items: center;
20
+ width: 100%;
21
+ height: $tp-transaction-header-order-discount-height;
22
+ font-size: $tp-transaction-header-order-discount-font-size;
23
+ border: $tp-transaction-header-order-discount-border;
24
+ border-radius: $tp-transaction-header-order-discount-border-radius;
25
+ padding: $tp-transaction-header-order-discount-padding;
10
26
  }
11
- .header-order-definitive {
27
+
28
+ .transaction-header-block-content-third {
12
29
  display: flex;
30
+ flex-direction: column;
13
31
  align-items: center;
14
- column-gap: 10px;
15
32
  }
33
+
34
+ .co-transaction-header-definitive {
35
+ .co-input-checkbox {
36
+ font-size: $tp-font-size-small;
37
+ flex-direction: column-reverse;
38
+ }
39
+ }
40
+
16
41
  .transaction-line-button {
17
42
  flex-direction: column;
18
43
  height: 100%;
19
44
  padding: $tp-transaction-header-block-order-discount-padding;
20
45
  }
46
+
21
47
  .co-transaction-header-definitive {
22
48
  font-weight: normal;
23
49
  }
@@ -1 +1,11 @@
1
1
  $tp-transaction-header-block-order-discount-padding: 0 30px !default;
2
+ $tp-transaction-header-order-discount-button-width: 17px !default;
3
+ $tp-transaction-header-order-discount-font-size: $tp-font-size !default;
4
+ $tp-transaction-header-order-discount-font-color: $tp-color-active-light !default;
5
+ $tp-transaction-header-order-discount-background-color: $tp-default-background-accent !default;
6
+ $tp-transaction-header-order-discount-height: $tp-default-button-height !default;
7
+ $tp-transaction-header-order-discount-border: 1px solid !default;
8
+ $tp-transaction-header-order-discount-border-color: $tp-color-border !default;
9
+ $tp-transaction-header-order-discount-border-radius: 10px !default;
10
+ $tp-transaction-header-order-discount-padding: 5px 10px !default;
11
+ $tp-transaction-header-order-discount-icon-color: $tp-color-font !default;
@@ -2,5 +2,18 @@
2
2
 
3
3
  @include export-module('co-transaction-header-order-theme') {
4
4
  .co-transaction-header-order {
5
+ .header-discount {
6
+ color: $tp-transaction-header-order-discount-font-color;
7
+ background-color: $tp-transaction-header-order-discount-background-color;
8
+ border-color: $tp-transaction-header-order-discount-border-color;
9
+ .header-order-discount-icon {
10
+ svg { // for fontawesome icons
11
+ fill: $tp-transaction-header-order-discount-icon-color;
12
+ }
13
+ & [fill] { // for own icons
14
+ fill: $tp-transaction-header-order-discount-icon-color;
15
+ }
16
+ }
17
+ }
5
18
  }
6
19
  }
@@ -1,6 +1,13 @@
1
1
  import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
2
+ import { Icon } from "../../../enum/icon.enum";
3
+ import { IconCacheService } from "../../../service/icon-cache.service";
4
+ import { TransactionService } from "../../../service/transaction.service";
2
5
  export declare class TransactionHeaderOrderComponent extends TransactionBaseComponent {
6
+ iconService: IconCacheService;
7
+ protected readonly service: TransactionService;
8
+ readonly icons: typeof Icon;
3
9
  showClass(): boolean;
4
10
  showDiscountDialog: boolean;
11
+ constructor(iconService: IconCacheService, service: TransactionService);
5
12
  handleShowDiscountDialog(event: MouseEvent): void;
6
13
  }
@@ -39,6 +39,7 @@ export declare enum Icon {
39
39
  Menu = "menu",
40
40
  ObjectIntersectSolid = "object_intersect_solid",
41
41
  PalletBoxesSolid = "pallet_boxes_solid",
42
+ PercentSolid = "percent_solid",
42
43
  PlusRound = "plus_round",
43
44
  PrintSolid = "print_solid",
44
45
  Purchase = "purchase",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "12.1.61",
3
+ "version": "12.1.62",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^12.2.0",
8
8
  "@angular/core": "^12.2.0",
9
9
  "@colijnit/articleapi": ">=1.0.15",
10
- "@colijnit/corecomponents_v12": ">=12.0.81",
10
+ "@colijnit/corecomponents_v12": ">=12.0.83",
11
11
  "@colijnit/ioneconnector": ">=2.1.8",
12
12
  "@colijnit/mainapi": ">=1.0.2",
13
13
  "@colijnit/relationapi": ">=1.0.2",