@colijnit/transaction 12.1.8 → 12.1.9

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 (129) hide show
  1. package/bundles/colijnit-transaction.umd.js +1180 -698
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +31 -19
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +32 -20
  6. package/esm2015/lib/assets/dictionary/text.properties.js +80 -8
  7. package/esm2015/lib/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +1 -1
  8. package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +120 -288
  9. package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +279 -112
  10. package/esm2015/lib/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +2 -2
  11. package/esm2015/lib/component/checkout/checkout.component.js +64 -34
  12. package/esm2015/lib/component/checkout/checkout.module.js +11 -2
  13. package/esm2015/lib/component/core/relation/customer-groups.component.js +4 -3
  14. package/esm2015/lib/component/core/stock-status-indicator/stock-status-indicator.component.js +1 -1
  15. package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.component.js +40 -0
  16. package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.module.js +26 -0
  17. package/esm2015/lib/component/payment/payment.component.js +73 -0
  18. package/esm2015/lib/component/payment/payment.module.js +27 -0
  19. package/esm2015/lib/component/payment-tile/payment-tile.component.js +32 -0
  20. package/esm2015/lib/component/payment-tile/payment-tile.module.js +25 -0
  21. package/esm2015/lib/component/relation-address-select/relation-address-select.component.js +1 -1
  22. package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +12 -24
  23. package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +4 -2
  24. package/esm2015/lib/component/seller-information/seller-information.component.js +61 -0
  25. package/esm2015/lib/component/seller-information/seller-information.module.js +21 -0
  26. package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.module.js +1 -1
  27. package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +7 -3
  28. package/esm2015/lib/component/stepper/component/stepper-step.component.js +3 -3
  29. package/esm2015/lib/component/stepper/stepper.component.js +39 -41
  30. package/esm2015/lib/component/stepper/stepper.module.js +6 -3
  31. package/esm2015/lib/component/tile/tile.component.js +32 -0
  32. package/esm2015/lib/component/tile/tile.module.js +19 -0
  33. package/esm2015/lib/component/transaction/transaction.component.js +1 -1
  34. package/esm2015/lib/component/transaction-line/transaction-line.component.js +30 -2
  35. package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
  36. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +163 -0
  37. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +30 -0
  38. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +8 -3
  39. package/esm2015/lib/enum/icon.enum.js +8 -1
  40. package/esm2015/lib/model/delivery-type.js +3 -0
  41. package/esm2015/lib/model/icon-svg.js +8 -1
  42. package/esm2015/lib/pipe/date-duration.pipe.js +1 -1
  43. package/esm2015/lib/pipe/delivery-time.pipe.js +1 -1
  44. package/esm2015/lib/pipe/localize.pipe.js +1 -1
  45. package/esm2015/lib/pipe/safe-html.pipe.js +1 -1
  46. package/esm2015/lib/pipe/safe-style.pipe.js +1 -1
  47. package/esm2015/lib/service/dialog.service.js +1 -1
  48. package/esm2015/lib/service/dictionary.service.js +1 -1
  49. package/esm2015/lib/service/ione-connector-adapter.service.js +19 -6
  50. package/esm2015/lib/service/pending-reason.service.js +2 -1
  51. package/esm2015/lib/service/transaction.service.js +9 -1
  52. package/fesm2015/colijnit-transaction.js +1658 -985
  53. package/fesm2015/colijnit-transaction.js.map +1 -1
  54. package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +8 -45
  55. package/lib/component/checkout/checkout-overview-delivery-edit/style/_layout.scss +13 -6
  56. package/lib/component/checkout/checkout-overview-delivery-edit/style/material.scss +1 -2
  57. package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +31 -3
  58. package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +28 -0
  59. package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +1 -0
  60. package/lib/component/checkout/checkout-overview-relation-edit/style/material.scss +4 -0
  61. package/lib/component/checkout/checkout-relation-suggestions-list/style/_layout.scss +1 -0
  62. package/lib/component/checkout/checkout.component.d.ts +10 -1
  63. package/lib/component/checkout/style/_layout.scss +25 -0
  64. package/lib/component/checkout/style/_material-definition.scss +5 -0
  65. package/lib/component/checkout/style/material.scss +2 -0
  66. package/lib/component/confirmation-dialog/style/material.scss +1 -0
  67. package/lib/component/core/relation/relation-customer-groups.component.scss +6 -0
  68. package/lib/component/delivery-type-tile/delivery-type-tile.component.d.ts +10 -0
  69. package/lib/component/delivery-type-tile/delivery-type-tile.module.d.ts +2 -0
  70. package/lib/component/delivery-type-tile/style/_layout.scss +35 -0
  71. package/lib/component/delivery-type-tile/style/_material-definition.scss +16 -0
  72. package/lib/component/delivery-type-tile/style/_theme.scss +6 -0
  73. package/lib/component/delivery-type-tile/style/material.scss +5 -0
  74. package/lib/component/payment/payment.component.d.ts +18 -0
  75. package/lib/component/payment/payment.module.d.ts +2 -0
  76. package/lib/component/payment/style/_layout.scss +54 -0
  77. package/lib/component/payment/style/_material-definition.scss +17 -0
  78. package/lib/component/payment/style/_theme.scss +16 -0
  79. package/lib/component/payment/style/material.scss +5 -0
  80. package/lib/component/payment-tile/payment-tile.component.d.ts +9 -0
  81. package/lib/component/payment-tile/payment-tile.module.d.ts +2 -0
  82. package/lib/component/payment-tile/style/_layout.scss +22 -0
  83. package/lib/component/payment-tile/style/_material-definition.scss +0 -0
  84. package/lib/component/payment-tile/style/_theme.scss +6 -0
  85. package/lib/component/payment-tile/style/material.scss +5 -0
  86. package/lib/component/relation-address/style/_layout.scss +5 -0
  87. package/lib/component/relation-address-tile/relation-address-tile.component.d.ts +1 -0
  88. package/lib/component/relation-address-tile/style/_layout.scss +0 -21
  89. package/lib/component/relation-address-tile/style/_material-definition.scss +2 -1
  90. package/lib/component/relation-address-tile/style/_theme.scss +0 -30
  91. package/lib/component/relation-address-tile/style/material.scss +1 -0
  92. package/lib/component/sell-order/sell-order-side-panel/sell-order-side-panel.component.scss +49 -0
  93. package/lib/component/sell-order/sell-order.component.scss +15 -0
  94. package/lib/component/seller-information/seller-information.component.d.ts +13 -0
  95. package/lib/component/seller-information/seller-information.module.d.ts +2 -0
  96. package/lib/component/seller-information/style/_layout.scss +21 -0
  97. package/lib/component/seller-information/style/_material-definition.scss +2 -0
  98. package/lib/component/seller-information/style/_theme.scss +7 -0
  99. package/lib/component/seller-information/style/material.scss +4 -0
  100. package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +2 -0
  101. package/lib/component/shopping-cart-preview/style/_layout.scss +6 -2
  102. package/lib/component/shopping-cart-preview/style/_material-definition.scss +1 -1
  103. package/lib/component/stepper/component/stepper-step.component.d.ts +1 -1
  104. package/lib/component/stepper/stepper.component.d.ts +10 -5
  105. package/lib/component/stepper/style/_layout.scss +52 -20
  106. package/lib/component/stepper/style/_material-definition.scss +9 -2
  107. package/lib/component/stepper/style/_theme.scss +36 -0
  108. package/lib/component/tile/style/_layout.scss +36 -0
  109. package/lib/component/tile/style/_material-definition.scss +16 -0
  110. package/lib/component/tile/style/_theme.scss +36 -0
  111. package/lib/component/tile/style/material.scss +4 -0
  112. package/lib/component/tile/tile.component.d.ts +6 -0
  113. package/lib/component/tile/tile.module.d.ts +2 -0
  114. package/lib/component/transaction-line/style/_theme.scss +5 -0
  115. package/lib/component/transaction-line/style/material.scss +1 -0
  116. package/lib/component/transaction-line/transaction-line.component.d.ts +5 -0
  117. package/lib/component/transaction-line-side-panel/style/_layout.scss +47 -0
  118. package/lib/component/transaction-line-side-panel/style/_material-definition.scss +10 -0
  119. package/lib/component/transaction-line-side-panel/style/_theme.scss +7 -0
  120. package/lib/component/transaction-line-side-panel/style/material.scss +4 -0
  121. package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +20 -0
  122. package/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.d.ts +2 -0
  123. package/lib/component/transaction-lines/transaction-lines.component.d.ts +1 -0
  124. package/lib/enum/icon.enum.d.ts +7 -0
  125. package/lib/model/delivery-type.d.ts +7 -0
  126. package/lib/service/ione-connector-adapter.service.d.ts +3 -1
  127. package/lib/service/transaction.service.d.ts +3 -0
  128. package/lib/style/_variables.scss +10 -2
  129. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-transaction-line-side-panel-layout') {
4
+ .co-transaction-line-side-panel {
5
+ font-family: $tp-transaction-line-side-panel-font-family;
6
+ font-size: $tp-transaction-line-side-panel-font-size;
7
+ position: fixed;
8
+ right: 0;
9
+ top: 0;
10
+ width: $tp-transaction-line-side-panel-width;
11
+ height: 100%;
12
+ z-index: 10;
13
+ box-shadow: $tp-transaction-line-side-panel-box-shadow;
14
+ padding: $tp-transaction-line-side-panel-padding;
15
+ .transaction-side-panel-header {
16
+ font-family: $tp-transaction-line-side-panel-header-font-family;
17
+ font-size: $tp-transaction-line-side-panel-header-font-size;
18
+ display: flex;
19
+ flex-direction: row;
20
+ column-gap: 20px;
21
+ align-items: center;
22
+ }
23
+ .side-panel-header-description {
24
+ font-weight: $tp-transaction-line-side-panel-header-description-font-weight;
25
+ }
26
+ .transaction-line-side-panel-content {
27
+ display: flex;
28
+ flex-direction: column;
29
+ row-gap: $tp-transaction-line-side-panel-row-gap;
30
+ overflow: auto;
31
+ height: 100%;
32
+ }
33
+ .collapsible-content-wrapper {
34
+ display: flex;
35
+ flex-direction: column;
36
+ row-gap: $tp-transaction-line-side-panel-row-gap;
37
+ }
38
+ .side-panel-input-row {
39
+ display: flex;
40
+ flex-direction: row;
41
+ column-gap: $tp-transaction-line-side-panel-row-gap;
42
+ .side-panel-input {
43
+ flex-basis: 100%;
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,10 @@
1
+ $tp-transaction-line-side-panel-font-family: $tp-font-family !default;
2
+ $tp-transaction-line-side-panel-font-size: $tp-font-size !default;
3
+ $tp-transaction-line-side-panel-background-color: white !default;
4
+ $tp-transaction-line-side-panel-width: 500px !default;
5
+ $tp-transaction-line-side-panel-box-shadow: -3px 0px 16px 1px rgb(0, 0, 0, 0.2) !default;
6
+ $tp-transaction-line-side-panel-padding: 10px !default;
7
+ $tp-transaction-line-side-panel-row-gap: 10px !default;
8
+ $tp-transaction-line-side-panel-header-font-family: $tp-font-family !default;
9
+ $tp-transaction-line-side-panel-header-font-size: $tp-font-size !default;
10
+ $tp-transaction-line-side-panel-header-description-font-weight: bold !default;
@@ -0,0 +1,7 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-transaction-line-side-panel-theme') {
4
+ .co-transaction-line-side-panel {
5
+ background-color: $tp-transaction-line-side-panel-background-color;
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/variables";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
3
+ import { Icon } from "../../enum/icon.enum";
4
+ import { IconCacheService } from "../../service/icon-cache.service";
5
+ import { InputTextComponent } from "@colijnit/corecomponents_v12";
6
+ import { TransactionService } from "../../service/transaction.service";
7
+ export declare class TransactionLineSidePanelComponent {
8
+ iconService: IconCacheService;
9
+ private _transactionService;
10
+ readonly icons: typeof Icon;
11
+ set child(content: any);
12
+ inputPrice: InputTextComponent;
13
+ transactionLine: TransactionLineInfo;
14
+ cancelClick: EventEmitter<MouseEvent>;
15
+ showClass(): boolean;
16
+ data: any[];
17
+ constructor(iconService: IconCacheService, _transactionService: TransactionService);
18
+ handleCancelClick(event: MouseEvent): void;
19
+ commitPrice(price: any): Promise<boolean>;
20
+ }
@@ -0,0 +1,2 @@
1
+ export declare class TransactionLineSidePanelModule {
2
+ }
@@ -18,6 +18,7 @@ export declare class TransactionLinesComponent {
18
18
  showTransactionArticleText: boolean;
19
19
  selectedArticleText: TransactionLineInfo;
20
20
  textToEdit: string;
21
+ userActionRequired: boolean;
21
22
  constructor(iconCacheService: IconCacheService, service: TransactionService);
22
23
  trackByFn(index: number, line: TransactionLineInfo): any;
23
24
  handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
@@ -5,11 +5,18 @@ export declare enum Icon {
5
5
  ArrowPointRight = "arrow_point_right",
6
6
  CalendarDay = "calendar_day",
7
7
  Cancel = "cancel",
8
+ CashRegister = "cash_register",
8
9
  DeliveryTruck = "delivery_truck",
9
10
  EditPencil = "edit_pencil",
11
+ IdealLogo = "ideal_logo",
12
+ MasterDetail = "master_detail",
10
13
  PlusRound = "plus_round",
14
+ SidePanel = "side_panel",
11
15
  Tag = "tag",
12
16
  ThickLines = "thick_lines",
13
17
  ThinLines = "thin_lines",
18
+ TriangleDown = "triangle_down",
19
+ TriangleUp = "triangle_up",
20
+ Truck = "truck",
14
21
  Txt = "txt"
15
22
  }
@@ -0,0 +1,7 @@
1
+ import { Icon } from "../enum/icon.enum";
2
+ export declare class DeliveryType {
3
+ code: string;
4
+ description: string;
5
+ icon: Icon;
6
+ price?: number;
7
+ }
@@ -25,6 +25,7 @@ import { StandardText } from "../model/standard-text";
25
25
  import { CustomerGroup } from "@colijnit/transactionapi/build/model/customer-group.bo";
26
26
  import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
27
27
  import { OptionsService } from "./options.service";
28
+ import { CashRegister } from "@colijnit/transactionapi/build/model/cash-register";
28
29
  export declare class IOneConnectorAdapterService {
29
30
  private _optionsService;
30
31
  connector: Transaction;
@@ -35,7 +36,7 @@ export declare class IOneConnectorAdapterService {
35
36
  getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
36
37
  getGoodIdFromArticleNr(articleNr: string): Promise<number>;
37
38
  getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean): Promise<string>;
38
- getDocumentContent(id: number, thumbnail: boolean): Promise<string>;
39
+ getDocumentContent(id: number, thumbnail?: boolean): Promise<string>;
39
40
  getCountries(): Promise<Country[]>;
40
41
  getCustomerGroups(): Promise<CustomerGroup[]>;
41
42
  getCountry(countryCode: string): Country;
@@ -49,6 +50,7 @@ export declare class IOneConnectorAdapterService {
49
50
  commit(): Promise<DataServiceResponseData>;
50
51
  saveTransaction(uuid: string): Promise<TransactionInfoResponse>;
51
52
  getCustomerFullObject(relationNo: number): Promise<CustomerFullObject>;
53
+ getCashRegisters(branch?: string, group?: number): Promise<CashRegister[]>;
52
54
  getRelationNumber(relationId: number): Promise<string>;
53
55
  getSequenceValue(sequenceName: SequenceName): Promise<number>;
54
56
  insertCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
@@ -20,11 +20,14 @@ import { DataServiceResponseData } from "@colijnit/transactionapi/build/model/da
20
20
  import { Address } from "@colijnit/transactionapi/build/model/address.bo";
21
21
  import { RelationAnyType } from "@colijnit/transactionapi/build/model/relation-any-type";
22
22
  import { PendingReasonService } from "./pending-reason.service";
23
+ import { CashRegister } from "@colijnit/transactionapi/build/model/cash-register";
23
24
  export declare class TransactionService extends PendingReasonService {
24
25
  pendingLineOperationStatus(lineOperationStatuses: LineOperationStatus[]): LineOperationStatus | undefined;
25
26
  getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
27
+ getDocumentContent(id: number): Promise<string>;
26
28
  getGoodIdFromArticleNr(sku: string): Promise<number>;
27
29
  getCountry(countryCode: string): Promise<Country>;
30
+ getCashRegisters(): Promise<CashRegister[]>;
28
31
  getRelationNumber(relationId: number): Promise<string>;
29
32
  saveRelation(): Promise<boolean>;
30
33
  getSequenceValue(): Promise<number>;
@@ -33,13 +33,14 @@ $tp-color-label: #5B6875 !default;
33
33
 
34
34
  $tp-color-text-grey: #747b87 !default;
35
35
 
36
- $tp-color-active-light: #74B77F !default;
36
+ $tp-color-active-light: #5FDCB3 !default;
37
37
  $tp-color-dark-accent: #475060 !default;
38
38
 
39
39
  $tp-color-stock-low: $tp-color-error !default;
40
40
  $tp-color-stock-medium: $tp-color-warning !default;
41
41
  $tp-color-stock-high: $tp-color-active !default;
42
42
  $tp-color-stock-empty: $tp-color-grey !default;
43
+ $tp-color-colijn-orange: #fe4400 !default;
43
44
 
44
45
  $tp-color-text-main: #22313C !default;
45
46
 
@@ -58,7 +59,7 @@ $tp-item-size-very-small: 20px !default;
58
59
  $tp-item-size-medium: 60px !default;
59
60
  $tp-item-size-large: 70px !default;
60
61
  $tp-item-size-massive: 100px !default;
61
- $tp-radio-button-width: 200px !default;
62
+ $tp-radio-button-width: 150px !default;
62
63
  $tp-checkout-default-padding: 5px !default;
63
64
  $tp-checkout-step-color: $tp-color-action !default;
64
65
 
@@ -91,3 +92,10 @@ $tp-transaction-header-first-section-font-family: $tp-font-family !default;
91
92
  $tp-transaction-header-first-section-font-size: $tp-font-size !default;
92
93
  $tp-transaction-header-first-section-font-color: $tp-color-dark !default;
93
94
  $tp-transaction-header-first-section-font-weight: bold !default;
95
+
96
+ /* core components override */
97
+ $cc-checkbox-border-radius: 7px;
98
+ $cc-checkbox-check-background-color: white;
99
+ $cc-checkbox-check-border-color: #5FDCB3;
100
+ $cc-checkbox-check-color: #5FDCB3;
101
+ /****************************/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "12.1.8",
3
+ "version": "12.1.9",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {